Agent memory is the mechanism that lets an AI agent carry information from one step, task or session to the next: facts about customers, what happened in earlier conversations, and the rules for doing a job. Short-term memory lasts for one conversation and is now built into most platforms. Long-term memory persists across sessions and is where products differ. It is useful, but it is not the same as a company's record of decisions, and it struggles most with facts that have changed.
What agent memory means
A language model has no memory between calls. Everything it knows about the current task has to be placed in front of it each time. Agent memory is the software that decides what to keep, where to store it and what to bring back.
The most cited framework is CoALA (Cognitive Architectures for Language Agents), from Princeton researchers Sumers, Yao, Narasimhan and Griffiths, published in Transactions on Machine Learning Research in 2024. It borrows four categories from cognitive science.
| Type | What it holds | Commercial example | Main risk |
|---|---|---|---|
| Working | The active task: inputs, retrieved material, goals | The account brief being drafted now | Overloaded context, slow and costly |
| Episodic | Past interactions and actions | Last quarter's emails with this buyer | Old episodes treated as current |
| Semantic | Facts about the world and the company | "This client renews in March" | Facts that changed but were not updated |
| Procedural | Rules and instructions for a task | "Discounts above 10% need finance approval" | Rules edited silently, with no history |
LangChain's documentation for its LangGraph framework uses a simpler split. Short-term memory is thread-scoped and remembers interactions within a single conversation. Long-term memory is stored in namespaces and recalled across any thread. It also distinguishes two ways of writing memories: in the "hot path", during the response, which adds latency; or in the background, as a separate task, which raises the question of when to run it.
Why it matters for a commercial team
Memory is now a product category. WRITER made team-level Agent Memory, which retains decisions and preferences across sessions, generally available in September 2026. Specialist memory layers sell the same capability to teams building their own agents.
The evidence on long-term recall is weaker than the marketing. LongMemEval, a 500-question benchmark published in 2024 and presented at ICLR 2025, tests five abilities: information extraction, multi-session reasoning, temporal reasoning, knowledge updates and abstention. Its authors found an accuracy drop of about 30% for commercial chat assistants and long-context models across sustained interactions. Knowledge updates matter most for a sales team, because prices, contacts, owners and terms change constantly.
That is why memory and the decision record should stay separate. Memory helps an agent pick up where it left off. The record says what the company decided, why, and what has since superseded it. If an agent's memory says one discount ceiling and the record says another, the record should win, and the conflict should be flagged to a person.
How to evaluate a memory layer
We have not found independent testing that shows any memory layer improving agents on long tasks, so treat vendor benchmark scores as claims. A short test on your own data is more informative.
- Write 50 questions from your own commercial history: 20 lookups, 20 "how did this change?" questions, and 10 that assume something you have since reversed.
- Run the same agent and model with no memory layer, then with each candidate.
- Score correctness, and separately score how often the agent corrects the false premise.
- Ask each vendor for its benchmark harness, not just its score.
Check two properties alongside the score. Can every memory be traced to a source and exported? Are old facts marked as superseded, with a date, rather than overwritten? A plain database with status fields, validity dates and supersession links is often enough for a mid-size team.
lowob takeaways
- Short-term memory is solved. Most platforms provide it within a conversation.
- Long-term memory is the open question. Benchmarks show sharp drops on long interactions and changed facts.
- Memory is not the record. When they disagree, the decision record wins and a person is told.
- Test before buying. Fifty questions from your own history, against a no-memory baseline.
Common questions
What is memory in AI agents?
The mechanism that stores information from earlier steps or sessions and brings the relevant parts back into the model's context, so an agent can continue work without being told everything again.
What is the difference between short-term and long-term agent memory?
Short-term memory lasts for one conversation or thread. Long-term memory persists across sessions and has to be deliberately written, stored and retrieved.
What are episodic, semantic and procedural memory in AI agents?
Episodic memory holds past interactions, semantic memory holds facts, and procedural memory holds the rules and instructions for doing a task. The split comes from the CoALA framework.
Do we need a separate memory layer for our AI agents?
Not always. Platform-native memory covers single conversations. For long-term facts, test a candidate against a no-memory baseline on your own data first; a well-structured database is often enough.
Sources and notes
- Sumers, Yao, Narasimhan and Griffiths, Cognitive Architectures for Language Agents, TMLR, 2024. Academic framework.
- Wu et al., LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memory, October 2024, revised March 2025. Academic benchmark; not an enterprise product test.
- LangChain documentation, Memory overview. Vendor documentation.
- CMSWire, WRITER launches Enterprise Brain to unify AI agent context, September 2026. Vendor announcement, reported.