agentmemory v0.6.0

March 18, 2026 · View on GitHub

Date: 2026-03-18T07:45:03.529Z Platform: darwin arm64, Node v20.20.0

1. Scale: agentmemory vs Built-in Memory

Every built-in agent memory (CLAUDE.md, .cursorrules, Cline's memory-bank) loads ALL memory into context every session. agentmemory searches and returns only relevant results.

ObservationsSessionsIndex BuildBM25 SearchHybrid SearchHeapContext Tokens (built-in)Context Tokens (agentmemory)SavingsBuilt-in Unreachable
24030177ms0.112ms0.63ms9MB10,5041,92482%17%
1,000125155ms0.317ms1.709ms6MB43,8341,96996%80%
5,000625810ms1.496ms8.58ms25MB220,3351,97299%96%
10,00012501657ms3.195ms17.49ms1MB440,9731,974100%98%
50,00062509182ms22.827ms108.722ms316MB2,216,1731,981100%100%

What the numbers mean

Context Tokens (built-in): How many tokens Claude Code/Cursor/Cline would consume loading ALL memory into the context window. At 5,000 observations, this is ~250K tokens — exceeding most context windows entirely.

Context Tokens (agentmemory): How many tokens the top-10 search results consume. Stays constant regardless of corpus size.

Built-in Unreachable: Percentage of memories that built-in systems CANNOT access because they exceed the 200-line MEMORY.md cap or context window limits. At 1,000 observations, 80% of your project history is invisible.

Storage Costs

ObservationsBM25 IndexVector Index (d=384)Total Storage
240395 KB494 KB0.9 MB
1,0001,599 KB2,060 KB3.6 MB
5,0008,006 KB10,298 KB17.9 MB
10,00016,005 KB20,596 KB35.7 MB
50,00080,126 KB102,979 KB178.8 MB

2. Cross-Session Retrieval

Can the system find relevant information from past sessions? This is impossible for built-in memory once observations exceed the line/context cap.

QueryTarget SessionGapBM25 FoundBM25 RankHybrid FoundHybrid RankBuilt-in Visible
How did we set up OAuth providers?ses_005-00924Yes#1Yes#1Yes
What was the N+1 query fix?ses_010-01418Yes#1Yes#2Yes
PostgreSQL full-text search setupses_010-01417Yes#1Yes#1Yes
bcrypt password hashing configurationses_005-00920Yes#1Yes#1Yes
Vitest unit testing setupses_020-0249Yes#1Yes#1Yes
webhook retry exponential backoffses_015-01914Yes#1Yes#1Yes
ESLint flat config migrationses_000-00429Yes#1Yes#1Yes
Kubernetes HPA autoscaling configurationses_025-0294Yes#1Yes#1No
Prisma database seed scriptses_010-01416Yes#1Yes#1Yes
API cursor-based paginationses_015-01914Yes#1Yes#1Yes
CSRF protection double-submit cookieses_005-00924Yes#1Yes#1Yes
blue-green deployment rollbackses_025-0294Yes#1Yes#1No

Summary: agentmemory BM25 found 12/12 cross-session queries. Hybrid found 12/12. Built-in memory (200-line cap) could only reach 10/12.

3. The Context Window Problem

Agent context window: ~200K tokens
System prompt + tools:  ~20K tokens
User conversation:      ~30K tokens
Available for memory:  ~150K tokens

At 50 tokens/observation:
  200 observations  =  10,000 tokens  (fits, but 200-line cap hits first)
  1,000 observations =  50,000 tokens  (33% of available budget)
  5,000 observations = 250,000 tokens  (EXCEEDS total context window)

agentmemory top-10 results:
  Any corpus size     =  ~1,924 tokens  (0.3% of budget)

4. What Built-in Memory Cannot Do

CapabilityBuilt-in (CLAUDE.md)agentmemory
Semantic searchNo (keyword grep only)BM25 + vector + graph
Scale beyond 200 linesNo (hard cap)Unlimited
Cross-session recallOnly if in 200-line windowFull corpus search
Cross-agent sharingNo (per-agent files)MCP + REST API
Multi-agent coordinationNoLeases, signals, actions
Temporal queriesNoPoint-in-time graph
Memory lifecycleNo (manual pruning)Ebbinghaus decay + eviction
Knowledge graphNoEntity extraction + traversal
Query expansionNoLLM-generated reformulations
Retention scoringNoTime-frequency decay model
Real-time dashboardNo (read files manually)Viewer on :3113
Concurrent accessNo (file lock)Keyed mutex + KV store

5. When to Use What

Use built-in memory (CLAUDE.md) when:

  • You have < 200 items to remember
  • Single agent, single project
  • Preferences and quick facts only
  • Zero setup is the priority

Use agentmemory when:

  • Project history exceeds 200 observations
  • You need to recall specific incidents from weeks ago
  • Multiple agents work on the same codebase
  • You want semantic search ("how does auth work?") not just keyword matching
  • You need to track memory quality, decay, and lifecycle
  • You want a shared memory layer across Claude Code, Cursor, Windsurf, etc.

Built-in memory is your sticky notes. agentmemory is the searchable database behind them.


Scale tests: 5 corpus sizes. Cross-session tests: 12 queries targeting specific past sessions.