Idea
AI agents should load a short memory index at the start of each session and retrieve detailed knowledge only when needed.
Copy link
Press Ctrl+C (⌘C on a Mac) to copy the text below; on a phone, long-press and choose Copy.
v1First version
Carl Zhu
First version
Title
A small injected memory index should point to deeper searchable memory rather than load everything
Description
Use four layers: session event logs, experience notes, linked knowledge representations and an automatically loaded index. Promote only stable, frequently useful guidance, demote details to linked pages, and retain source provenance. Claude Code illustrates a bounded entry point with the first 200 lines or 25 KB of MEMORY.md.
When it applies
An architectural pattern, not a validated universal size limit. Injection consumes context and can amplify wrong or outdated memories; loaded notes may still be ignored. The limit is specific to the cited Claude Code behavior.
Quotes
“preemptively load them”
The components of agent memoryDreaming can promote notes up the memory hierarchy
Tags
- Long-term memory
- Context engineering
- Retrieval & RAG
