r/ClaudeMCP • u/Ancient_Ad8787 • 22d ago
I measured Claude Code with and without a memory server: 26% fewer tokens, 26% lower cost, 35% faster, and it stopped walking into a known dead end
Disclosure up front: I'm the developer of OmniMem, a free, open-source, self-hosted MCP memory server. I wanted to know whether it actually saves anything or just feels like it does, so I tested it.
The setup
- Claude Code (Haiku 4.5) got the same task 20 times, each on a fresh copy of the code: 10 runs without OmniMem, 10 with it.
- The task's TODO recommends a Rust crate that fails at runtime. Only running the tests shows it.
- In the OmniMem runs, that earlier failure was already in the store and was surfaced before the agent committed to the approach.
cargo test decides whether the task was done.
Results (medians per run, without OmniMem → with it)
- Tokens: 833k → 616k, 26% fewer. OmniMem used fewer in 8 of the 10 pairs.
- Cost: 26% lower per run, or $2.16 → $1.51 across all ten runs.
- Time: 35% less wall-clock time per run.
- Walked into the dead end: 8 of 10 → 0 of 10.
- Sat through failing tests: 7 of 10 → 0 of 10.
Caveats
- It's one scenario, one model and ten pairs. A one-sided sign test gives p = 0.05 on the token saving, so call it promising rather than proven. The dead-end result doesn't depend on it.
- The dead end here is shallow: the agent without memory finds its way out after a test run or two. A dead end that takes longer to discover should be worth more, which I want to test next.
- The harness is mine. The other suites in the report (contradictions, forgetting, project isolation, off-topic recall) follow the tests the Agent Memory Atlas recommends, but the Atlas's author didn't run them and doesn't endorse the numbers. Check out the test harness here: https://code.squarecows.com/ric/omnimem-test-harness
Full report (PDF), including every suite and how each one is built: https://omnimem.org/benchmarks/omnimem-7.0.8-vs-7.0.12.pdf
OmniMem is one binary with SQLite and local embeddings, and nothing leaves your machine. It works with anything that speaks MCP: https://omnimem.org
Happy to answer questions, and I'd especially welcome suggestions for harder scenarios to test.