Configuration and ownership reference
Handbook · Native mechanisms · Helpers
Which file should I edit?
| File | Owner/purpose | Default in this template | Version control |
|---|---|---|---|
| CLAUDE.md | Shared essential project instructions | Present, concise | Track |
| CLAUDE.local.md | Personal project instruction notes | Absent | Ignore; no secrets |
| .claude/settings.json | Shared native project settings | SessionStart + narrow PreToolUse hooks | Track only reviewed nonsecret settings |
| .claude/settings.local.json | Personal native settings | Absent | Ignore |
| .mcp.json | Reviewed project server configurations | Absent | Only nonsecret config after approval |
| .claude/rules/*.md | Scoped native conventions | Absent | Optional reviewed files |
| .claude/framework/config.json | Foundry version/selections/limits | Present; no active hooks | Track; managed in optional installs |
| .claude/framework/template.json | Distinguishes template mode | Present | Track; not copied into optional installs |
| docs/project/config.json | Known product fields and extra user metadata | Created after actual initialization | Track, no credentials |
| docs/project/design.json | Choice/confirmation/detail/schema pins | Created after actual choices | Track sanitized decisions |
| .claude/framework.local.json | Reviewed project gate argv commands | Absent | Ignore |
| .claude/framework-manifest.json | Original-byte backups/hash ownership | Optional installer only | Ignore; may contain sensitive original settings |
| .cef-task.json | Optional compact task handoff | Absent | Ignored by template |
Configuration/metadata inside .claude/framework is a Foundry contract, not invented native Claude frontmatter. The schema/type checks in doctor are limited; they do not audit all effective inherited native configuration.
Use inactive examples deliberately
Examples include a minimal project settings JSON object, empty MCP map, personal instruction example and path-scoped rule. Their paths are outside native discovery and they are never copied/activated by the docs checker. Do not paste credentials or broad tool grants into them. Native fields and precedence are linked from the mechanism reference.
Product configuration
Known initializer fields are schema_version=1, name, description, profiles, stack. Input requests reject unknown fields; the later project config checker preserves additional user metadata while checking known fields. Stack preferences are user-supplied strings, not verified installations. Available profiles are documented separately. The initializer preview never writes by default and refuses existing differing project records except exact pristine state/roadmap seeds.
Choice records
See the design interview contract. confirmed binds ids to exact option values, confirmed_details binds custom text and schema paths, and schema_sha256 pins supplied content. Record actual preference/delegation sources. These are self-reported records, not authenticated user interactions. A changed option/custom detail/schema cannot silently reuse the old matching record to pass structural checks.
Optional hook activation
Ordinary clone use now ships a read-only SessionStart reminder and the narrow path guard, active after workspace trust. The optional installer’s --hooks adds the SessionStart and limited path-guard entries while preserving other settings keys; --no-hooks removes the framework’s managed addition using original ownership records. Inspect source and dry-run in an isolated target before applying. Do not run that installer into this source template. See installation and security.
For template-only users, review the tracked hook settings before trust; additional optional features remain off. Configure an exact reviewed project setting only after inspecting its native event contract and effective existing settings. No global setting is changed by the handbook.
Updates and rollback
In optional managed installs, any edited managed file blocks update/removal before writes; there is no force merge. Export/reconcile edits and use original-byte restoration deliberately. Product records/local gate configuration remain user-owned. Backup ignore rules are protection from accidental staging, not encryption. A retained local file keeps ignore protection on uninstall where supported. Atomic individual writes do not guarantee crash-safe/concurrent multi-file transactions.
Source-template defaults are checked against canonical SessionStart/PreToolUse entries by scripts/check_docs.py. This source-template integrity check intentionally flags local settings changes; review intentional configuration customizations rather than treating a passing source check as proof of effective permissions. Native/user/managed settings can still differ.
Shared team gates can now live in .claude/framework/gates.json; ignored .claude/framework.local.json adds distinct personal gate names. Preview/execute remains explicit, and review receipts use the same combined list. Workspace configure/status provides preview-first new/existing and solo/team setup. See workspace automation.