
Agent Memory Design
Agent Memory Design
Your agent forgets the user across sessions or drops a preference one turn later, or you stuff the whole history into the context window until tokens explode, responses slow down, and the signal gets diluted. Reframe it as memory architecture: task scope and stakes, a memory-type inventory (working, short-term, long-term, episodic, semantic, procedural), a write strategy (what to remember, when, how to compress), storage and retrieval (vector / KV / structured DB, and the split with RAG), forgetting and updating (TTL, versioning, conflicts, deletion and privacy), and memory tests, ending in a memory design doc. Prevents using the context window as RAM, writing a wrong fact into permanent memory, cross-session amnesia, and stale memories retrieved forever.
How it works
- Scope and Memory Stakes
- Memory-Type Inventory
- Write Strategy
- Storage and Retrieval
- Forgetting and Updating
- Testing
- Write the Memory Design Doc and End
The finished result is saved to journal/agent-memory/ so you can reuse it.
Languages
The setup, working steps, and output follow the language you type — usable in English, 中文, 日本語, and other languages the model supports.


