Configuration Management
Official scope (Exam Guide v1.0): CLAUDE.md, settings.json, model version pinning, prompt versioning, plugin dependencies.
What belongs in configuration (design guidance)
Model ID, parameters (effort, max_tokens), limits, feature flags, endpoints, tool and permission settings: anything that differs between environments or should change without a code release. Same code, different config per environment.
Secrets are not config files. Keys live in a secrets manager or environment variable (ANTHROPIC_API_KEY); config refers to them by name (7.4).
Pin the model
Every Claude model ID is a pinned snapshot, including dateless IDs from the 4.6 generation on. Upgrade deliberately after running evals, and watch lifecycle status (Active, Legacy, Deprecated, Retired; at least 60 days' notice before retirement).
Prompt versioning (design guidance)
Keep prompts in version control; tag each version with its eval results; keep a change log; make rollback one step. A prompt change ships through the same review and CI gates as code.
Claude Code: CLAUDE.md vs settings
- CLAUDE.md is context, not enforcement. It is loaded into the conversation; Claude may not follow it.
- Settings are enforced by the client (permissions, hooks, sandbox, model). For "must never happen", use a deny rule or a hook.
Settings scopes, highest precedence first
- Managed (organization:
managed-settings.json, MDM or console) - Command line (
claude --settings, this session) - Project local (
.claude/settings.local.json, you, this project, gitignored) - Shared project (
.claude/settings.json, committed, everyone) - User (
~/.claude/settings.json, you, every project)
A key set higher overrides the same key lower. List keys such as permissions.allow merge across scopes instead of overriding. A deny rule at any scope blocks; an allow elsewhere cannot carve an exception.
CLAUDE.md placement
Managed, user (~/.claude/CLAUDE.md), project (./CLAUDE.md or ./.claude/CLAUDE.md) and local (./CLAUDE.local.md) files are concatenated, broad to specific. Subdirectory files load on demand. Keep each under about 200 lines; path-scoped rules go in .claude/rules/.
Plugin dependencies (verified mechanics, design guidance on policy)
- A plugin bundles skills, agents, hooks and MCP servers, with a manifest at
.claude-plugin/plugin.json(name, optional version and metadata). - Install scope: user, project (enabled through committed
.claude/settings.json; each collaborator still installs it) or local. - Organizations allowlist or block marketplaces and can force-install plugins through managed settings.
- Policy: pin and review plugin versions, prefer known marketplaces, disable unused plugins.
Exam traps
- "Never run rm -rf" in CLAUDE.md as the enforcement.
- Thinking a project allow overrides a user deny. Deny wins.
- Committing personal settings to the shared file.
- Floating to the newest model with no eval.
- Prompts edited live in production with no version history.
References
- Settings — checked Oct 16, 2026
- Memory (CLAUDE.md) — checked Oct 16, 2026
- Plugins — checked Oct 16, 2026
- Models overview — checked Oct 16, 2026
- Model deprecations — checked Oct 16, 2026
Check your understanding
User settings allow a tool; project settings deny it. Result?Show answerHide answer
Answer
Denied.A personal sandbox URL for one repo, not shared. Where?Show answerHide answer
Answer
.claude/settings.local.jsonorCLAUDE.local.md.Why pin a model ID?Show answerHide answer
Answer
So behaviour cannot change without an eval and a deliberate upgrade.Two teammates'
permissions.allowlists in user and project settings. Which wins?Show answerHide answerAnswer
Neither; lists merge.