Source
The components of agent memory
Copy link
Press Ctrl+C (⌘C on a Mac) to copy the text below; on a phone, long-press and choose Copy.
v3Rewrite the overview around the reader's question, define memory and dreaming, explain the four layers, summarize evidence and limitations.
Carl Zhu
Changes since v2
Overview
Before
Anthropic’s engineering report evaluates cross-session agent memory as a hierarchy of searchable transcripts, selectively written notes, linked representations and a compact injected index; offline dreaming can revise and consolidate these layers. Results from CL-Bench, Pokémon and document QA/Harvey LAB show benefits but also task dependence, model dependence, coordination failures and maintenance costs; these are reported evaluations, not universal retrieval guarantees.
After
How can an AI agent learn from past work when each new session starts with a fresh context? Anthropic explores long-term memory stored outside the model, rather than learning through weight updates. Its central proposal is to retain useful experience, organize it into searchable knowledge, and revisit it between sessions. The memory architecture has four layers: searchable records of past sessions; notes containing useful facts, strategies and tested rules; linked knowledge structures such as wikis; and a small set of memories or pointers loaded automatically at session start. Dreaming is an offline process that reviews earlier work to correct notes, fill gaps, organize related knowledge and decide what deserves automatic loading. The experiments illustrate three lessons. Selective memory and verified rules can be more useful than exhaustive logging; different models need different guidance to use memory well. In a 25-question corporate document evaluation, adding a mature wiki to search increased the share of graded criteria met from 53% to 61%. Wikis helped more with questions requiring synthesis across documents than with simple lookups. In a legal task, separating agents' writes and preserving exact contract terms improved coverage from 41 to 57 of 57 required facts. The practical takeaway is to preserve original evidence, keep active context small, combine curated knowledge with search, and evaluate memory against real tasks. These are task-specific experiments, not universal guarantees: memories can be wrong or stale, and offline maintenance costs compute.
