Three types of agent memory
A production agent rarely uses one memory store. It uses a stack tuned to the workflow.
- Working memory — the active scratchpad and tool results inside one task.
- Episodic memory — what happened in past sessions with this user/account.
- Semantic memory — durable facts, policies, embeddings, and knowledge graphs.
Context as a finite resource
Context windows are large but not free. Implement Agentic treats context as a budget: ≤10 tools per agent, sub-agent decomposition with compaction, hybrid retrieval (BM25 + dense + RRF + reranker, ~91% recall@10) instead of naive vector search, and aggressive summarization between turns.
