---
title: "AI agent memory management: store, update, forget | Bombos"
description: "Good agent memory management decides what is worth storing, updates or deletes memories when facts change, and expires what is no longer used."
image: "https://bombos.ai/assets/og-en-v2.png"
---

# How should an AI agent manage its memory: what to store, update and forget?

Short answer

AI agent memory management is the set of rules for what an agent writes to memory, how it updates or removes memories when facts change, and when old memories expire. The 2025 Mem0 paper lets an LLM choose add, update, delete or no change for each new fact, and Anthropic's docs advise capping memory size and deleting files that have not been used for a long time.

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

## Memory management is a lifecycle, not a database

Most writing about agent memory is about retrieval: how to find the right memory. The harder problem comes earlier and later. What deserves to be stored at all, what happens when a stored fact stops being true, and when does a memory leave? An agent that only adds memories ends up with three versions of the same price list and no idea which one counts.

## The four decisions

| Decision | Question | Common practice |
| --- | --- | --- |
| 1\. Write | Is this worth remembering? | Extract distilled facts, decisions and lessons, not whole transcripts |
| 2\. Update | Does this change something already stored? | Compare with similar memories, then add, merge or replace |
| 3\. Forget | Is this contradicted or no longer used? | Delete contradicted memories, expire unused ones |
| 4\. Guard | May this be stored at all? | Strip secrets and personal data, cap size, restrict paths |

**Write.** The Mem0 paper extracts candidate facts from each new message pair, using a running conversation summary and the last 10 messages as context. LangGraph distinguishes facts (semantic memory), past events (episodic) and instructions (procedural); deciding which type you are storing helps decide where it goes.

**Update.** The system in the 2025 Mem0 paper compares each candidate fact with the 10 most similar existing memories and lets the LLM choose ADD, UPDATE, DELETE or NOOP through a tool call. LangGraph warns that a single growing profile becomes error-prone, while a collection of small memories means the model must “delete or update existing items in the list, which can be tricky.”

**Forget.** Anthropic’s memory tool docs give two plain rules: cap how large a memory file can grow, and “periodically delete memory files that haven’t been accessed in a long time.” Claude’s tool description already tells it to keep the memory folder organized, and you can reinforce that in your prompt by asking it to rename or delete files that are no longer relevant.

**Guard.** The same docs note that Claude usually refuses to write sensitive information, but recommend validation that strips sensitive data before your handler writes a file, and strict checks that every path stays inside `/memories`.

## When to write: during or after the task

You can write memory in the hot path, while the agent works, or in the background afterwards. LangGraph lists the trade-off: the hot path makes memories available at once and visible to the user, but adds latency and an extra job for the agent. Background writing avoids that, but you must choose how often it runs. Many teams combine both: the agent notes what it learns during the task, and a separate pass tidies, merges and removes later.

## The misunderstanding: memory management means saving tokens

