AI Agent Memory: Benchmark Comparison

June 9, 2026 · View on GitHub

How agentmemory compares against other persistent memory solutions for AI coding agents.

All numbers here come from published benchmarks or public repositories. We link to primary sources wherever possible so you can reproduce.


Retrieval Accuracy (LongMemEval)

LongMemEval (ICLR 2025) measures long-term memory retrieval across ~48 sessions per question on the S variant (500 questions, ~115K tokens each).

SystemBenchmarkR@5Notes
agentmemory (BM25 + Vector)LongMemEval-S95.2%all-MiniLM-L6-v2 embeddings, no API key
agentmemory (BM25-only)LongMemEval-S86.2%Fallback when no embedding provider available
MemPalaceLongMemEval-S~96.6% (self-reported)Vendor-published number we have not independently reproduced. Vector-only with a larger embedding model and no agent-integration surface (no hooks, no MCP, no multi-agent)
oracleagentmemoryLongMemEval94.4% (self-reported)Vendor-published, scored with GPT-5.5 at "xhigh reasoning" and requires an Oracle AI Database. We have not reproduced it. agentmemory's 95.2% uses free local embeddings and no API key
Letta / MemGPTLoCoMo83.2%Different benchmark (LoCoMo, not LongMemEval)
Mem0LoCoMo68.5%Different benchmark (LoCoMo, not LongMemEval)

