Skip to content
BENIBIX Learn

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.

AI⌨️ Claude Code

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.

Example
Emma thinks an old rule in her CLAUDE.md is making Claude act oddly. She starts one session with this set, and the odd habit is gone.
Why it matters
It is the quickest way to tell if a memory file is what went wrong.
Full entry
AI⌨️ Claude Code

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.

Example
Jack shares a laptop for demos and does not want notes piling up. He sets this, and Claude keeps no memory between demos.
Why it matters
It lets you choose if Claude learns from past sessions, or starts fresh each time.
Full entry

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.