CLAUDE_CODE_DISABLE_CLAUDE_MDS vs CLAUDE_CODE_DISABLE_AUTO_MEMORY
People think turning off auto memory drops CLAUDE.md too. It does not. The auto memory switch stops only the notes Claude keeps for itself. Your own CLAUDE.md files still load. The CLAUDE_MDS switch drops every memory file, yours and the auto ones. Use the first to stop Claude learning. Use the second for a clean test with no notes.
CLAUDE_CODE_DISABLE_CLAUDE_MDS
Set to 1, it loads no CLAUDE.md or memory files.
CLAUDE_CODE_DISABLE_CLAUDE_MDS set to 1 stops every CLAUDE.md file from loading. That means yours, the project's and the auto memory files. Claude starts each session with none of those notes. It helps you test how Claude works with no house rules.
CLAUDE_CODE_DISABLE_AUTO_MEMORY
Set to 1, it turns auto memory off. Set to 0, it forces it on.
CLAUDE_CODE_DISABLE_AUTO_MEMORY set to 1 turns auto memory off. Claude then does not write or read the notes it keeps for itself. Set it to 0 to force auto memory on, even in bare mode or when a setting turns it off. Your own CLAUDE.md files still load.
In one line
- CLAUDE_CODE_DISABLE_CLAUDE_MDS
- Set to 1, it loads no CLAUDE.md or memory files.
- CLAUDE_CODE_DISABLE_AUTO_MEMORY
- Set to 1, it turns auto memory off. Set to 0, it forces it on.