Practical technical guides / Recent development: Anthropic, The components of agent memory (2026-11-06)

What Anthropic Found About Agent Memory: Let the Model Choose Notes, Check Them Offline, Give Each Writer Its Own Page

Anthropic agent memory study (6 November 2026): judgment beat fixed rules, small memory beat big, a shared page lost 16 of 57 facts. Three checks to copy now.

By Sandeep Belgavi · Published 2026-11-07

Anthropic agent memory study (6 November 2026): judgment beat fixed rules, small memory beat big, a shared page lost 16 of 57 facts. Three checks to copy now.

What was published

On 6 November 2026 Anthropic published "The components of agent memory", a research post that describes how it thinks about memory for Claude-based agents and walks through several internal evaluations. It defines agent memory narrowly: "knowledge that Claude gains from experience ... and that it retains between sessions, saved as context it can read later". It explicitly excludes weight changes, in-context learning and compaction. Its central structure is a split between notes the agent writes while working and a later offline pass over its logs, which it calls dreaming, crediting the sleep-time compute idea to researchers at Letta and UC Berkeley.

This guide summarises the findings that change how you would build a memory store for an agent, keeps the post's own caveats attached, and turns three of its lessons into checks you can run. The companion example implements them on synthetic help-desk data for Belgavi's Book Store.

The findings, with their limits

Fixed rules about what to remember can hurt stronger models. On a database question task from Continual Learning Bench 1.0, the post compares memory with a stateless baseline across models. When the agents were told to "record only failures", both Opus 5 and Opus 4.7 "lost much of the performance boost that memory gave them". The post concludes that "for stronger models, giving them freedom to judge salience was more effective than setting fixed rules in advance". Older models went the other way: prompting helped them use memory at all.

Less memory can be better memory. In long Pokemon runs, around step 10,000, Sonnet 3.7 had written 413 memory files across 225 folders and earned one badge; Fable 5 had written nine files in two folders plus a top-level global.md that "acted as a dashboard", and earned four. The explanation offered is that much of what Sonnet 3.7 stored could be read off the screen every turn, so the detailed record went stale and cost time to search, while strategies and tested rules "exist only if Claude works them out".

An offline pass can correct a wrong note. The agent once wrote down that a landmark was on the wrong side of a mountain, then trusted that note. A dreaming pass that checked notes "against the original transcripts" fixed it; with the corrected note the run got through.

A wiki helps on some tasks and not others. Over 128 dreaming sessions on about 350,000 internal files, a wiki-only score on 25 questions rose from 13 percent to 48 percent of graded criteria; search plus the wiki reached 61 percent against 53 percent for search alone, and saved about 20,000 tokens per question. On merger questions that needed several documents the wiki helped (87 percent against 73 percent on those items). On a legal-brief task where most criteria came from one document, "the wiki showed no clear gain", and on another the wiki grew larger than the source files.

Concurrent writers to one page lose facts. While building the wiki, "several agents wrote to a shared table of contract terms at the same time"; a brief generated from it contained "only 41 of the 57 facts (72%)" because agents "had overwritten one another's work". With one agent per contract, each writing its own page and quoting terms word for word, all 57 survived.

All of these are Anthropic's evaluations of Anthropic's models, several on a single run or a handful of questions, and the post does not report variance for most comparisons. It also says dreaming costs compute and that how often to run it is still open. Read the numbers as direction, not as effect sizes you can plan around.

Three lessons you can implement without the same models

The post's architecture depends on models that judge salience well. Three of its lessons do not, and they are the ones worth copying first.

### 1. Every note cites where it came from

A note that the help-desk agent writes ("Lantern Press accepts returns within 14 days") should carry the case and transcript line it came from and the exact words it relied on. Then a later pass can check it, and a policy change can be traced to the notes that depend on it.

NOTE = {'id': 'N1', 'page': 'publishers/lantern-press.md',
        'claim': 'Lantern Press returns window is 14 days',
        'source': ['CASE-5101', 1],
        'quote': 'Lantern Press accepts returns within 14 days of delivery'}

### 2. An offline pass re-reads the source

The post's dreaming is a model reviewing logs. A cheaper deterministic version catches a useful class of errors: the quote must appear on the cited line, and every name and number in the claim must appear in the quote.

def review(notes, transcripts):
    out = []
    for n in notes:
        if not n['source']:
            out.append({'id': n['id'], 'verdict': 'flag: no source cited'}); continue
        case, line = n['source']
        lines = transcripts.get(case, [])
        text = lines[line] if line < len(lines) else ''
        if n['quote'] not in text:
            out.append({'id': n['id'], 'verdict': 'flag: quote not on the cited line'}); continue
        words = [w for w in n['claim'].split() if w[0].isupper() or w[0].isdigit()]
        missing = [w for w in words if w not in n['quote']]
        out.append({'id': n['id'], 'verdict': 'supported' if not missing else 'flag: claim says ' + ', '.join(missing)})
    return out

On the companion fixtures it accepts three notes and flags two: one that attributes Harbour Books' 30-day window to Lantern Press, and one with no source at all. When the transcript line changes to a 21-day window, the original note is flagged on the next pass. Only supported notes go into the small always-loaded index, one line per page, which in the example is 185 characters. The model-based pass the post describes can then focus on what a quote check cannot judge.

### 3. One writer per page

The contract-terms loss is a lost-update problem, and it is the easiest to reproduce. The companion example has three agents extract terms for six publishers. When each reads the whole shared table, adds its rows and writes the table back, interleaved timing leaves only 6 of 18 facts (two publishers out of six); this holds for every seed tried. With one page per publisher, each written by one agent, all 18 survive.

def write_page(store, publisher, terms):
    store[f'publishers/{publisher}.md'] = terms   # one writer owns this key

Version checks on a shared page are the other fix, and they work, but they turn conflicts into retries. Giving each entity its own page avoids the conflict, matches the post's result, and makes provenance per page natural.

What to leave for later

  • Free-form salience judgement. The post's advice to let the model decide what to remember is about frontier models on their own benchmarks. With a smaller or older model, the same post found guidance helped. Test both on your agent.
  • Wikis. Build one only for corpora where questions combine several documents, and measure against search alone. The post's own results include a task with no gain and a wiki larger than its sources.
  • Dreaming frequency. Start with a review pass after each batch of sessions or on a schedule, measure what it corrects, and adjust; the post leaves the frequency open.

Verification checklist for your own memory store

  • Every note has a source reference and a quote, and the review pass reports zero unsupported notes in the always-loaded layer.
  • A changed policy document produces flags on the notes that cite it, on the next pass.
  • Concurrent writers never share a page, or every shared-page write uses a version check and a test proves no fact is lost under interleaving.
  • The always-loaded layer stays under a size budget you chose, and the agent's task score is measured with and without memory, so you know memory is helping at all.

Primary references and authorship

Sources dated on or before 7 November 2026. Original explanation and synthetic examples by Sandeep Belgavi. Companion code: Sandeep-BA/agent-decision-lab/examples/python/memory_notes_review. Views are my own and do not represent any employer, past or present.