Answer: Start with `claude --safe-mode` to launch a session with your customizations disabled; if the problem persists, create an empty directory and start Claude Code with a clean configuration directory by setting `CLAUDE_CONFIG_DIR` to a fresh directory and passing `--setting-sources user`. Status: Confirmed Entry: tool/claude-code/troubleshooting/test-clean-configuration Revision: 2 Digest: sha256:8205e8de898f766d (changes whenever the content changes) Timeline: Created: 2026-11-13T03:03:57Z Last changed: 2026-11-16T12:08:27Z (empty directory command: — → mkdir -p ~/claude-clean/empty && cd ~/claude-clean/empty) Last verified: 2026-11-20T12:20:05Z Next check: 2026-11-21T12:20:05Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of safe mode command | claude --safe-mode | [1] | 2026-11-20 clean config command | CLAUDE_CONFIG_DIR=~/claude-clean/config claude --setting-sources user | [1] | 2026-11-20 setting sources flag | --setting-sources user | [1] | 2026-11-20 empty directory command | mkdir -p ~/claude-clean/empty && cd ~/claude-clean/empty | [1] | 2026-11-20 Sources: [1] Anthropic. "Debug your configuration". https://code.claude.com/docs/en/debug-your-config.md Role: primary. Accessed: 2026-11-20T12:20:05Z Quote: "Start with [`claude --safe-mode`](https://code.claude.com/docs/en/cli-reference#cli-flags), which launches a session with your customizations disabled" (Supports: safe mode command) Quote: "CLAUDE_CONFIG_DIR=~/claude-clean/config claude --setting-sources user" (Supports: clean config command) Quote: "pass [`--setting-sources user`](https://code.claude.com/docs/en/cli-reference#cli-flags) to turn off project configuration" (Supports: setting sources flag) Quote: "mkdir -p ~/claude-clean/empty && cd ~/claude-clean/empty" (Supports: empty directory command) Published: 2026-11-20T03:43:25Z Snapshot SHA-256: 39eccc7f88f52f10d32b66f05d49076f08d6302ab290c10431e902953d2748ae (captured 2026-11-15T12:19:53Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-15T12:19:55Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:20:05Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:20:05Z Last attempt: 2026-11-20T12:20:05Z Notes and limitations: Extracted automatically from a single official source (section "Test against a clean configuration"). Related: https://latestn.com/tool/claude-code/troubleshooting/troubleshoot-claude-not-responding How do I troubleshoot Claude Code GitHub Actions when Claude is not responding to @claude commands? https://latestn.com/tool/claude-code/troubleshooting/troubleshoot-gateway-errors How do I troubleshoot LLM gateway errors in Claude Code? https://latestn.com/tool/claude-code/troubleshooting/validate-test-marketplace How do I validate and test a Claude Code plugin marketplace locally before hosting it? https://latestn.com/tool/claude-code/troubleshooting/status-line-troubleshooting Why is my Claude Code status line not appearing or showing empty values? https://latestn.com/tool/claude-code/troubleshooting/structured-output-error-handling What happens when Claude Code structured output validation fails and how is it handled? https://latestn.com/tool/claude-code/troubleshooting/structured-output-none Why does the Claude Code Agent SDK return a successful result but structured_output is None? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-16T12:08:27Z | changed | empty directory command: — → mkdir -p ~/claude-clean/empty && cd ~/claude-clean/empty | [1] 2026-11-16T12:08:27Z | changed | clean config command: — → CLAUDE_CONFIG_DIR=~/claude-clean/config claude --setting-sources user | [1] 2026-11-16T12:08:27Z | changed | config dir variable: CLAUDE_CONFIG_DIR → — | [1] 2026-11-16T12:08:27Z | changed | clean directory command: mkdir -p ~/claude-clean/empty && cd ~/claude-clean/empty → — | [1] 2026-11-16T12:08:27Z | changed | clean config command (Bash/Zsh): CLAUDE_CONFIG_DIR=~/claude-clean/config claude --setting-sources user → — | [1] 2026-11-13T03:03:57Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/troubleshooting/test-clean-configuration/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/troubleshooting/test-clean-configuration POST: https://latestn.com/dispute/tool/claude-code/troubleshooting/test-clean-configuration with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/troubleshooting/test-clean-configuration?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I test Claude Code with a clean configuration to find what's overriding my settings? Revision 2, last verified 2026-11-20T12:20:05Z. https://latestn.com/tool/claude-code/troubleshooting/test-clean-configuration (accessed 2026-11-21T10:00:02Z). @misc{LatestN_tool_claude_code_troubleshooting_test_clean_configuration_r2, title = {How do I test Claude Code with a clean configuration to find what's overriding my settings?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/troubleshooting/test-clean-configuration}}, note = {Revision 2; digest sha256:8205e8de898f766d; last verified 2026-11-20T12:20:05Z; accessed 2026-11-21T10:00:02Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/troubleshooting/test-clean-configuration