---
title: "What are the types of memory in AI agents?"
description: "AI agents have short-term memory in the context window and long-term memory outside the model, sorted by content, by storage form and by scope."
image: "https://bombos.ai/assets/og-en-v2.png"
---

# What are the types of memory in AI agents?

Short answer

AI agents have short-term memory, the context window and session state of one task, and long-term memory outside the model. Long-term memory is sorted by content (episodic, semantic, procedural), by storage form (instruction files, agent notes, a retrieval index, a memory service) and by scope. For a team, scope matters most: does the memory belong to one user, one project, one agent or everyone?

*Piet Baudoin · published November 16, 2026 · November 16, 2026*

## Short-term memory: the context window and the session

Anthropic’s documentation calls the context window the model’s “working memory”: all the text the model can see when it writes an answer. That includes your instructions, the conversation so far, files the agent opened and the results of its tool calls. According to that documentation, current Claude models such as Opus 5.5 and Sonnet 5.5 have a window of 1 million tokens, older ones 200,000 (as of November 2026).

Two limits apply. First, the window is not a perfect memory: the more tokens are in it, the lower the accuracy and recall, which Anthropic calls context rot. Second, it is rebuilt on every call. Frameworks such as LangChain treat short-term memory as the state of one conversation thread, which can be saved in checkpoints and loaded again. What is not saved or reloaded, or what a chat interface drops to make room, the model no longer sees. Everything else on this page exists to work around those two limits.

## Long-term memory by content: events, facts, procedures

The common split comes from cognitive science and says what is stored. LangChain’s documentation uses the same three kinds:

1.  **Episodic memory**: what happened. “Last Tuesday the client asked for the quote in two parts.”
2.  **Semantic memory**: facts that keep holding. “This client wants updates by email, not by phone.”
3.  **Procedural memory**: how to do something. “A quote opens with the summary and names the price after that.”

For a team, procedural memory is the most valuable and the easiest to lose: it lives in corrections someone gives once.

## Long-term memory by storage form: four ways

Long-term memory lives outside the model. The model reads it back into the context window when it needs it. Each of the three content kinds above can sit in any of these forms; they differ in who decides what goes in.

| Storage form | What is stored | Who writes it | Examples |
| --- | --- | --- | --- |
| Instruction files | Rules, conventions, project facts in plain text | People, sometimes the agent | CLAUDE.md in Claude Code, project instructions |
| Agent-written notes | Files the agent creates and updates itself | The agent | Claude API memory tool (a /memories directory), Claude Code auto memory |
| Retrieval over documents (RAG) | An index of existing documents, searched per question | An indexing pipeline | A vector store over your docs or wiki |
| Managed memory service | Extracted facts, entities and relations, often as a graph | The memory service, based on conversations | Mem0, Zep, Supermemory, Letta |

Two details from the documentation show how different these are:

1.  **Claude API memory tool.** Claude creates, reads, edits and deletes files in a /memories directory. It is client-side: Claude asks for the file operation, your application performs it and decides where the data lives.
2.  **Zep.** Stores facts as relations between entities in a Context Graph. Through its Context MCP server and plugin, Claude, ChatGPT, Claude Code, Codex and Cursor can use the same graph, and administrators decide which user can reach which shared graph.

