Dev.to
6/17/2026

Claude Code Auto Memory: Stop Re-Explaining Your Preferences Every Session
Short summary
Claude Code's Auto Memory feature automatically saves your preferences and corrections across sessions, stored separately from CLAUDE.md in ~/.claude/projects/<project>/memory/. It learns from your corrections without manual setup and loads a lean index file at session start. Available in Claude Code v2.1.59+.
- •Auto Memory auto-saves preferences and corrections without manual configuration
- •Stored in home directory memory folder, separate from project CLAUDE.md
- •First 200 lines of MEMORY.md load per session to keep context efficient
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



