AI Agent Memory

How AI agents remember across sessions: long-term memory architectures, memory platforms and their alternatives, memory vs RAG, and why assistants forget.

An agent without memory starts every session as a stranger. It asks for the same preferences twice, loses the decision a user made last week and cannot tell a returning customer from a new one. Fixing that takes more than a vector store bolted onto a chat loop, because deciding what is worth remembering, noticing when a fact has gone stale, working out whose memory a fact belongs to and forgetting on request are separate problems with separate failure modes.

These articles cover memory as it behaves in production: how memory platforms such as Mem0, Zep, Letta and Supermemory differ on axes you can verify, what building your own memory layer really costs, and where memory ends and retrieval begins. Maximem Synap treats memory as agentic context management, and the pages linked below explain that model in depth.

Start here: How agent memory works · The memory problem · Build vs buy agent memory · Long-term memory (glossary)

Async Subagents: What the Orchestrator Keeps in Context, What Workers Hand Back, and What Should Outlive the Session
Context Engineering

Async Subagents: What the Orchestrator Keeps in Context, What Workers Hand Back, and What Should Outlive the Session

Async subagents let an orchestrator stay reachable while background workers run long tasks. What the orchestrator must keep about in-flight work so compaction cannot erase it, what a worker should hand back, when a follow-up should interrupt or enqueue, how results reach an orchestrator that is busy, idle or waiting on an approval, and which decisions and preferences should outlive the session, with LangChain Deep Agents, Claude Code and OpenAI behaviour as of 6 November 2026.

2026-11-06
Read More
We Open-Sourced the Memory Engine Behind Synap
AI Agent Memory

We Open-Sourced the Memory Engine Behind Synap

Synap scores 95.6% on LongMemEval, ahead of every published score from the major agent memory platforms, and today the architecture behind it is open source as Synap Core.

2026-11-06
Read More
What Is a Company Brain? What It Is, What Memory It Actually Needs, and How to Test One
AI Agent Memory

What Is a Company Brain? What It Is, What Memory It Actually Needs, and How to Test One

A company brain is a shared memory layer that pulls what a company knows out of Slack, Notion, meeting notes, docs and tickets and serves it to people and any AI assistant. Connectors and storage are the easy part. What it needs to be trusted: scoping (who may see what), time (when a fact was true), conflict handling when sources disagree, provenance and forgetting. A plain definition, what is in and out, an architecture checklist and a test plan.

2026-11-04
Read More
Which LLM Should Write Your AI Agent's Memory? How to Choose and Test a Memory Extraction Model
AI Agent Memory

Which LLM Should Write Your AI Agent's Memory? How to Choose and Test a Memory Extraction Model

Which LLM to use for memory extraction: in Mem0's October 2026 test of 17 writer models on LoCoMo, the writer alone moved accuracy from 84.1% to 93.5% and cost from $0.68 to $158.55 per 1,000 writes, yet the top six sat within 0.9 points. How to test writer models on your own transcripts, the failure modes to measure (rules written as memory, over-extraction, missed updates), and where a small judge model fits with a type-aware write policy.

2026-11-04
Read More
Memory for Background Agents: Where It Lives When the Sandbox Is Discarded, What to Remember With No User in the Loop, and Who May Write or Forget
AI Agent Memory

Memory for Background Agents: Where It Lives When the Sandbox Is Discarded, What to Remember With No User in the Loop, and Who May Write or Forget

A background agent wakes on a cron, a heartbeat or an event, runs in a sandbox that is thrown away afterwards, and keeps only what it wrote somewhere else. Where that memory has to live (outside compute, scoped to the user and the agent, loaded at the start of every run), what to remember when no user is there to confirm anything, how async subagent results get written back without duplicates, and who may write to and delete from a memory several bots share.

2026-11-03
Read More
Agent State vs Agent Memory: Why a Checkpoint Is Not Long-Term Memory, and How to Wire Both
AI Agent Memory

Agent State vs Agent Memory: Why a Checkpoint Is Not Long-Term Memory, and How to Wire Both

Agent state is where one run or thread is: the checkpoint a LangGraph checkpointer, an OpenAI Agents SDK session or RunState, an ADK session or a Temporal event history keeps so the run can resume, pause for a human and replay. Agent memory is what the agent knows about a person or the world across threads: facts that get updated, scoped per user and deleted on request. What each framework gives you for each layer, the seven places teams confuse them, and a tested LangGraph build that wires both.

2026-10-30
Read More
Context Compaction vs Retrieval: When Summarising a Long Agent Session Is Cheap, When Exact Lines Win, and What Neither Does Across Sessions
Context Engineering

Context Compaction vs Retrieval: When Summarising a Long Agent Session Is Cheap, When Exact Lines Win, and What Neither Does Across Sessions

Compacting a 400,000-token Claude Opus 5.5 session costs about $0.08 of input when the prompt cache is warm and $1.60 to $2.00 when it has expired, at list prices as of 30 October 2026. Mainplane's measurement, Claude Code's and OpenAI's compaction docs, when to compact and when to start fresh and retrieve exact lines from the old session file, and the cross-session problem neither approach solves.