How the memory services differ in price and approach is in [Mem0 vs Zep vs Supermemory vs Letta](https://bombos.ai/en/questions/ai-memory/mem0-vs-zep-vs-supermemory-vs-letta/).

## The type people overlook: scope

Most explanations stop at “short-term versus long-term”. For a team, the more important question is whose memory it is.

-   **Per user.** Claude’s chat memory belongs to one person’s account.
-   **Per project.** Each Claude project has its own memory, separate from other projects.
-   **Per repository.** Claude Code’s auto memory is stored per repository and shared across worktrees on that machine.
-   **Per agent or per application.** A memory service scopes by user, agent or run; you decide in code.
-   **Shared.** A memory service can also be shared between people and tools, such as Zep’s shared graphs over MCP. You have to set that up yourself: the built-in memory of the chat tools shares nothing with each other.

## The common misunderstanding

Many people think an agent with memory is learning. It is not, at least not in the sense of the model changing. The weights stay the same. What changes is what gets loaded into the window next time. That is good news: memory you control is memory you can read, correct and delete. It also means memory is only as good as what is written down and how well the right piece is found again.

## What this means for a team

Without a shared layer, each tool your team uses keeps its own memory with its own scope. What Claude learned from your colleague does not reach your Cursor session. What your ChatGPT knows about a client does not reach your coworker’s Claude. Switching tools means starting over, and when someone leaves, the context they built in their personal account leaves too. For the fuller picture, see [How can a team share one AI memory?](https://bombos.ai/en/questions/ai-memory/how-to-share-ai-memory-across-a-team/) and [Is RAG the same as AI memory?](https://bombos.ai/en/questions/ai-memory/rag-vs-ai-memory/).

## Where Bombos fits

Bombos is the long-term memory layer with team scope across tools. It is a plugin that gives Claude, Claude Code, ChatGPT, Copilot, Grok, Codex, Cursor and your own agents one shared memory: team knowledge, rules the team has learned, and what already exists in mail, documents and repositories. It combines retrieval and a context graph, shows what each answer is based on, and runs in our cloud or on your own server. One person can try it first for their own agents.

## Related questions

Does the model itself learn from my conversations?

No. The model's weights do not change while you work with it. Everything an agent remembers between sessions is stored outside the model and loaded back into the context window when it is relevant.

Do episodic, semantic and procedural memory come from AI research?

No, they are terms from cognitive science for memory of events, of facts and of how to do things. Agent frameworks such as LangChain use them to decide what to store; how it is stored differs per product.

Is a bigger context window the same as better memory?

No. Anthropic's documentation notes that accuracy and recall drop as the number of tokens grows, which it calls context rot. A large window holds more, but what is not saved is not there in the next session.

Which type should a team start with?

Written instructions that everyone's tools load, such as a shared CLAUDE.md for a code base, are the cheapest start. Once knowledge lives in many tools and people, you need a long-term store with a shared scope.

## Sources

1.  [Context windows (Claude API docs)](https://platform.claude.com/docs/en/build-with-claude/context-windows)
2.  [Memory overview (LangChain docs)](https://docs.langchain.com/oss/python/concepts/memory)
3.  [Use Claude's chat search and memory (Claude Help Center)](https://support.claude.com/en/articles/11817273-use-claude-s-chat-search-and-memory-to-build-on-previous-context)
4.  [How Claude remembers your project (Claude Code docs)](https://code.claude.com/docs/en/memory)
5.  [Memory tool (Claude API docs)](https://platform.claude.com/docs/en/agents-and-tools/tool-use/memory-tool)
6.  [Context MCP server (Zep docs)](https://help.getzep.com/context-mcp-server)

## What does your AI forget?

1.  01You tell us which AI you use and where it keeps starting over.
2.  02We show what a shared memory changes there, on your own examples.
3.  03You keep the plan, with or without Bombos.

![Piet Baudoin](https://bombos.ai/assets/team/piet-klein.jpg)

**Piet Baudoin**You talk to Piet, from the Bombos teamDutch team from Utrecht and Nijmegen · data in Europe

## More questions about AI memory

-   [What is a memory OS for AI agents (MemoryOS, MemOS, MIRIX)?](https://bombos.ai/en/questions/ai-memory/what-is-a-memory-os-for-ai-agents/)
-   [How does memory work in an n8n AI agent?](https://bombos.ai/en/questions/ai-memory/how-does-memory-work-in-n8n-ai-agents/)
-   [How does Anthropic's memory tool for Claude agents work?](https://bombos.ai/en/questions/ai-memory/how-does-the-claude-memory-tool-work/)
-   [What is Hindsight agent memory and how does it work?](https://bombos.ai/en/questions/ai-memory/what-is-hindsight-agent-memory/)
-   [What is A-Mem (Agentic Memory for LLM Agents)?](https://bombos.ai/en/questions/ai-memory/what-is-a-mem-agentic-memory/)
-   [What is memory poisoning in AI agents, and how do you defend against it?](https://bombos.ai/en/questions/ai-memory/what-is-memory-poisoning-in-ai-agents/)
-   [What is ReasoningBank, the memory framework that learns from failures?](https://bombos.ai/en/questions/ai-memory/what-is-reasoningbank/)
-   [What is SimpleMem (Efficient Lifelong Memory for LLM Agents)?](https://bombos.ai/en/questions/ai-memory/what-is-simplemem/)

[All questions about AI memory →](https://bombos.ai/en/questions/ai-memory/)


---

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://bombos.ai/#organization","name":"Bombos","url":"https://bombos.ai/","logo":"https://bombos.ai/assets/bombos-bee.png","description":"Bombos is the memory layer under every AI your team uses. One shared memory for Claude, ChatGPT, Copilot, Cursor and your own agents, that learns how you work.","sameAs":["https://www.linkedin.com/company/bombos-ai","https://www.youtube.com/@truebombos","https://www.instagram.com/truebombos/","https://bsky.app/profile/bombostrue.bsky.social","https://www.threads.com/@truebombos","https://mastodon.social/@Bombos","https://www.tiktok.com/@truebombos","https://t.me/truebombos","https://www.pinterest.com/truebombos/","https://github.com/bombos-ai","https://linktr.ee/bombos.ai","https://bombosai.substack.com","https://hashnode.com/@bombosai","https://hackernoon.com/u/bombos","https://dev.to/bombos"],"email":"info@bombos.ai","areaServed":["NL","Europe"],"knowsLanguage":["nl","en"],"contactPoint":{"@type":"ContactPoint","email":"info@bombos.ai","contactType":"sales","url":"https://bombos.ai/en/contact/","availableLanguage":["nl","en"]}},{"@type":"WebSite","@id":"https://bombos.ai/#website","name":"Bombos","url":"https://bombos.ai/","inLanguage":["nl-NL","en"],"publisher":{"@id":"https://bombos.ai/#organization"}}]}

{"@context":"https://schema.org","@type":"Article","headline":"What are the types of memory in AI agents?","description":"AI agents have short-term memory in the context window and long-term memory outside the model, sorted by content, by storage form and by scope.","abstract":"AI agents have short-term memory, the context window and session state of one task, and long-term memory outside the model. Long-term memory is sorted by content (episodic, semantic, procedural), by storage form (instruction files, agent notes, a retrieval index, a memory service) and by scope. For a team, scope matters most: does the memory belong to one user, one project, one agent or everyone?","datePublished":"2026-11-16T00:00:00.000Z","dateModified":"2026-11-16T00:00:00.000Z","author":{"@type":"Person","name":"Piet Baudoin"},"publisher":{"@type":"Organization","@id":"https://bombos.ai/#organization","name":"Bombos","logo":{"@type":"ImageObject","url":"https://bombos.ai/assets/bombos-bee.png"}},"image":"https://bombos.ai/assets/og-en-v2.png","mainEntityOfPage":"https://bombos.ai/en/questions/ai-memory/types-of-ai-agent-memory/","inLanguage":"en-US","isPartOf":{"@type":"CollectionPage","name":"AI memory","url":"https://bombos.ai/en/questions/ai-memory/"},"citation":[{"@type":"CreativeWork","name":"Context windows (Claude API docs)","url":"https://platform.claude.com/docs/en/build-with-claude/context-windows"},{"@type":"CreativeWork","name":"Memory overview (LangChain docs)","url":"https://docs.langchain.com/oss/python/concepts/memory"},{"@type":"CreativeWork","name":"Use Claude's chat search and memory (Claude Help Center)","url":"https://support.claude.com/en/articles/11817273-use-claude-s-chat-search-and-memory-to-build-on-previous-context"},{"@type":"CreativeWork","name":"How Claude remembers your project (Claude Code docs)","url":"https://code.claude.com/docs/en/memory"},{"@type":"CreativeWork","name":"Memory tool (Claude API docs)","url":"https://platform.claude.com/docs/en/agents-and-tools/tool-use/memory-tool"},{"@type":"CreativeWork","name":"Context MCP server (Zep docs)","url":"https://help.getzep.com/context-mcp-server"}]}

{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Bombos","item":"https://bombos.ai/en/"},{"@type":"ListItem","position":2,"name":"Questions","item":"https://bombos.ai/en/questions/"},{"@type":"ListItem","position":3,"name":"AI memory","item":"https://bombos.ai/en/questions/ai-memory/"},{"@type":"ListItem","position":4,"name":"What are the types of memory in AI agents?","item":"https://bombos.ai/en/questions/ai-memory/types-of-ai-agent-memory/"}]}

{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","name":"Does the model itself learn from my conversations?","acceptedAnswer":{"@type":"Answer","text":"No. The model's weights do not change while you work with it. Everything an agent remembers between sessions is stored outside the model and loaded back into the context window when it is relevant."}},{"@type":"Question","name":"Do episodic, semantic and procedural memory come from AI research?","acceptedAnswer":{"@type":"Answer","text":"No, they are terms from cognitive science for memory of events, of facts and of how to do things. Agent frameworks such as LangChain use them to decide what to store; how it is stored differs per product."}},{"@type":"Question","name":"Is a bigger context window the same as better memory?","acceptedAnswer":{"@type":"Answer","text":"No. Anthropic's documentation notes that accuracy and recall drop as the number of tokens grows, which it calls context rot. A large window holds more, but what is not saved is not there in the next session."}},{"@type":"Question","name":"Which type should a team start with?","acceptedAnswer":{"@type":"Answer","text":"Written instructions that everyone's tools load, such as a shared CLAUDE.md for a code base, are the cheapest start. Once knowledge lives in many tools and people, you need a long-term store with a shared scope."}}]}
```
