AI coding agents have an expensive habit. Every new session starts from nothing, so the agent re-reads files it read yesterday, re-derives decisions the team already made, and, worst of all, walks straight back into approaches that already failed.
I build OmniMem (https://omnimem.org/?utm_source=devto&utm_campaign=v7), an open source, self-hosted memory server for agents that speak MCP. Its pitch is that other memory systems just remember, while OmniMem also gains experience: it scores how hard problems were and keeps a graveyard of abandoned approaches, so an agent is warned before it repeats one.
Pitches are cheap, so we measured it. Here's what we found, and why I'm deliberately not calling it proven yet.
What we tested
The harness is public: https://code.squarecows.com/ric/omnimem-test-harness. It stands up a fresh, named OmniMem instance, loads a sample dataset and runs benchmark suites drawn from the Agent Memory Atlas.
The headline number comes from one scenario, S9, the dead-end benchmark. An agent is given a coding task where there is a tempting approach that is known not to work. Without memory, the agent has no way to know that. With OmniMem, the failed approach has been recorded in a previous session.
The setup:
- Model: Claude Haiku 4.5- Runs: 10 paired runs, the same task with and without OmniMem 7.0.12- Measured: tokens, cost, wall time, whether the run hit the known dead end, and whether it finished with failing tests## Results
- Median tokens: 833k without, 616k with OmniMem (−26%)- Median cost: $2.16 without, $1.51 with OmniMem (−26%)- Median wall time: −35% with OmniMem- Runs hitting the known dead end: 8 of 10 without, 0 of 10 with OmniMem- Runs ending with failing tests: 7 without, 0 with OmniMemThe dead-end result is the one I care about most. Eight times out of ten, an agent without memory went down a path we already knew was wrong. With OmniMem it didn't happen once. ## Why "promising, not proven" The token saving comes out at p = 0.05 on a sign test. That is right on the line, from ten pairs, in one scenario, on one model. It would be easy to put "26% cheaper" on a banner and leave it there. I'd rather tell you exactly how much weight the number can bear. What would change my mind either way:
- More pairs. Ten is enough to see a signal, not enough to size it confidently.- More scenarios. S9 is designed around a dead end, which is where OmniMem should shine. Tasks without one will show smaller gains.- More models. A larger model might avoid some dead ends on its own, or might spend more tokens exploring.- Your workload. The only benchmark that really matters is your own. That's why the harness is open.The dead-end result is independent of the token test: 0 of 10 against 8 of 10 is a large, consistent effect. ## How the dead-end graveyard works OmniMem exposes 48 MCP tools. Four do most of the work here:
- record_experience runs after any non-trivial problem, solved or abandoned. It stores an effort score from 1 to 5, the outcome (succeeded, pivoted or abandoned), the approaches that were abandoned and why, the breakthrough, and the lesson.- log_abandoned records a dead end the moment it happens, not just at session end.- warn_if_abandoned is called before an agent suggests or agrees to a library, tool or approach. If it was tried and dropped, the agent hears what failed, why, and what worked instead.- briefing runs at session start. In one call it returns project context, relevant experience, stale memories and contradiction warnings.Recall itself is ranked by similarity × surface × recency × experience × date boost, so hard-won lessons outrank trivia. For Claude Code there are also hooks. One injects the project briefing at session start, and another blocks tool calls that match a known dead end before they run. ## What else is in v7 OmniMem 7 is a full Rust rewrite of the 6.x Python + Valkey stack:
- One binary and one SQLite file, with local embeddings. No GPU and no external database.- The MCP server, enrichment worker and RSS scheduler run in one process. A tray and menu bar desktop app replaces the old web UI.- Every memory carries a licence and provenance, so you can tell what a person stated from what the agent concluded.- Contradiction detection on write, semantic deduplication, lifecycle states and topic suppression.- It works with Claude Code, Claude Desktop, Claude.ai, Codex, Cursor, GitHub Copilot, GitLab Duo, Kiro, OpenCode, Mistral, Open Design and anything else that speaks MCP.- Builds: Docker (amd64 and arm64), .deb, .rpm, Flatpak, a signed macOS app and a Windows MSI.## Try it, then try to break it Install takes a couple of minutes: https://omnimem.org/?utm_source=devto&utm_campaign=v7 If you rerun the harness and get different numbers, I want to know. Open an issue and I'll add your results to the next report. And if OmniMem saves you a re-explain or a dead end, a star on GitHub (https://github.com/richarvey/OmniMem) is the cheapest way to help an indie open source project get found. It's MIT licensed, fully open source and not open core.