Compression and summarization do save tokens, but the bigger reason to manage memory is correctness. A stale memory is worse than none, because the agent acts on it with confidence. The same goes for a memory that was written by mistake or planted on purpose; see [What is memory poisoning in AI agents?](https://bombos.ai/en/questions/ai-memory/what-is-memory-poisoning-in-ai-agents/) and [What are the privacy risks of AI agent memory?](https://bombos.ai/en/questions/ai-memory/privacy-risks-of-ai-agent-memory/)

## Store lessons, not only facts

Facts about users are the classic example, but the most valuable memories for work are often lessons: what went wrong last time and how to avoid it. The ReasoningBank paper distills reasoning strategies from both successful and failed attempts, and reports that including failures improved results compared with storing successes only. See [What is ReasoningBank?](https://bombos.ai/en/questions/ai-memory/what-is-reasoningbank/)

## What this means for a team

In a team, memory management gains a social layer. Who may change a shared memory? What happens when two colleagues teach the agent opposite rules? Personal preferences should not overwrite team decisions, and every change should leave a trace, so a wrong memory can be found and undone. Those questions are why shared memory needs ownership and history, not only storage. For how teams set this up across tools, see [How can a team share one AI memory?](https://bombos.ai/en/questions/ai-memory/how-to-share-ai-memory-across-a-team/)

## Where Bombos fits

For a team, these decisions about storing, updating and forgetting belong in one shared place rather than in each agent. Bombos is a plugin: a shared memory layer underneath the AI your team already uses, from Claude, ChatGPT, Copilot, Grok, Codex, Cursor and your own agents. It learns how your team works, draws on what already sits in mail, documents and repos, and shows with every answer what it rests on. It runs in the cloud in Europe or standalone on your own server, and one person can try it first with their own agents.

## Related questions

Should an agent store everything?

No. Storing every turn makes retrieval noisier and keeps outdated facts alive. Store distilled facts, decisions and lessons, and keep raw history separately if you need an audit trail.

How does an agent know a memory is outdated?

Usually by comparing a new fact with similar stored ones. In the 2025 Mem0 paper, an LLM looks at the 10 most similar memories and can update one or delete one that the new information contradicts.

Who should manage memory: the agent or the developer?

Both. The agent can write and edit in the moment, but the developer sets the rules: what kinds of information may be stored, size limits, expiry, and what must never be written, such as secrets.

Should failures be stored too?

Often yes. The ReasoningBank paper found that adding lessons from failed attempts improved results over storing successes only.

## Sources

1.  [Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory (arXiv 2504.19413)](https://arxiv.org/html/2504.19413)
2.  [Memory tool (Claude Platform docs)](https://platform.claude.com/docs/en/agents-and-tools/tool-use/memory-tool)
3.  [Memory overview (LangChain / LangGraph docs)](https://docs.langchain.com/oss/python/concepts/memory)
4.  [ReasoningBank: Scaling Agent Self-Evolving with Reasoning Memory (arXiv 2509.25140)](https://arxiv.org/abs/2509.25140)

## 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

-   [How does Anthropic's memory tool for Claude agents work?](https://bombos.ai/en/questions/ai-memory/how-does-the-claude-memory-tool-work/)
-   [Mem0 vs Zep vs Supermemory vs Letta: which agent memory tool should I use?](https://bombos.ai/en/questions/ai-memory/mem0-vs-zep-vs-supermemory-vs-letta/)
-   [How does memory work in an n8n AI agent?](https://bombos.ai/en/questions/ai-memory/how-does-memory-work-in-n8n-ai-agents/)
-   [What are the types of memory in AI agents?](https://bombos.ai/en/questions/ai-memory/types-of-ai-agent-memory/)
-   [What is Hindsight agent memory and how does it work?](https://bombos.ai/en/questions/ai-memory/what-is-hindsight-agent-memory/)
-   [Does OpenClaw have memory, and what does the Mem0 plugin add?](https://bombos.ai/en/questions/ai-memory/does-openclaw-have-memory-mem0/)
-   [How do you evaluate the memory of an LLM agent?](https://bombos.ai/en/questions/ai-memory/how-to-evaluate-llm-agent-memory/)
-   [How do you give an LLM long-term memory?](https://bombos.ai/en/questions/ai-memory/how-to-give-an-llm-long-term-memory/)

[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":"How should an AI agent manage its memory: what to store, update and forget?","description":"Good agent memory management decides what is worth storing, updates or deletes memories when facts change, and expires what is no longer used.","abstract":"AI agent memory management is the set of rules for what an agent writes to memory, how it updates or removes memories when facts change, and when old memories expire. The 2025 Mem0 paper lets an LLM choose add, update, delete or no change for each new fact, and Anthropic's docs advise capping memory size and deleting files that have not been used for a long time.","datePublished":"2026-11-17T00:00:00.000Z","dateModified":"2026-11-17T00: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/ai-agent-memory-management/","inLanguage":"en-US","isPartOf":{"@type":"CollectionPage","name":"AI memory","url":"https://bombos.ai/en/questions/ai-memory/"},"citation":[{"@type":"CreativeWork","name":"Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory (arXiv 2504.19413)","url":"https://arxiv.org/html/2504.19413"},{"@type":"CreativeWork","name":"Memory tool (Claude Platform docs)","url":"https://platform.claude.com/docs/en/agents-and-tools/tool-use/memory-tool"},{"@type":"CreativeWork","name":"Memory overview (LangChain / LangGraph docs)","url":"https://docs.langchain.com/oss/python/concepts/memory"},{"@type":"CreativeWork","name":"ReasoningBank: Scaling Agent Self-Evolving with Reasoning Memory (arXiv 2509.25140)","url":"https://arxiv.org/abs/2509.25140"}]}

{"@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":"How should an AI agent manage its memory: what to store, update and forget?","item":"https://bombos.ai/en/questions/ai-memory/ai-agent-memory-management/"}]}

{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","name":"Should an agent store everything?","acceptedAnswer":{"@type":"Answer","text":"No. Storing every turn makes retrieval noisier and keeps outdated facts alive. Store distilled facts, decisions and lessons, and keep raw history separately if you need an audit trail."}},{"@type":"Question","name":"How does an agent know a memory is outdated?","acceptedAnswer":{"@type":"Answer","text":"Usually by comparing a new fact with similar stored ones. In the 2025 Mem0 paper, an LLM looks at the 10 most similar memories and can update one or delete one that the new information contradicts."}},{"@type":"Question","name":"Who should manage memory: the agent or the developer?","acceptedAnswer":{"@type":"Answer","text":"Both. The agent can write and edit in the moment, but the developer sets the rules: what kinds of information may be stored, size limits, expiry, and what must never be written, such as secrets."}},{"@type":"Question","name":"Should failures be stored too?","acceptedAnswer":{"@type":"Answer","text":"Often yes. The ReasoningBank paper found that adding lessons from failed attempts improved results over storing successes only."}}]}
```
