In short.
Debug your configuration is a troubleshooting guide for Claude Code users whose customizations are not taking effect, but even its clean-session procedures can retain organization settings. It connects symptoms to commands that reveal loaded files, active settings sources, registered hooks and MCP connection status. Its practical value is distinguishing loading problems, overrides and behavior problems before changing configuration. The page includes version-specific hook caveats and explains why project instructions do not enforce security boundaries. No commands were executed, and the documented behavior was not independently tested.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete page at [https://code.claude.com/docs/en/debug-your-config.md], including diagnostic commands, configuration rules, the common-cause table, version notes, isolation procedures and related-resource references. The documentation-index link and all other linked pages are excluded. No explicit licensing notice appears in the supplied page. Documented behavior, fixes and security guarantees were not independently tested, and nothing was executed.
The overview
Identity
The resource is the Claude Code documentation page Debug your configuration at [https://code.claude.com/docs/en/debug-your-config.md]. It covers instructions in CLAUDE.md, settings, hooks, skills and MCP servers, which connect the assistant to external tools.
It is a diagnostic learning resource, rather than an installable extension or standalone debugger. Installation, authentication and connectivity problems are directed to a separate guide.
Assessment
The guide is useful when Claude Code runs but a particular customization appears missing or ignored. It gives concrete ways to distinguish a file that never loaded, a file loaded from an unexpected location, and a value overridden elsewhere.
Its strongest feature is connecting visible session state to likely causes and specific next steps. A loaded instruction can still be vague, conflicting or overlooked; seeing it in context does not establish that Claude will follow it. The guide supplies diagnostic procedures, but no measured success rate or independently demonstrated fixes.
Users
Beginners can use the initial inspection commands to check whether their project instructions, skills or tools are present before editing configuration. The symptom-and-fix table helps identify mistakes such as putting a skill in the wrong folder or placing MCP configuration in settings.json.
Experienced developers and team administrators get detail about configuration scopes, organization policies, hook parsing, server launch directories and subprocess environment variables. The guide assumes willingness to inspect configuration files and use a terminal; it does not teach shell or JSON fundamentals.
Capabilities
The guide maps diagnostic questions to commands. /context shows what occupies the session context, /memory exposes memory-file locations, /skills lists available skills, /hooks shows registered hooks, /mcp reports server status, /permissions shows resolved rules, and /status identifies active settings sources. /context also includes bundled skills that /skills does not list.
It distinguishes the terminal command claude doctor, which prints read-only installation and settings diagnostics, from the in-session /doctor, which provides a fuller checkup and asks before applying proposed fixes. It also describes /debug [issue], MCP debug logging, safe mode and a separate configuration directory for isolating problems.
Using it
Requirements
Most procedures require an installed Claude Code application and access to the affected session. Deeper investigation requires access to relevant configuration files, a terminal and, for some MCP failures, the session debug log under ~/.claude/debug/.
The clean-configuration procedure starts outside a running Claude Code session and uses an empty working directory plus a fresh configuration directory. First-run setup appears again. The page does not establish a general minimum supported version, operating-system requirements or account entitlement requirements.
Mechanism
The diagnostic approach starts by checking what loaded, then examines where it came from and whether something else took precedence. Among user, project and local settings, local overrides project, which overrides user. Managed settings also apply when present, and command-line flags or environment variables can affect some settings.
Different configuration surfaces have different loading rules. Subdirectory CLAUDE.md files load on demand. Hooks defined inside a skill appear after that skill is invoked. Project MCP servers use a repository-root .mcp.json file with a top-level mcpServers key and require approval. Relative paths in server commands resolve from the directory where Claude Code was launched.
Safe mode disables customizations to narrow the cause. A fresh CLAUDE_CONFIG_DIR and user-only setting sources provide another isolation step. Reintroducing configuration one item at a time can help identify which item brings the problem back.
Setup
The page recommends starting with /context to confirm that the relevant instructions or skill descriptions are present. In fullscreen mode, /context all expands the per-item breakdown. Follow with the command for the affected surface and use /status to identify active settings sources.
For broader isolation, claude --safe-mode disables custom instructions, skills, plugins, hooks, MCP servers and other customizations while retaining authentication, model selection, built-in tools and permissions. Managed hooks and settings policy remain active.
For a separate configuration environment, the Bash or Zsh launch shown is CLAUDE_CONFIG_DIR=~/claude-clean/config claude --setting-sources user, run from an empty directory. PowerShell requires setting the environment variable separately; it persists for that shell session until removed. Managed settings still apply, and account-linked connectors can still load after signing in with a claude.ai account.
Example
For a hook intended to respond to Edit and Write operations, the guide's diagnostic sequence begins with /hooks. If the hook is absent, inspect whether it is under the hooks key in settings.json and whether its matcher is a single string. The matcher Edit|Write covers both tool names; matching is case-sensitive.
If the hook is listed but does not fire, examine the matcher and observe evaluation using a session started with claude --debug. An array-valued matcher is invalid; under PreToolUse or PermissionRequest, it also prevents the file's other hooks from loading. This is an illustrative application of the documentation, with no observed execution result.
Assessment & evidence
Limitations
Neither isolation method removes every external influence. Safe mode retains managed hooks and settings policy; the fresh-configuration procedure retains managed settings and can load account-linked connectors. A problem persisting in either environment does not, by itself, prove a Claude Code defect.
CLAUDE.md supplies guidance rather than an enforced security boundary. The page directs mandatory restrictions to permissions or hooks and explains that Bash permission rules match literal command strings rather than every equivalent operation. Detailed enforcement and sandbox configuration require separate references.
Some instructions depend on the agent type. The page says built-in Explore and Plan agents skip CLAUDE.md at startup, while custom subagents normally load it unless configured otherwise. Troubleshooting installation, login, performance or hangs is outside this page's main scope.
Reasoning
The guide's useful distinction is between presence and behavior. An absent hook points toward loading or configuration syntax; a registered hook that never fires points toward matching or evaluation. Likewise, an MCP server can be connected yet return zero tools, so connection status alone is insufficient.
This structure supports a practical diagnostic inference: inspect the relevant state before changing files, then isolate configuration when the cause remains unclear. The page does not establish how often this approach succeeds or how much time it saves.
Alternatives
The page points to companion references for narrower questions: installation and authentication at [https://code.claude.com/docs/en/troubleshoot-install.md], configuration locations at [https://code.claude.com/docs/en/claude-directory], settings at [https://code.claude.com/docs/en/settings.md], hooks at [https://code.claude.com/docs/en/hooks.md], and MCP configuration at [https://code.claude.com/docs/en/mcp.md].
These are referenced destinations whose contents are outside the supplied evidence. The page provides no comparison with other coding assistants or third-party diagnostic tools, so their relative suitability is not assessed.
Evidence
The evidence is the complete text of [https://code.claude.com/docs/en/debug-your-config.md], supplied as selected-page.txt and captured at 2026-11-25T05:04:33.788Z. Its source revision is sha256:39eccc7f88f52f10d32b66f05d49076f08d6302ab290c10431e902953d2748ae.
The findings describe that documentation and its stated behavior. No commands were executed, no configuration was changed, and no troubleshooting outcome was observed. Linked documentation and independent corroboration are not included.
Access & freshness
Costs
The page provides no pricing for documentation access, Claude Code, model usage or connected MCP services. Any charges associated with troubleshooting sessions or reproducing a problem are unknown from this evidence. It gives no estimate of troubleshooting time or resource consumption.
Rights
The supplied page contains no explicit license or redistribution grant for its prose or command examples. Permission to redistribute the captured page or package its contents is therefore unknown. No separate licensing notice is included in the supplied evidence.
Freshness
The capture is dated 25 November 2026; the page text does not establish its publication date, last update date or the latest Claude Code release.
Two version boundaries materially affect the advice. According to the page, v2.1.191 added comma-separated hook matcher support equivalent to the pipe separator. Before v2.1.257, edits in a .claude folder created after session startup were not detected. An installed version must be checked before assuming these behaviors apply.
Actions
For a specific incident, begin with /context and the relevant surface command, then inspect active settings sources with /status. Use claude doctor for read-only settings diagnostics. Check locations, syntax and overrides before moving to safe mode or a separate configuration directory.
For MCP problems, distinguish a disabled project server, a failed process and a connected server returning zero tools. The documented approval reset, claude mcp reset-project-choices, prompts again for every project server after restart. For zero tools, the guide suggests reconnecting before examining MCP debug logs.
Choose the next step using the observed symptom and installed version. If the issue survives isolation, inspect remaining managed settings and environment variables before drawing conclusions about its cause.
