⌨️CLAUDE_CODE_DISABLE_AUTO_MEMORY
Also known as CLAUDE_CODE_DISABLE_AUTO_MEMORY=1
Set to 1, it turns auto memory off. Set to 0, it forces it on.
Think of it like
It is like you ask a helper not to keep a diary.
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.
Definition
Example code
bash
export CLAUDE_CODE_DISABLE_AUTO_MEMORY=1
claudeCommon mistake
Key takeaways
- 11 turns it off. No notes.
- 20 forces it on. Even in bare mode.
- 3CLAUDE.md stays. Only auto memory goes.