What Does Agent Memory Actually Remember?
An agent brought back an error I had corrected. Four kinds of human memory helped me ask why.
Hermes Agent had started remembering enough that I stopped worrying about whether it would forget. Then it brought back a mistake with complete confidence. I’d told it to use a consistent journal reference style. A week later it returned to the old format. My correction and the old instruction both remained in memory, and retrieval brought the wrong one back.
I first blamed the model. Then I started to look more closely at what an agent memory system actually remembers.
Four things people mean by remembering
Endel Tulving’s work distinguished forms of memory, and the broader cognitive science literature gives us a useful way to ask what agents can do.
- Episodic memory is an event with a time, place, and circumstances, like lunch last Tuesday.
- Semantic memory is a fact you know without necessarily recalling when or how you learned it.
- Procedural memory is being able to ride a bike or type without talking yourself through each step.
- Prospective memory is remembering to do something when the time or situation arrives.
A number of tools I looked at, including Mem0, LangMem, and Graphiti, are good at extracting facts about the person talking to the agent: a preferred language, an area of research, or a place of residence. This is a small part of semantic memory. It mostly amounts to helping the user keep a record of their own life.
An event can have a timestamp in storage and still lose the circumstances at retrieval. A conversation over coffee in which someone mentioned TypeScript becomes “the user prefers TypeScript.” A procedural tag can sound more capable than the system underneath it. If the storage and retrieval mechanisms still treat it as a sentence, a procedure may never get executed. A note that says “mention new pricing next time the user asks” is useful only if something brings it up at the right moment.
What that leaves the agent unable to do
The agent may retrieve an April preference even after it changed in June. It may have a sentence about checking citation styles without checking a new document. It may know a report is due next week and stay silent unless you ask. Scheduled jobs can help with reminders, and code can turn a routine into an action. A memory record by itself does little about timing, action, or initiative.
In the systems I looked at, three pieces do most of the work. An extractor reads a conversation and decides what to retain. A database stores the results, perhaps as vectors or graph relationships, alongside timestamps or confidence estimates. Retrieval turns the current situation into a query. Each design has a cost. Compression drops context. Storage has to decide whether conflicting records should replace or sit alongside one another. Retrieval may find an old record with better wording for the query.
What would happen if an agent revisited what it remembered?
The analogy I find most interesting is sleep. Studies of sleep and memory suggest several possibilities, which I take as ideas for systems engineering.
- Replay. An agent might look back over twenty customer requests, see that fifteen stalled at refunds, and derive a way to spot that problem in advance.
- Distant associations. Offline, an agent might try using a pattern from complaint handling, such as acknowledging the frustration before fixing the problem, in a test of customer retention.
- Reconsidering what mattered. One remark about disliking a style can dominate the next answer. An agent reviewing the remark alongside older feedback may reach a more stable conclusion.
- Recombination. A system can simulate combinations it wouldn’t try while speaking to a customer. AlphaGo’s self-play gives a different example of using offline trials to explore moves people rarely take.
There have been reports of an Anthropic project called Dreams that periodically reviews and rewrites accumulated agent memory. Letta’s sleep-time compute lets background agents organize records. They’re early examples of treating memory as something that continues to change after it is written.
The difference I care about is whether the agent can use memory at the right time and in the right way. A larger notebook is easy to imagine. An agent that can tell an old preference from a recent correction, act on a routine, or recognize when a reminder applies would be a much bigger step.