Back to dashboardConfiguration and ownership reference

Configuration and ownership reference

Handbook · Native mechanisms · Helpers

Which file should I edit?

FileOwner/purposeDefault in this templateVersion control
CLAUDE.mdShared essential project instructionsPresent, conciseTrack
CLAUDE.local.mdPersonal project instruction notesAbsentIgnore; no secrets
.claude/settings.jsonShared native project settingsSessionStart + narrow PreToolUse hooksTrack only reviewed nonsecret settings
.claude/settings.local.jsonPersonal native settingsAbsentIgnore
.mcp.jsonReviewed project server configurationsAbsentOnly nonsecret config after approval
.claude/rules/*.mdScoped native conventionsAbsentOptional reviewed files
.claude/framework/config.jsonFoundry version/selections/limitsPresent; no active hooksTrack; managed in optional installs
.claude/framework/template.jsonDistinguishes template modePresentTrack; not copied into optional installs
docs/project/config.jsonKnown product fields and extra user metadataCreated after actual initializationTrack, no credentials
docs/project/design.jsonChoice/confirmation/detail/schema pinsCreated after actual choicesTrack sanitized decisions
.claude/framework.local.jsonReviewed project gate argv commandsAbsentIgnore
.claude/framework-manifest.jsonOriginal-byte backups/hash ownershipOptional installer onlyIgnore; may contain sensitive original settings
.cef-task.jsonOptional compact task handoffAbsentIgnored 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.