> First, answer me this—if an AI writes code for you but treats every meeting like the first time you've met, is that what you actually want?
I spent a few days digging into a project called agentmemory. The founder, Rohit, says it gives AI coding assistants long-term memory. 3,400 stars on GitHub, built in two months. The marketing numbers look great: 95.2% retrieval accuracy, $10 per year in cost.
But after seeing enough so-called "breakthrough technologies," I've learned one thing: pretty numbers don't prove anything. The real test is whether you can explain what this thing does in words a sixth-grader would understand.
So let's start from scratch.
---
1. The Problem: Why Does AI Need Long-Term Memory?
Imagine a coding partner. Highly capable, but every time you find him, he's completely forgotten what you discussed last time. You spent three hours debugging something yesterday—today he asks, "What bug?" You spent half an hour explaining an architecture decision—next time he says, "Oh, why didn't you mention that earlier?"
That's the real state of today's AI coding assistants—Cursor, Copilot, Claude Code. They have no memory. Or rather, their memory is only the context window of the current conversation.
Karpathy (former Tesla AI director, OpenAI founding member) wrote a note in April that sums up the problem in one line:
> Stop re-deriving, start compiling.
His point: today's AI has to "understand" you from zero every time—your code style, project structure, preferences. It's like re-deriving the fundamental theorem of calculus on every exam. Why not keep a notebook? A "Wikipedia" the AI can just open and use.
That's the problem agentmemory wants to solve. Not making AI smarter—making AI remember.
---
2. How Does agentmemory Solve It?
Rohit's approach has several layers. Bottom up:
1. Automatic capture: 12 "hooks"
Rohit says past memory systems required you to manually say "remember this." You'd have to tag things one by one: "Remember I hate TypeScript," "Remember this API's return format."
That's a problem. If something depends on humans constantly doing it, it will eventually be forgotten. People get lazy.
So agentmemory has 12 "automatic capture hooks"—essentially instrumentation. Terminal commands, tool calls, file edits—it records all of it. No "remember this" needed; it just remembers.
It sounds simple, but think about it: you change nothing about your habits. The memory accumulates quietly in the background.
2. Retrieval: three methods at once
Recording is only step one. The key is getting it back.
Think of your own brain. You suddenly recall something sometimes because a keyword triggered it ("there was something called Docker"), sometimes a vague concept ("there was a way to solve a similar problem"), sometimes a concrete association ("Zhang San mentioned this in that meeting").
agentmemory mimics this with three simultaneous retrieval methods:
- BM25 — keyword matching, like a search engine
- Vector search — semantic similarity, finding "same meaning, different words"
- Knowledge graph — entity relationships, e.g., "this file is related to that bug"
- Working memory — the here and now, like the last command you ran
- Episodic memory — past events, like "we fixed that bug last Wednesday"
- Semantic memory — abstract knowledge, like "the project uses React, not Vue"
- Procedural memory — automated habits, like "the user always writes tests first"
- LoCoMo: 91.6%
- LongMemEval: 93.4%
- BEAM (1M): 64.1%
- Paper A: 66.9%
- Paper B: 68.4%
- Mem0's own old algorithm: 71.4%
- Mem0's own new algorithm: 91.6%
- The 12 automatic capture hooks solve the real problem that humans won't remember to tag things manually
- Triple retrieval (BM25 + vector + knowledge graph) is a sound engineering decision
- Four-tier memory consolidation has cognitive-science grounding, not armchair invention
- $10/year makes it affordable for individual developers
- The mem0 81.4% in the comparison table may not be current data
- The "92% token reduction" is measured against a strawman
- The benchmarks' inherent instability makes any precise "95.2%" claim shaky
- Mem0's new algorithm has shrunk the gap to near-negligible
The three result sets are fused via reciprocal rank fusion (RRF), and the best results surfaced.
3. Memory layering: organized like a human brain
This is the most interesting design to me. agentmemory splits memory into four tiers:
The inspiration is the brain's memory consolidation during sleep: messy daytime information gets organized and archived at night. agentmemory does something similar—distilling scattered fragments into more durable knowledge.
4. The foundation: the iii Engine
agentmemory isn't built on the usual Express.js + SQLite combo. It runs on something called the iii engine—new, written by Rohit himself. 51 MCP tools, 873 tests, plus a live viewer (port 3113) that can replay your sessions.
It's a bet. Either the iii engine becomes next-generation infrastructure, or agentmemory gets locked onto a runtime nobody maintains.
---
3. The Water in the Numbers: Is 95.2% Real?
The architecture sounds fine. But let's talk numbers.
The site has a comparison table:
| System | Accuracy | |--------|----------| | agentmemory | 95.2% | | mem0 | 81.4% | | Letta | 73.8% |
Pretty, right? But one has to ask: under what conditions were these measured? Same questions, same judging criteria?
Here's what I know.
Issue 1: What benchmark?
agentmemory claims 95.2% R@5 and 98.6% R@10 on LongMemEval-S (ICLR 2025, 500 questions).
But LongMemEval-S itself has roughly 5% label noise—some "correct answers" may simply be wrong. That means 95% is close to the theoretical ceiling.
Issue 2: Apples to apples?
The table puts agentmemory's 95.2% next to mem0's 81.4%. But—which version, which configuration of mem0 produced that 81.4%?
Mem0 released a new algorithm in April 2026, scoring:
See it? Mem0's new algorithm scores 93.4% on LongMemEval, not 81.4%. The 81.4% may be an old version, an old config, or a different benchmark entirely.
It's like saying "my car is faster than yours" without mentioning whether you raced on a highway or a track.
Issue 3: The "92% token reduction"
agentmemory claims about 170K input tokens per year versus 19.5M+ for "pasting full context"—a 92% reduction.
But: who actually pastes full context every time?
That's a strawman. Nobody pastes everything. Every system does some form of truncation or summarization. agentmemory's real comparison should be against other memory systems' token consumption, not an extreme approach nobody uses.
Issue 4: Wildly different numbers for the same system
This is the most telling fact.
Mem0's reported scores on LoCoMo:
Same system, same benchmark, numbers jump from 66% to 91%. Mem0's own blog admits: "Scores have a ±1 confidence interval because judging criteria are inconsistent."
What does that tell us? The benchmarks themselves are unstable, and any precise claim like "95.2%" measured with such a wobbly ruler deserves a question mark.
Issue 5: The embedding model
agentmemory uses all-MiniLM-L6-v2—a lightweight, locally-run, free model. Good for cost. But it means embedding quality is below systems using GPT-4 or Claude for embeddings.
The direction is right (local, free, good enough), but part of the numbers' advantage comes from "cheap tools achieving comparable results," not "inherently superior architecture."
---
4. Compared to Alternatives, What's Actually Better?
The numbers are inflated. That doesn't mean agentmemory is worthless. Let's lay out the competition.
mem0: 51.8K stars, the incumbent
mem0 is the most mature memory system. But one fundamental difference: it requires you to explicitly call add().
You have to write: mem0.add("user said they don't want popup notifications").
If something requires an extra human step, humans forget. agentmemory's automatic capture is genuinely better on this point.
But mem0's new algorithm has caught up. 93.4% vs 95.2%—the gap is small. And mem0 has a huge community, more resources, a more mature ecosystem.
Letta: the full agent runtime
Letta isn't just memory—it's a complete agent framework. The cost is lock-in: adopt Letta and your entire application architecture revolves around it.
Built-in options (CLAUDE.md)
Claude's CLAUDE.md file holds only ~200 lines, and everything gets stuffed into context. Blunt and simple, but limited in scope.
agentmemory's real advantage
Not the 14-point number gap. Rather:
1. Zero-config automatic capture — no code changes, no API calls; just work normally 2. Karpathy's philosophy — from "re-deriving every time" to "compile once, reuse forever" 3. Brain-inspired architecture — triple retrieval + four-tier memory, with real design thought behind it
---
5. The iii Engine: Bet or Shackles?
agentmemory runs on the iii engine—a brand-new runtime. Not Node.js, not Django. Something Rohit built himself.
This reminds me of what Feynman saw in the Challenger investigation. NASA management said failure probability was 1/100,000. The engineers privately said 1/100. Management believed the numbers they wanted to believe.
The iii engine's question: if Rohit stops maintaining it, or the community doesn't follow, what happens to agentmemory?
That's a real lock-in risk. On the other hand, the Express.js + SQLite + pm2 + Prometheus combo is itself aging. The iii engine might be a future-facing bet, or premature optimization.
I'm not sure. The only certainty: a two-month-old project on a brand-new runtime needs time to prove its reliability.
---
6. Growth Rate
Created in late February, now 3,400 stars. For a two-month-old project, that growth reflects genuine community interest, not manipulation.
But stars aren't quality. Many good projects have no stars; many bad ones have plenty. Stars mean "someone finds it interesting," not "this thing actually works."
---
7. Final Verdict: Hype or Substance?
Feynman would say: I only believe what I can directly verify.
Let me be clear.
agentmemory's architecture has substance.
But the benchmark numbers have water in them.
agentmemory's value is turning Karpathy's philosophy into runnable code:
> Don't re-learn who I am every time. Compile what you know about me, and load it next time.
The direction is right. Whether agentmemory ultimately wins or not, the direction is correct.
---
8. A Question Feynman Would Ask
Let me close the Feynman way.
If you deleted every benchmark number, every comparison table, every "95.2%" from this project—leaving only code and architecture docs—would it still have value?
My answer: yes. Automatic capture + triple retrieval + layered memory—those three things have genuine design depth.
But if only the numbers and marketing copy remained, without the architecture?
That would be cargo cult. Bamboo control towers, coconut-shell headphones. All the forms correct, but the planes never come.
agentmemory is not a cargo cult. It has real design. But those shiny numbers—95.2%, 98.6%, 92% reduction—apply a discount before you read them.
What matters isn't how many points it beats others by. What matters is that it gives AI assistants the ability to "remember" for the first time, without you doing anything extra.
That's the way it is.
---
*Sources: agentmemory.dev, Karpathy gist (Apr 2026), Mem0 blog (Apr 2026), LongMemEval (ICLR 2025), LoCoMo benchmark*