2026-10-30
Read More
Memory Write Policy for AI Agents: What to Remember, When to Overwrite, When to Ask, and What Never to Store, by Memory Type
AI Agent Memory

Memory Write Policy for AI Agents: What to Remember, When to Overwrite, When to Ask, and What Never to Store, by Memory Type

A memory write policy decides, before anything persists, whether an AI agent may store a candidate memory, and the rules have to differ by type: facts supersede with history, preferences need a direct statement, values and beliefs need the highest bar and a confirmation, instructions may only come from the user or operator, and episodes append and expire. A policy table, the evidence for per-type thresholds, and a tested Python write gate.

2026-10-29
Read More
Ontology for Agent Memory: Glossary, Taxonomy or Ontology, and How Much Schema an Agent Needs
AI Agent Memory

Ontology for Agent Memory: Glossary, Taxonomy or Ontology, and How Much Schema an Agent Needs

Agent memory borrows three layers from data architecture: a glossary of definitions and aliases, a taxonomy of memory categories and an ontology of typed relationships. Definitions alone lifted extraction F1 from 0.42 to 0.57 in one 2026 study, while a typed ontology pays off on set, negation and supersession questions. How ontologies constrain extraction and entity resolution in Zep, Cognee and LangChain, which layer you need at which scale, and what over-modelling costs.

2026-10-29
Read More
Agent Memory Consolidation: What a Nightly "Dreaming" Job Should Do to Your Agent's Memory, and How to Check It Did
AI Agent Memory

Agent Memory Consolidation: What a Nightly "Dreaming" Job Should Do to Your Agent's Memory, and How to Check It Did

Agent memory consolidation is a background job that merges duplicate memories, supersedes replaced facts, expires time-bound ones and promotes repeated episodes into durable facts. Run it on a copy, verify the copy against invariants and known answers, then swap. How Anthropic Dreams, Letta and Mem0 Dream do it, the failure modes of unattended runs, and a tested Python job.

2026-10-29
Read More
MCP Memory Server: What the Protocol Standardises, What It Leaves to the Backend, and How to Choose or Build One
AI Agent Memory

MCP Memory Server: What the Protocol Standardises, What It Leaves to the Backend, and How to Choose or Build One

An MCP memory server is an ordinary MCP server whose tools read and write memory. The 2026-07-28 spec standardises tool discovery, tool annotations, resources and subscriptions, stdio and Streamable HTTP, and OAuth 2.1 for remote servers. It says nothing about extraction, conflicting facts, scoping, deletion or staleness. What each side owns, what the official reference server does and where it stops, and how to choose or build one, read from the spec and each project's docs on 29 October 2026.

2026-10-29
Read More
Synap Is #1 on LongMemEval: 95.6% on All 500 Questions
Research & Product Updates

Synap Is #1 on LongMemEval: 95.6% on All 500 Questions

Maximem Synap is #1 on LongMemEval: 95.6% on all 500 questions with Gemini 3.8 Flash, at about 7.4K tokens per question. Every answer and verdict is public.

2026-10-29
Read More
AI Agent Deprovisioning: Revoking Access Does Not Erase What the Agent Remembered
AI Agent Memory

AI Agent Deprovisioning: Revoking Access Does Not Erase What the Agent Remembered

Revoking an AI agent's OAuth token, removing a tool permission or offboarding a user stops the next read, but the summaries, embeddings, cached tool results and shared team memory the agent already wrote stay readable. What an offboarding checklist has to cover for memory: which of three revocation events you are handling, memory scoped to the credential it came through, provenance on every derived fact, permission checks at read time, purge on revocation, and an audit record that proves it.

2026-10-28
Read More
Multi-Agent Shared Memory: What Agents Should Share, How to Scope It, and How One Agent Poisons the Rest
AI Agent Memory

Multi-Agent Shared Memory: What Agents Should Share, How to Scope It, and How One Agent Poisons the Rest

Shared memory for a team of AI agents is a write-governance problem, not a storage problem. What to share and keep private, how it differs from orchestration state and handoffs, why scoping memory before retrieval beats one global history, how to scope it per agent, run, user and tenant, how to handle conflicting writes, what provenance to record, and what October 2026 studies from DeepMind, Meta and MIT Media Lab show about shared notes, poisoned notes and rejections that fall out of the context window.

2026-10-28
Read More
How Do You Prevent Memory Poisoning Attacks on AI Agents?
AI Agent Memory

How Do You Prevent Memory Poisoning Attacks on AI Agents?

How to prevent memory poisoning in AI agents: the five ways poisoned content gets into memory, the published attacks on ChatGPT, Bedrock Agents and Claude Code, what OWASP ASI06 requires, eight defences from write-path validation to rollback, which ones still hold when the model is fooled, and a test plan you can run in CI.

2026-10-28
Read More
How Do You Make AI Agent Memory GDPR Compliant? Erasure That Reaches Derived Facts, Embeddings and Backups
AI Agent Memory

