@xiaogaifun: https://x.com/xiaogaifun/status/2123710596139139286
Summary
An in-depth analysis of Anthropic’s research article on Agent Memory, focusing on its four-layer memory architecture (Transcripts, Memory Notes, Memory Memories Representations, and Injected Context) and the Dreaming mechanism for organizing memories during idle time, inspired by memory replay in the human brain. It also highlights long-term memory as the key to building an effective Personal Agent.
View Cached Full Text
Cached at: 11/20/26, 06:07 PM
Anthropic’s Analysis of Agent Memory Is Excellent.
Anthropic’s article on Agent Memory is excellent. I highly recommend reading it.
I’ve been working my way through it for a week and still haven’t fully digested it, so here’s a summary of my understanding so far. If you’ve also read the article or are researching Agent Memory, let’s discuss it in the comments.
There are two key insights here.
First, the biggest challenge with Memory is deciding what information should be stored.
Anthropic believes this judgment is best left more to the model itself, rather than relying entirely on rules predefined by the surrounding Harness.
They ran several experiments and found that smarter models are generally better at judging which information is worth remembering, and at turning past experience into rules that can be reused in the future.
So the same memory system can perform very differently with different models.
Second, the human brain’s memory mechanisms are remarkably sophisticated, and Anthropic is trying to draw on them to design Agent Memory.
Think about it: in everyday life, we are constantly forming new memories while also constantly forgetting things.
The hippocampus plays an important role in memory formation, helping us quickly record what we are experiencing. But the brain does not preserve every experience exactly as it happened.
Even when we sleep or rest quietly, the brain keeps working.
The hippocampus reactivates some of the neural activity patterns from our previous experiences. This process is called Memory Replay. It gradually integrates some information from recent experiences into more stable long-term memories.
Drawing on this idea, Anthropic introduced a mechanism called Dreaming into Agent Memory.
Of course, an Agent does not need to sleep like a human. Here, Dreaming means that an Agent can use its idle time to reorganize past conversations and task records, placing valuable information into its memory system.
Because “memory” is a broad term, people often confuse it with a knowledge base. Let’s define it here: memory is knowledge a model gains from past experiences and can retain across Sessions, which the Agent expects it will probably need again in the future.
The diagram below shows the Agent Memory architecture designed by Anthropic.
On the far left is Session, representing a previous conversation with the Agent. On the far right is Next session, representing a new conversation started later. The light red area in the middle is Dreaming, which uses records left by previous interactions to organize and maintain memories between sessions.
Look closely at the memory structure in the middle. It consists of four layers, from bottom to top.
The first layer is Transcripts, or raw logs. For example, if I discuss how to write an article with Claude, the entire conversation and task execution process is recorded, from choosing a topic to revising the body and finally settling on a title.
Since computers can store vast amounts of historical records, why design a separate memory system? Why not just search those records when needed?
It’s not that simple. Raw records are often very long and contain plenty of information with no lasting value. Searching and analyzing them from scratch every time would be costly.
That brings us to the second layer: Memory Notes. This is familiar territory—almost every Agent memory mechanism currently includes Memory Notes.
Let’s stick with the article-writing example. Suppose that while revising an article, I repeatedly tell Claude that I dislike grandiose words and want plainer, more natural language. Claude can judge that this information may be useful again, so it proactively organizes it into Memory Notes. OpenClaw’s Memory Notes, for example, are Markdown files.
Then, the next time Claude helps me write an article, it can retrieve my writing preferences from memory.
But this introduces another problem. As an Agent is used over time, its memory grows larger and larger. These memories may also cover very different subjects: my weight, my dietary preferences, or how my child is doing at school.
An Agent cannot load all its historical memories into context at the start of every new Session.
Of course, it can search for memories. But the model may not know what to search for, and information is often scattered across different memory files, with connections between them.
Even after finding the information, it still needs to work out those relationships again. As memories accumulate, this process becomes increasingly costly.
So Anthropic designed a third layer: Memory representations.
The implementation of Memory representations is actually quite simple: a Wiki. More precisely, a Wiki is one possible implementation. You can think of it as a knowledge base automatically organized and maintained by AI.
For example, Claude can take the memories accumulated from our past interactions and organize them into Wiki pages by topic, such as writing style, headline preferences, AI companies I’ve researched, and previous articles.
This gives information that was previously scattered across many memory files an interconnected knowledge structure.
If I later ask Claude to write an article about Memory, it can first find the relevant Wiki pages to learn what I’ve researched before, then look up specific memory notes or raw records as needed.
This is much more convenient than searching through large numbers of historical files from scratch every time.
Building on this, there is a fourth layer called Injected context.
Dreaming promotes particularly important memories to this layer, and the Harness automatically loads them at the start of a new Session. This allows Claude to see the information directly, without having to search for it or look through the Wiki.
But Context is precious, so it is impossible to load large amounts of memory into it.
Alongside a small number of important memories, this layer therefore also contains memory indexes that tell Claude what information has been remembered and where more detailed content is stored.
For example, at the start of each new Session, Claude Code currently loads only the first 200 lines or 25 KB of MEMORY.md automatically. This content serves as a memory directory. When Claude needs more information, it reads the corresponding memory files.
Now that we understand these four memory layers, let’s return to Dreaming.
Simply put, Dreaming uses an Agent’s idle time to reorganize the raw records left by past Sessions, updating and maintaining the entire memory system.
Here’s a simple example.
During an ordinary conversation, an Agent may write important information directly into Memory Notes, but that information may not necessarily be accurate. Suppose I tell Claude that I like red. It judges this to be important and saves it in memory.
But some time later, in another Session, I mention that I now prefer green. If the earlier memory is not updated promptly, inconsistencies can arise.
What can be done?
Dreaming checks the raw records from different Sessions and then updates Memory Notes. If it cannot confirm something, it can mark the information as uncertain to avoid continuing to use an incorrect memory later.
Organizing and updating the Wiki, as mentioned earlier, and deciding which memories are important enough to promote to Injected context also happen during Dreaming.
It’s quite interesting. Personal Agents have only recently started gaining traction and are still far from mature. Discussions about Personal Agents seem to focus on Context, privacy, and security. But I feel that long-term memory is absolutely central to building a good Personal Agent.
In any case, almost all the shortcomings I’ve encountered in the Personal Agent products I’ve used recently have been related to memory.
https://www.anthropic.com/research/components-of-agent-memory
You can read the blog post there. And it would be even better to discuss it in the comments, because there are still plenty of questions I haven’t figured out myself.
Similar Articles
@xiaogaifun: https://x.com/xiaogaifun/status/2124750080779710561
The author interprets Anthropic's blog post on Agent Memory, putting forward the idea that "memory is a prediction of future needs," and introduces in detail the MemT project, which natively integrates memory capabilities into base models. Its MemT-1.0-Pro, developed in partnership with NVIDIA and built on Nemotron 3 Ultra, ranks first on relevant benchmarks; the author believes that native memory is the mainstream approach for the next generation of Agent Memory.
@wquguru: https://x.com/wquguru/status/2069641926752780384
This article comprehensively reviews the complete architectural layering of AI Agent Memory as of mid-2026, including rule files, persistent profiles, historical recall, and evidence chains. It explains the storage methods, loading timings, and governance principles of different memory layers, emphasizing the key role of memory in helping agents achieve cross-session compounding work.
@Pluvio9yte: https://x.com/Pluvio9yte/status/2070318502016426008
This article delves into the memory architecture of AI agents, using the Hermes four-layer memory model as an example, analyzes the limitations of the Claude Code memory system, and introduces how to add local memory capabilities to agents through open-source frameworks (such as EverOS), providing detailed deployment steps.
@MinLiBuilds: A sharing by Kevin, an engineer at Anthropic. A $1000 workshop on agent memory. This will be the mainstream of AI memory. Get to know it a year in advance and become a memory expert. A short video well worth watching. Here are the practical steps in the video: 03:…
Kevin, an engineer at Anthropic, shared a workshop video on AI agent memory, introducing Memory Store as an external plugin for cross-conversation memory and the dream mechanism. Getting to know it in advance will help you become a memory expert.
@0xMovez: Anthropic AI engineer just showed how to give AI agents real memory in 4 steps - and it changes everything in 28 minute…
Anthropic AI engineer demonstrates a free 4-step method to give AI agents persistent memory across sessions, including memory stores and dreaming, achieving 95% cache hit rate.