We put the popular AI memories to a blind test. crag won.
We replayed 72 days of real coding work into each one. A judge scored them without knowing which was which.
How often the agent knew where you left off
270 times you came back to your work after a break. Did the agent already know what you were doing?
- crag51%
- crag, day one46%
ai-memory~36%Mem034%
claude-mem~29%
Zep~27%
Letta24%
LangMem21%agentmemory~21%
- No memory13%
Hover or tap a bar to see how that memory works. Striped bars are estimates.
Why crag gets it right.
Most memory tools rewrite your work with an AI. crag keeps it as it was.
Most memory tools
Wrong facts 4 in 10 for Letta, 3 in 10 for Mem0- Your workprompts, files, commands
- An AI rewrites itpaid on every turn
- A few short factsdetails lost or made up
- The agent may searchonly if it thinks to
crag
Wrong facts 1 in 10, and $0 to run- Your workprompts, files, commands
- Kept word for wordon your machine, free
- Found by meaningnearest project first
- Already in the promptbefore the agent asks
Head to head, crag beats every rival.
Two answers to the same question. The judge picks the better one without knowing whose it is. Ties count for neither side.
- crag 66%Mem0 34%129 won, 68 lost, 73 tied
- crag 78%Letta 22%
150 won, 42 lost, 78 tied - crag 75%LangMem 25%
147 won, 50 lost, 73 tied - crag 73%agentmemory 27%80 won, 29 lost, 60 tied
- crag 72%No memory 28%129 won, 51 lost, 90 tied
Every other benchmark we ran.
Each one asks something different, so the numbers differ from the chart above.
Every memory got the same notes
An easier setup. Each tool started from notes the agents saved, not the raw history.
- crag55%
Letta47%agentmemory41%
ai-memory32%Mem030%
Zep24%- No memory9%
How we tested.
- One developer’s real work. 72 days across 15 projects.
- Every memory read the same history in its own way. None could see ahead.
- The same AI wrote every answer. Another AI graded them blind.
- agentmemory, claude-mem and Zep were too slow or costly to finish. Their scores are estimated.
Give your agents a memory.
Free. Runs on your machine.
Checked against its published SHA-256 and added to your PATH.
One SQLite file. The memory database is stored locally.
crag adds its hooks and its MCP server to every agent it finds.
Starts when you log in. No administrator rights needed.
By default, crag sends counts of how it runs: hook speed, errors, notes delivered. Never prompts, notes or code. Turn it off with crag telemetry off.
Removes the hooks and the service. Your memory file stays.
Read install.sh and install.ps1 before you run them. See what each agent gets.
Test it on your own work
The same test, run on your own Claude Code history.
$ git clone https://github.com/WhitehatD/crag$ cd crag/bench/ab# reads your Claude Code history$ python -I events.py# or any other tool$ TOOLS="crag-auto crag-used mem0-turns letta-turns langmem-turns"# replays it into each one$ for t in $TOOLS; do python -I replay.py $t; done# grades them blind$ python -I grade.py $TOOLS
Full guide on GitHub: every memory you can test, what each one needs, and what leaves your machine.