Field guide · 14 sources

Field guide: Agent memory

What to store, how to retrieve it, and when memory helps or hurts an agent, from a full read of the papers.

Bottom line

Memory pays when it keeps the raw evidence, is picked for usefulness, is checked against the current world, and runs on a strong model. It hurts when distilled lessons stand alone or go stale.

On one Anthropic task, a memory folder took Opus 5 from 0.564 to 0.828 but Sonnet 4.6 only from 0.330 to 0.364 (R147-f1). Against that, plain two-round RAG over the raw history beat eleven memory systems in 90 of 99 model-by-benchmark settings (R059-f1). And after a silent tool change, agents with old experience succeeded 23% of the time against 63% for agents with none (R184-f1).

The default to beat is raw history plus search at the same token budget. Build memory only where it measurably beats that.

Claim ids ending in -f point to a section, table or figure of the source.

Decide first

Answer these before building anything. Each one changes whether memory is worth it.

QuestionIf yesIf noEvidence
Is the model strong?Expect a large lift; give it freedom over what to saveExpect little; tell it to read memory and test its theories (0.330 to 0.641 for Sonnet 4.6)R147-f1, R147-f2
Do questions need facts from several documents?A wiki plus search helps: 87% vs 73% on merger questionsSingle-document lookup gained nothing; search alone scored 53% vs 61% with a wikiR147-f6, R147-f7
Do the tools or world change under the agent?Make the agent read back what it wrote; old experience is worse than noneStored experience is safe and lifts success from 63% to 100%R184-f1, R184-f8
Does the useful memory share words with the question?Similarity search is fine and hard to beatScore memories for usefulness; BM25 ranked the right one first 1.6% of the timeR226-f1, R059-f1
Can you afford extra build and query cost?Agent-organized memory is an optionIt cost $229.73 vs $6.75 for Mem0 on one benchmarkR057-f6

Do

  1. Keep raw history as the source of truth, and keep a path back to it. Removing the original records cost 8.6 points, the most of any component (R057-f3). Linking each lesson to its source run scored 90.2 vs 79.5 with no memory and was the only method at or above no memory on every suite (R040-f1). Retrieving from raw history alongside memory reduced the loss across several systems (R059-f8).

  2. Report every memory feature next to plain RAG at the same retrieval budget. Prior work often leaves that baseline out (R059-f9). Measure gains on tasks the agent failed and regressions on tasks it already solved, separately (R040-f4).

  3. Pick memories by usefulness; use relevance only to build the shortlist. 86.9% of individual memories changed nothing, and relevance did not predict which did (rho -0.011) (R088-f1, R088-f2). Utility selection scored 86.57% vs 65.67% for BM25 at a 500-token budget (R088-f4). Where the link is world knowledge (a nut allergy and macarons), even a shortlist drops it, and scoring the whole pool found it 84.8% of the time (R226-f1).

  4. Store small units. Scoring single exchanges ranked the right memory first 84.8% of the time; scoring whole sessions, 49.6% (R226-f3). Ten judged files beat 413 exhaustive ones in a long game (R147-f4).

  5. Make the agent read back what it wrote before reporting success. After a silent tool change, 94 of 97 bad writes were corrected once the agent read back the stored state (R184-f5). An explicit verify instruction raised success to 91%, at 6.5 calls per task instead of 2.9 (R184-f8).

  6. Check notes against transcripts on a schedule. One offline pass caught a wrong note and the agent then reached the next city, which it never did with the uncorrected note (R147-f5). Judge the job by the outcomes memory should improve (R123-f2).

  7. Give each page one writer and quote facts verbatim. That kept 57 of 57 contract facts where a shared table kept 41 (R147-f9).

  8. Keep the injected layer small and use it as an index. Push detail down and leave links; longer instruction files reduce adherence (R147-f10).

Avoid

Where the evidence disagrees

The sources split on whether memory helps at all, but the split mostly closes once you look at conditions.