⚠️ Apples vs oranges caveat: only agentmemory's 95.2% is our own measured result, reproducible from the methodology below. Every other number here is the vendor's published claim, on a different benchmark or harness, that we have not independently reproduced: MemPalace and oracleagentmemory report LongMemEval (oracleagentmemory's run used GPT-5.5 at "xhigh reasoning" against an Oracle AI Database), while Letta and Mem0 publish on LoCoMo. Treat them as ballpark vendor claims, not a head-to-head on identical data. We'd love to run every system on the same dataset; if any maintainer wants to collaborate, open an issue.

Full agentmemory methodology: LONGMEMEVAL.md


Feature Matrix

Featureagentmemorymem0Letta/MemGPTKhojsupermemoryMemPalaceoracleagentmemoryHippo
GitHub starsGrowing58K+23K+35K+26K+54K+PyPI (Oracle)Trending
TypeMemory engine + MCP serverMemory layer APIFull agent runtimePersonal AIMemory API + appBenchmark-focused OSSMemory engine (Oracle DB)Memory system
Auto-capture via hooks✅ 12 lifecycle hooks❌ Manual add()❌ Agent self-edits❌ Manual❌ API-side extraction❌ Manual❌ API extraction❌ Manual
Search strategyBM25 + Vector + GraphVector + GraphVector (archival)SemanticVector + RAGVector-only (large model)Vector + semanticDecay-weighted
Multi-agent coordination✅ Leases + signals + meshRuntime-internal onlyScoped only (user/agent/thread)Multi-agent shared
Framework lock-inNoneNoneHighStandaloneNone (drop-in wrappers)NoneOracle DatabaseNone
External depsNoneQdrant/pgvectorPostgres + vectorMultipleManaged cloudVector storeOracle AI DatabaseNone
Self-hostable✅ defaultOptionalOptional❌ Cloud-only✅ (needs Oracle DB)
Knowledge graph✅ Entity extraction + BFS✅ Mem0g variantDoc links
Memory decay✅ Ebbinghaus + tiered✅ Auto-forget✅ Half-lives
4-tier consolidation✅ Working → episodic → semantic → proceduralOS-inspired tiersEpisodic + semantic
Version / supersession✅ Jaccard-basedPassive✅ Auto-resolve
Real-time viewer✅ Port 3113Cloud dashboardCloud dashboardWeb UICloud dashboard
Privacy filtering✅ Strips secrets pre-store
Obsidian export✅ Built-inNative format
Cross-agent✅ MCP + RESTAPI callsWithin runtimeStandaloneMCP + APIStandalonePython APIMulti-agent shared
Audit trail✅ All mutations loggedLimited
Language SDKsAny (REST + MCP)Python + TSPython onlyAPIPython + TSPythonPython onlyNode

Token Efficiency

The main reason to use persistent memory at all: token cost. Here's what one year of heavy agent use looks like across approaches.

ApproachTokens / yearCost / yearNotes
Paste full history into context19.5M+ImpossibleExceeds context window after ~200 observations
LLM-summarized memory (extraction-based)~650K~$500Lossy — summarization drops detail
agentmemory (API embeddings)~170K~$10Token-budgeted, only relevant memories injected
agentmemory (local embeddings)~170K$0all-MiniLM-L6-v2 runs in-process
supermemoryNot publishedCloud pricingManaged API, no local token budget
Mem0Varies by integrationVariesExtraction-based, no token budget

agentmemory ships with a built-in token savings calculator. Run npx @agentmemory/agentmemory status after a few sessions and you'll see exactly how many tokens you've saved vs. pasting the full history.


What Each Tool Is Best At

This isn't a "agentmemory wins everything" page. Different tools solve different problems.

Choose agentmemory if you want:

  • Automatic capture with zero manual add() calls
  • MCP server that works across Claude Code, Cursor, Codex, Gemini CLI, etc.
  • Hybrid BM25 + vector + graph search
  • Real-time viewer to see what your agent is learning
  • Self-hostable with zero external databases
  • Privacy filtering on API keys and secrets
  • Multi-agent coordination (leases, signals, routines)

Choose Mem0 if you want:

  • Framework-agnostic API to bolt onto an existing agent
  • Managed cloud option with a dashboard
  • Python + TypeScript SDKs for direct integration
  • Entity/relationship extraction as the primary abstraction

Choose Letta/MemGPT if you want:

  • A full agent runtime, not just memory
  • OS-inspired memory tiers (core/archival/recall)
  • Agents that self-edit their memory via function calls
  • Long-running conversational agents (weeks/months)

Choose Khoj if you want:

  • A personal AI second brain, not agent infrastructure
  • Document-first search over your files and the web
  • Obsidian/Notion/Emacs integrations
  • Scheduled automations and research tasks

Choose supermemory if you want:

  • A managed memory API with server-side auto-extraction and automatic forgetting
  • Drop-in wrappers for major AI frameworks (Vercel AI, LangChain, LangGraph)
  • A hosted dashboard with no infrastructure to run yourself
  • RAG plus memory served from a single query

Choose MemPalace if you want:

  • A simple, free, open-source vector memory store
  • To chase its self-reported retrieval benchmark (we have not reproduced it)
  • Pure retrieval over agent workflow features
  • Note: no auto-capture, no MCP, no multi-agent coordination, so you wire all integration yourself

Choose oracleagentmemory if you want:

  • You already run on Oracle AI Database and want memory inside it
  • Enterprise Oracle stack with vector search in the same database
  • LLM-backed extraction and are fine paying for a frontier model (their benchmark used GPT-5.5)
  • Note: Python-only, Oracle Database required, no MCP, no real-time viewer

Choose Hippo if you want:

  • Biologically-inspired memory model (decay, consolidation, sleep)
  • Multi-agent shared memory as a primary feature
  • "Forget by default, earn persistence through use" philosophy

Running Your Own Benchmarks

We encourage you to measure this yourself rather than trust any README. Here's how:

# Clone the repo
git clone https://github.com/rohitg00/agentmemory.git
cd agentmemory && npm install

# Run LongMemEval-S
npm run bench:longmemeval

# Run quality benchmark (240 observations, 20 queries)
npm run bench:quality

# Run scale benchmark
npm run bench:scale

# Run real embeddings benchmark
npm run bench:real-embeddings

Results land in benchmark/results/. All scripts, datasets, and results are committed for reproducibility.


Corrections Welcome

If you maintain one of these tools and we got a number wrong, please open an issue or PR. We'd rather have accurate numbers than convenient ones.

If you want to add your tool to this comparison, open a PR with:

  1. A link to your benchmark methodology
  2. The metric and dataset you're measuring on
  3. A commit hash / version so we can reproduce

Sources: