Harness Memory Architecture
·
Claude Code's memory architecture works like this:
The user can create memories at any time with a slash command.
Memories go into a folder and then the memory index file is updated with a link to each memory.
The memory index file is injected into the system prompt.
On each turn extract memories from the conversation into memory files. GOTO #2
Memories are consolidated in the background once a day.