InquiryLoom

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.

Share posterSuggest a change

This is an external article. We show only quotes and their context; read the full text on the original page.

  1. Memory can be a prediction about what the future will need

    Claude Opus 5 was the first of these models to close the loop. Most of its entries included a rule (and also how it knew the rule was true), answers to earlier questions, and clear warnings about traps it had discovered along the way (Figure 3).

    From the idea AI agents can learn across sessions by saving feedback, testing explanations, and recording verified rules for future tasks.

  2. Claude has learned to judge salience

    battle it fought, each item it found, and each non-player character it met. Ultimately, Sonnet 3.7 wrote 413 memory files across 225 folders and earned one badge (badges mark a player’s progress through the game). Fable 5, by comparison, wrote nine files in two folders, plus a single

    From the idea AI agents should remember reusable strategies and hard-won lessons rather than repeatedly saving information they can look up.

  3. 225 folders and earned one badge (badges mark a player’s progress through the game). Fable 5, by comparison, wrote nine files in two folders, plus a single top-level file calledglobal.md, and earned four badges. Sonnet 3.7’s approach was a problem mainly because the game state of Pokémon changes

    From the idea AI agents should remember reusable strategies and hard-won lessons rather than repeatedly saving information they can look up.

  4. Steering Claude to write memory

    gained from memory with each rule against how much it gained without it. When we set a rule to “record only failures,” both Opus 5 and Opus 4.7 lost much of the performance boost that memory gave them (Figure 5, right). For stronger models, giving them freedom to judge salience was more

    From the idea Strong AI agents can often decide what to remember themselves, while weaker agents may need explicit memory-use instructions.

  5. of the performance boost that memory gave them (Figure 5, right). For stronger models, giving them freedom to judge salience was more effective than setting fixed rules in advance, and those rules could end up weakening performance. We also noticed that steering helped older models the most.

    From the idea Strong AI agents can often decide what to remember themselves, while weaker agents may need explicit memory-use instructions.

  6. Dreaming can correct memory

    tested whether dreaming could help Claude avoid this trap. We ran dreaming on the memory folder that contained the wrong location for the PokéCenter: Claude checked the note against the session transcript, caught its error, and rewrote it. The transcript gave Claude a ground truth to validate its

    From the idea An AI agent can correct persistent memory errors by comparing its notes with records of what actually happened.

  7. The transcript gave Claude a ground truth to validate its memory against. With the corrected memory note, Claude went straight back into Mt. Moon and eventually reached Cerulean City. In the run with the uncorrected note, Claude dropped back onto that earlier route three

    From the idea An AI agent can correct persistent memory errors by comparing its notes with records of what actually happened.

  8. Dreaming can build new memory representations

    that agents made in prior sessions, using a shared log to coordinate work. As we scaled dreaming from two sessions to 128, performance on the 25 questions grew from 13% to 48% of graded criteria (Figure 10). Claude builds its wikis incrementally.

    From the idea Combining a prebuilt wiki with direct document search can improve AI agents' answers to complex knowledge-base questions.

  9. Claude the most when we also gave it access to a search tool. When it used both search and the wiki, Claude’s aggregate score rose from 54% to 61% as that wiki grew, compared with 53% when it had access to the search tool alone. Claude’s best score was 48% when it used only the wiki to answer

    From the idea Combining a prebuilt wiki with direct document search can improve AI agents' answers to complex knowledge-base questions.

  10. Dreaming can build new memory representations

    On one LAB task (Figure 11, right), brief criteria often could be retrieved with a text search from a single document, and the wiki showed no clear gain in performance relative to search. On another LAB task, the wiki grew larger than the documents themselves (Figure 12).

    From the idea AI agents benefit more from a prebuilt wiki when answers require combining documents than when one document contains the answer.

  11. Dreaming can promote notes up the memory hierarchy

    Dreaming can also float notes to the top of the memory hierarchy, and the agent harness can preemptively load them into Claude’s context at the start of every session (Figure 13).

    From the idea AI agents should load a short memory index at the start of each session and retrieve detailed knowledge only when needed.

  12. Dreaming can focus memory on a specific goal

    we found that the shared table summarized the contract terms poorly and was missing some of them altogether, because agents had overwritten one another’s work. The contract terms were the most important part of the wiki, but the instructions didn’t say that.

    From the idea When multiple AI agents build a knowledge base, separate write ownership and precise evidence can prevent important facts from being lost.

  13. Dreaming can fill in gaps a session leaves behind

    A second dreaming pass closed many of these gaps. On one task (Figure 15), dreaming found nine links to a missing page in the wiki and repointed them to an existing page for the same document.

    From the idea A second review of an AI-generated wiki can repair broken links and add missing pages that individual writing sessions overlook.

  14. Thinking backward, looking forward

    Memory can also drift and become irrelevant as the environment changes. Dreaming is one way to fix these mistakes (Figure 8), but it requires compute. Directing Claude to continuously check all its memories might not be practical.

    From the idea AI agents need to balance immediate memory writing with periodic offline review to keep knowledge useful and up to date.