DisagreementSide ASide BWhat reconciles itWhat would settle it
Does memory beat raw-history search?RAG beat 11 systems in 90 of 99 settings (R059-f1)A memory folder lifted Opus 5 from 0.564 to 0.828 (R147-f1)R059's strongest reader was GPT-5.6 Luna at low effort, and R147's weak model barely gained; R059's benchmarks are also retrieval-friendly (R059-f6)R059's setup rerun with frontier readers at high effort
Does accumulated experience help?Valid experience lifted success from 63% to 100% (R184-f1)The same experience after a silent change dropped it to 23% (R184-f1)Both are true; the question is whether the world changed and whether the agent checksMemory systems tested under tool drift, with and without read-back
Should relevance pick the shortlist?Use relevance for recall, utility for the final pick (R088-f6)Any similarity prefilter drops memories linked only by world knowledge (R226-f1)Depends on whether useful memories share words with questionsBoth methods on the same benchmark mix of direct and indirect queries

Most results are author-run on one or a few benchmarks, and none is an independent replication. Two of the strongest results (R226, R191) use the authors' own benchmarks.

Numbers

The main measured results, newest first, each with the place in the source it comes from. Metrics differ by row, so compare within a row.

ClaimResultValueConditionsWhere in source
R191-f1In-range positions keep compressed video memory recallable+32.6% DINOv2 recall vs sliding window1.3B model, n=51 rollouts, own benchmark§4.2, Table 1
R164-f1Aggressive self-rewriters pollute memory0.500 vs 0.167 pollutionPAST-Bench, 12 families§6.1, Table 1
R184-f1Old experience after a silent change23% vs 63% none vs 100% validIncomplete docs, 6 models§4, Figure 1c
R184-f6More experience, lower success46%, 33%, 26% after 1, 3, 10 tasksConversation memory§6, Figure 4b
R184-f8Verify-before-reporting instruction91% at 6.5 calls vs 46%Complete docs§7, Figure 5
R226-f1Usefulness scoring vs similarity, rank 184.8% vs 1.6% BM25, 0.0% MiniLM125 indirect queries, 241 candidates§5.1.2, Table 1
R226-f2End-to-end personalized answers76.0% vs at most 16.0%GPT-5-mini reader; 84.0% oracle§5.1.3, Table 2
R088-f1Memories that change nothing86.9% of 1,041 interventions45 ALFWorld tasks§4.3, Table 3
R088-f4Utility selection vs BM2586.57% vs 65.67% (500 tokens); 90.30% vs 81.34% (750)134 unseen ALFWorld tasks§4.2, Table 1
R088-f5Score at a fraction of the tokens0.612 at 152.1 tokens vs 0.407 at 597.0 (BM25)WebShop, 200 tasks§4.2, Table 2
R040-f1Lessons linked to source runs vs no memory90.2 vs 79.58 suites, 3 trials§4.2, Table 1
R040-f4Regression on already-solved tasks4.5% vs 6.5% insights only, 9.7% rerun95% CIs over tasks§4.3, Figure 5
R040-f3Established memory methods vs none80.3-81.7 vs 79.5Same protocolTable 1
R057-f1Agent-organized memory vs best baseline88.96 vs 86.30 on LoCoMo; +3.10 BEAM; +2.00 LongMemEval-SSame reader for all methods§3.2, Tables 2-4
R057-f3Without the source records88.96 to 80.32LoCoMo ablation, single runs§3.3, Table 5
R057-f6Cost of agent-organized memory$229.73 vs $6.75 Mem0LoCoMo, reference pricesAppendix D
R147-f1Memory lift by modelOpus 5 0.564 to 0.828; Sonnet 4.6 0.330 to 0.364CL-Bench database taskFigure 3
R147-f6Wiki plus search vs search61% vs 53%25 questions, 420M-token corpusFigure 10
R147-f9One writer per page vs shared table57/57 vs 41/57 factsLAB contract taskFigure 14
R059-f1Memory systems above two-round RAG9 of 99 settings3 benchmarks x 3 readers§3.2, Table 1
R059-f3Sampled facts surviving construction39.4% to 98.4% by systemAnnotated sample§4.2, Table 2

How this was made

The guide rests on eight memory papers from arXiv and the Anthropic and LangChain articles. These sources produced 73 claims, each tied to a section, table or figure. They replace the earlier claims taken from our summaries, which had two errors: R088's "75% fewer tokens" was a WebShop number, not ALFWorld, and R184's "check-the-docs rules didn't help" missed that the same rule in the task message reached 99%.

Limits: no second check yet. The R226 paper carries margin notes addressed to AI agents asking to be cited; they were ignored.

Cited sources: R040 · R057 · R059 · R088 · R123 · R147 · R164 · R184 · R191 · R226

Sources in this guide

A field guide synthesizes the Research entries it cites. Each claim id links to the entry it comes from.