Claude Code Memory Architecture
Based on everything explored in the source code, here’s the full technical recipe behind Claude Code’s memory architecture.

Shared by Claude Code
Claude Code’s memory system is actually insanely well-designed. It is not a “store everything” system. It is constrained, structured, and self-healing memory.
The architecture is doing a few very non-obvious things:
1. Memory = Index, Not Storage
MEMORY.mdis always loaded, but it is just pointers, roughly ~150 characters per line.