How Do You Make AI Agent Memory GDPR Compliant? Erasure That Reaches Derived Facts, Embeddings and Backups

AI agent memory is personal data, so GDPR applies to every fact, summary and embedding it keeps. What compliance takes in practice: a lawful basis per memory purpose, minimisation on the write path, retention limits, erasure that reaches derived facts, embeddings and backups, access and portability exports, processor contracts with the memory vendor and the LLM provider, transfer safeguards, a DPIA where risk is high, and where the EU AI Act fits after the July 2026 changes. Read against the GDPR text and EDPB guidance on 28 October 2026.

2026-10-28
Read More
How Do You Add Episodic and Semantic Memory to an AI Agent? A Working Python Build With SQLite, Local Embeddings and Tests
AI Agent Memory

How Do You Add Episodic and Semantic Memory to an AI Agent? A Working Python Build With SQLite, Local Embeddings and Tests

Add episodic and semantic memory to an AI agent with two SQLite tables and two code paths: episodes record what happened and when, facts hold what is true now and a new value closes the old one, a write path extracts both after each session, and a read path ranks them into the prompt. A shared playbook table, changed only on evidence attributed to the strategy as in Alibaba's SPAR, carries what works across users. Full Python with local embeddings, thirteen passing tests, no API key.

2026-10-28
Read More
Claude Code Memory, Codex Memory and Cursor Memory: What Each Coding Agent Remembers Between Sessions, Where It Lives, and How to Share It
Claude Code & Coding Agents

Claude Code Memory, Codex Memory and Cursor Memory: What Each Coding Agent Remembers Between Sessions, Where It Lives, and How to Share It

Claude Code remembers through CLAUDE.md and auto memory (the first 200 lines or 25KB of MEMORY.md), Codex through AGENTS.md (32 KiB by default) and opt-in local Memories, and Cursor through Rules and AGENTS.md since it removed Memories in 2.1. Where each one stores memory, what each forgets, and how to make one memory persist and be shared across all three, read from each vendor's docs on 28 October 2026.

2026-10-28
Read More
What Breaks When You Build Your Own Agent Memory? Nine Failure Modes and How to Detect Each
AI Agent Memory

What Breaks When You Build Your Own Agent Memory? Nine Failure Modes and How to Detect Each

When you build your own agent memory, the write path breaks first: unresolved contradictions, stale facts, duplicates that outvote corrections, entity confusion, deletes that miss derived copies, cross-user leakage and write cost. What each looks like in production, what causes it, and the signal that detects it, grounded in STALE, FEB-30 and HaluMem.

2026-10-28
Read More
How Do You Test Agent Memory Before You Ship? A Test Plan You Can Run in a Week
Agent Evals & Observability

How Do You Test Agent Memory Before You Ship? A Test Plan You Can Run in a Week

A one-week test plan for agent memory: script multi-session histories with a known answer key, then grade the store, retrieval and outcome separately across recall, continuity, contradiction, staleness, deletion, cross-tenant leakage and hallucinated recall, with a metric and a recommended pass bar for each.

2026-10-27
Read More
Can a Vector Database Be Agent Memory? What pgvector, pg_pinecone, Pinecone and Qdrant Give You, and What You Still Build
AI Agent Memory

Can a Vector Database Be Agent Memory? What pgvector, pg_pinecone, Pinecone and Qdrant Give You, and What You Still Build

A vector database can be the storage and retrieval layer of agent memory, but not the memory itself. Re-checked against pgvector, pg_pinecone, Pinecone and Qdrant documentation on 2 November 2026: what each gives you for filtering, tenants, hybrid search and deletes, what Pinecone's new Postgres extension fixes and what it leaves out, the five write-path operations none of them performs, and when a vector database alone is the right answer.

2026-10-27
Read More
Agent Memory vs RAG: When Do You Use Which?
AI Agent Memory

Agent Memory vs RAG: When Do You Use Which?

Use RAG for shared knowledge that changes by new versions and agent memory for per-person facts that get corrected. Plain RAG over raw chat history matched or beat memory systems in six of seven benchmark settings in October 2026, and retrieving the raw history alongside memory cut the losses memory adds.

2026-10-27
Read More
TencentDB Agent Memory, Read From the Source: It Needs a Second LLM and Searches by Keyword by Default
AI Agent Memory

TencentDB Agent Memory, Read From the Source: It Needs a Second LLM and Searches by Keyword by Default

The guides and news pages that rank for TencentDB Agent Memory repeat three claims its source code does not support: that it builds memory without any model API, that it runs hybrid vector search out of the box, and that no conversation data leaves the machine.

2026-10-13
Read More
Context Language Models: What the UW and Meta Paper Changes for Agent Builders, and What It Leaves to Memory
AI Agent Memory

Context Language Models: What the UW and Meta Paper Changes for Agent Builders, and What It Leaves to Memory

A Context Language Model is an existing model that rewrites its own context like a file. It manages working context inside a task better than summarisation, with less compute, and throws that context away when the task ends.

2026-10-01
Read More