Agent Systems: Memory-Management Pattern
Intent
Preserve useful state without placing the whole history in every context.
Outline
- Recurring problem: context windows are bounded, while tasks and histories are not.
- Structure:
experience → select → store → retrieve → current context. - Stable interface: memory item, metadata, retrieval query, and provenance.
- Variable implementation: summary, vector search, linked notes, database, or file system.
- Strength: continuity and bounded context size.
- Risks: stale summaries, irrelevant retrieval, false links, and context overload.
- Example: an Obsidian vault as long-term external memory for mathematical research.
Suggested figure
09-memory-management.svg in the Agent design pattern illustration folder.
