AI Agent Memory: Types, Architectures and Memory Tools for AI Agents (2026)
How AI agent memory works in November 2026: short-term and long-term memory, semantic, episodic and procedural memory, the main architectures (context, summaries, vector search, graphs, files), memory layers such as Mem0, Zep, Letta and Supermemory compared on price, privacy rules, and how SPIRITT remembers people, preferences and decisions across work.
AI agent memory is what lets an AI agent keep useful information beyond a single model call: short-term memory holds the current task in the context window, and long-term memory stores facts, past events and learned procedures outside the model so the agent can retrieve them in later sessions. In November 2026 developers add long-term memory with libraries and services such as Mem0, Zep, Letta, Supermemory or LangGraph's memory store, or with file-based memory that the agent reads and edits itself. SPIRITT, the operating system for AI transformation, ships with short and long-term memory of people, preferences and decisions built in, and because it codes, ships and runs work end to end, it learns from each job it runs across sales, ops, admin and engineering. This guide explains the types of agent memory, the main architectures, how the memory tools compare on price and what to get right on privacy.
Why AI agents need memory
A language model is stateless: every call starts from what is in the prompt. Without memory an agent asks the same questions every week, forgets that a customer prefers email to calls, repeats a mistake it was corrected on yesterday and cannot pick up a task it started last month. Memory turns a capable model into a colleague that improves with use.
Memory also saves money. Re-sending a full history on every call is slow and expensive; a good memory layer sends only what matters for the step at hand.
The types of AI agent memory
| Type | What it holds | Example | Typical storage |
|---|---|---|---|
| Short-term (working) memory | The current conversation, task state and recent tool results | The draft email and the three facts found so far | Context window, framework state, checkpoints |
| Semantic memory | Facts about users, customers, products and the company | "Acme's fiscal year ends in March" | Vector store, key-value profile, knowledge graph |
| Episodic memory | What happened in past runs and conversations | "Last quarter's close was late because of bank feeds" | Logged episodes with timestamps, searchable summaries |
| Procedural memory | How to do things: learned steps, rules and preferences | "Weekly report: revenue first, five bullets, Slack" | Instruction files, skills, updated prompts, code |
Researchers borrowed these names from human cognition, and they map well to engineering choices: semantic memory is about retrieval quality, episodic memory about time and context, and procedural memory about changing the agent's own behavior.
Memory architectures, from simplest to richest
- Keep it in context. Pass the whole history. Simple and accurate for short tasks; breaks on long ones as cost and context limits grow.
- Summarize as you go. Compress older turns into a running summary. Cheap; details get lost.
- Vector retrieval. Embed memories and fetch the most similar ones for each step. Scales well; can surface outdated or conflicting facts unless you update and expire them.
- Knowledge graphs. Store entities and relationships with time stamps, so the agent knows that a fact changed and when. Zep and Mem0's graph memory take this route.
- Self-edited memory. The agent decides what to write, update or delete, often in plain files or memory blocks. Letta (from the MemGPT research) and Anthropic's memory tool for Claude work this way, and instruction files such as AGENTS.md give coding agents durable procedural memory.
- Consolidation. A background process merges duplicates, resolves conflicts and promotes repeated lessons into rules, much like sleep consolidates human memory. Mem0 calls its version Dream.
Most production agents combine three or four of these: working state in checkpoints, a user profile, searchable episodes and a small set of rules the agent can edit.
AI agent memory tools compared (checked November 2026)
| Tool | Approach | Best for | Free tier | Paid |
|---|---|---|---|---|
| Mem0 | Memory layer API with extraction, retrieval and optional graph memory; open-source core | Apps that need per-user memory fast | Free: unlimited end users; 50,000 adds and 10,000 retrievals a month with your own model key | Custom plans |
| Zep | Temporal knowledge graph of users and business data | Agents where facts change over time | Free: 10,000 credits a month | Flex $125, Flex Plus $375 a month |
| Letta | Stateful agents with self-edited memory blocks | Long-lived agents that manage their own memory | Free: up to 3 stateful agents | Pro $20 a month including $20 of credits |
| Supermemory | Memory and search API with app connectors | Builders adding memory and retrieval in one service | Free with $5 of usage | Pro $19, Max $100, Scale $399 a month |
| LangGraph memory store | Checkpoints for threads plus a long-term store; LangMem helpers | Teams already on LangGraph | Free, open source | Hosting through LangSmith from $39 per seat a month |
| SPIRITT | Built-in short and long-term memory of people, preferences and decisions | Teams that want an agent that remembers while it runs the work | Free signup and daily credits | Starter $32, Pro $256, Max $1,024 a month |
Prices come from each vendor's pricing page in November 2026; model and embedding costs are usually extra.
How to design memory for your agent
- Decide what is worth remembering. Preferences, decisions, corrections and stable facts are high value. Raw chat logs are rarely worth storing forever.
- Write memories with sources and dates. "Customer prefers email (from call on Nov 12)" can be checked and updated; "customer prefers email" cannot.
- Handle change explicitly. When a new fact contradicts an old one, update or expire the old one instead of keeping both.
- Scope memory. Keep per-user, per-team and company memory separate, and never let one customer's data surface in another customer's conversation.
- Let people see and edit it. A memory a user can read and correct is a memory they will trust.
- Measure it. Test whether retrieved memories actually improve answers. Our guide to AI agent evaluation shows how to build that test set, and AI agent observability covers tracing memory reads and writes.
Privacy and compliance for AI agent memory
Long-term memory is personal data storage, and the usual rules apply. Tell users what the agent remembers, honor deletion requests across every store (vector, graph, logs and backups), keep regulated data such as health or card numbers out of memory unless you have a lawful basis and the right controls, and set retention periods. In regulated industries, choose a memory setup you can deploy in your own cloud or on your own servers.
How SPIRITT handles memory
SPIRITT keeps short and long-term memory of people, preferences and decisions, and the same memory follows you across the web, mobile and desktop apps and wherever you tag @SPIRITT, including Slack, Teams and email. It composes models from several labs within each task, learns from corrections and from runs that went well, turns repeated steps into skills and fast deterministic code, and gets cheaper over time. Memory lives inside your isolated workspace, with an audit trail of every action, and enterprise customers can deploy in SPIRITT cloud, their own cloud, on their own servers or fully air-gapped.
Because SPIRITT is also a state-of-the-art coding agent, it can add memory to an agent you are building: wire Mem0, Zep or a LangGraph store into your code, write the tests and open the pull request. For the framework side, read our guide to the LangGraph AI agent framework.
FAQ
What is AI agent memory?
It is the set of mechanisms that let an agent keep and reuse information across steps and sessions: working memory in the current context, plus long-term memory of facts, past events and learned procedures stored outside the model.
What are the types of memory in AI agents?
Short-term or working memory, and three kinds of long-term memory: semantic (facts), episodic (past experiences) and procedural (how to do things, including rules and preferences).
What is the best memory layer for AI agents?
It depends on the job. Mem0 is the quickest way to add per-user memory, Zep suits facts that change over time, Letta suits agents that manage their own memory, and Supermemory combines memory with search. SPIRITT has memory built in for the agents it runs.
How do you add long-term memory to an AI agent?
Store important facts and events outside the model (a vector store, a graph or files), retrieve the relevant ones at each step, update or expire them when facts change, and let the agent write new memories when it learns something. Libraries such as Mem0 and LangMem handle most of this for you.
What is agentic AI memory?
It is memory designed for agents that plan and act over many steps and sessions, so they can resume work, avoid repeating mistakes and adapt to each user, rather than memory for a single chat.
Is AI agent memory the same as RAG?
They overlap. Retrieval augmented generation fetches documents to answer a question. Agent memory also writes: it records what happened and what was learned, updates old facts and changes the agent's future behavior.
Does ChatGPT or Claude have memory?
Yes. Both offer memory features for their consumer apps, and Anthropic provides a memory tool for developers building on Claude. Agents you build yourself still need their own memory layer.
How we checked
SPIRITT publishes this guide. Prices and plan limits come from the pricing pages of Mem0, Zep, Letta and Supermemory, read on November 23, 2026, and LangSmith prices from langchain.com/pricing on the same day. Architecture facts come from each project's documentation. We read the current Google top results for "AI agent memory" in the US to cover the questions searchers ask. SPIRITT facts come from spiritt.ai and the SPIRITT product.