中文 | English
Why is Claude Code memory more than MEMORY.md? Why does it include typed memory, extraction flows, and team memory boundaries?
l6-advancedl9-context
memdir/memdir.tsservices/extractMemories/extractMemories.tsservices/extractMemories/prompts.tsmemdir/teamMemPaths.tsmemdir/teamMemPrompts.ts
ENTRYPOINT_NAMEbuildMemoryLinesBuild the typed-memoryextractMemoriesteam memory
- why the memory taxonomy is closed to four types
- why writing memory content and updating the index are two explicit steps
- why team memory needs separate path handling, prompts, and escape validation
memdir/memdir.ts:34:ENTRYPOINT_NAME = 'MEMORY.md'memdir/memdir.ts:188: typed-memory behavioral instructionsservices/extractMemories/extractMemories.ts: post-conversation extraction flowmemdir/teamMemPaths.ts: team-memory path handling and escape checks
Claude Code memory is not a long-term chat log. It is a constrained knowledge-maintenance system: controlled writes, short indexes, typed content, and clear boundaries between personal and team memory.
- Why should
MEMORY.mdact as an entry index instead of content storage? - Why is extraction done asynchronously after the conversation instead of mutating memory every turn?
- What extra risk controls does team memory need compared with personal memory?