Claude Code Memory System

Claude Code has 4 levels of persistent memory: project CLAUDE.md (repo root), subdirectory CLAUDE.md (loaded on demand, when Claude reads a file in that folder), user CLAUDE.md (~/.claude/), and auto-memory (markdown files written by Claude in ~/.claude/projects/<project>/memory/, whose first 200 lines of MEMORY.md or 25 KB load every session). Discovered CLAUDE.md files are concatenated into context, not overridden; an organization policy file and a personal CLAUDE.local.md also exist.

Strengths

Limitations

Best for

Official site

View on Coeurdar