Arjun Kumar at Hatchery says agent memory needs far less engineering than the industry has built. In an essay posted on 2 December, he reports that an agent running SQL and full-text search over its own raw event log matches or beats specialised memory systems on the major memory benchmarks, and gets better as the model gets stronger. I ran a small version of the idea on five models. A raw log with search tools answered 48 of 50 questions on a 170,000-token history, against 24 of 50 for a memory store that picks facts at ingest.
US$4.73
Raw-log agent on DolphinBench, 85.7%, per Hatchery
US$96.21
Mem0 on the same benchmark, 70.7%
+13.8
Points gained by the strongest model on BEAM at 10M tokens
48 of 50
Right answers from a raw log in my 400-session test
- What Hatchery claims
- How the essay sorts memory systems
- The benchmark numbers
- Dreaming
- Who else found this
- I ran it on five models
- The design Hatchery proposes
- What to do with it
What Hatchery claims
Hatchery sells a workspace for building and scoring RL environments, and the essay is hosted on its blog. It borrows Rich Sutton’s bitter lesson, the argument that general methods built on search and learning beat systems built on human domain knowledge. Applied to memory, the argument is that extraction models, vector stores and wiki notes all guess in advance which facts a future question will need. A raw event log guesses nothing, and the agent searches it when the question arrives.
The essay’s own phrase for this is deferring compression until query time. It borrows two ideas to explain why that works. In control theory, an open-loop system acts without checking its output and a closed-loop system corrects itself from feedback. Hatchery says most memory systems are open-loop at the point of retrieval: Mem0, for example, runs a vector search with the current query and injects the top matches whether or not they answer it. An agent running its own SQL queries is closed-loop, because it can look at what came back and search again.

How the essay sorts memory systems
The essay splits every memory system into three jobs: encoding experience into a store, consolidating it while idle, and retrieving it for a task. Each job is then labelled open-loop or closed-loop. Anthropic’s own definition of agent memory, from its 6 November engineering post, is knowledge an agent gains from experience and keeps between sessions. Hatchery adds an information-theory framing, in which memory is whatever reduces uncertainty about the future.
| System | Store | Encoding | Consolidation | Retrieval |
|---|---|---|---|---|
| Compaction | Summary checkpoint | Open-loop | None | Open-loop, summary prepended |
| Mastra | Dated summary | Open-loop | Open-loop | Open-loop, summary prepended |
| Mem0 | Atomic fact vectors | Open-loop, per turn | None | Open-loop, top-k search |
| Supermemory | Facts and temporal graph | Open-loop, batched | Open-loop, background | Open-loop, profile plus hybrid search |
| Codex | Summaries plus raw transcripts | Open-loop, idle summaries | Open-loop, root index | Hybrid |
| Letta and Claude | Git files or linked wiki | Closed-loop, file tools | Open-loop, sleep or dreaming | Closed-loop, pinned files plus search |
| Raw logs | Immutable event log | None | None | Closed-loop, FTS5 and SQL |
The raw-log row is the one Hatchery tested. It has no encoding or consolidation step at all, only two tools over a SQLite database: SQLite’s FTS5 full-text search, and read-only SQL. The agent can run both as many times as it likes.
The benchmark numbers
Hatchery ran five benchmarks that cover different kinds of history. DolphinBench has 600 tasks over about 500,000 tokens of conversations, and I covered it in the piece on Devin Memory. LongMemEval V1 comes in S (about 115,000 tokens) and M (about 1.5 million) sizes with 500 questions each. LongMemEval V2 is 451 questions over web and enterprise trajectories. BEAM runs from 100,000 to 10 million tokens. Continual Learning Bench is 40 stateful SQL episodes that test whether knowledge carries across sessions. The agent models were OpenAI’s GPT-6.1 Sol, GPT-6.1 Terra and GPT-6 Luna, plus Opus 5.5, Sonnet 5.5 and Haiku 5.5 on Continual Learning Bench.
| Result | Raw-log agent | Comparison |
|---|---|---|
| DolphinBench, Luna | 85.7% at US$4.73 | Graphon 84.0% at US$11.84 (self-reported); Mem0 70.7% at US$96.21 |
| DolphinBench by model | 87.2%, 90.5%, 93.8% (Luna, Terra, Sol) at US$2.47, US$20.32, US$36.38 | Beats 500K in-context at every tier, at roughly a tenth of the cost |
| LongMemEval V1 | 94.6% on S, 92.2% on M | Leads, per Hatchery |
| LongMemEval V2 | 79.8% | AgentRunbook-C 81.2%, which searches raw transcripts with grep |
| BEAM, Luna to Sol | +6.4 at 100K, +9.9 at 1M, +13.8 at 10M (53.2% to 67.0%) | Gain grows with history size |
Two details matter when reading the headline. On LongMemEval V2 the system trails AgentRunbook-C, so the post’s “SOTA on all major memory benchmarks” is stronger than the essay’s own “beats or matches”. Hatchery also tuned its prompts for the three smaller BEAM sizes on 20 questions from BEAM-100K, which it says is consistent with how other systems run that benchmark. The DolphinBench, V1 and 10M BEAM runs use generic prompts.
The stronger-model result is the one the essay leans on. Stronger models write better SQL, and the gap between Luna and Sol widens as the history grows. The code is on GitHub as clavia-labs/agent-memory-benchmarks. I cloned it, ran its setup and its offline smoke test, and all three mock end-to-end runs passed. The smoke test uses mock model calls, so it checks the plumbing and not the scores, and I didn’t download the benchmark datasets.
Dreaming
The second claim is about dreaming, the idle-time pass in which an agent rereads its logs and writes notes or a wiki. Anthropic describes it in its 6 November post on the components of agent memory, and I covered Lance Martin’s talk on it in an earlier piece. Hatchery built its own version of dreaming, modelled on Anthropic’s, and ran it on Continual Learning Bench’s database exploration suite. That suite has 40 SQL episodes with a schema migration partway through.
Raw logs alone roughly doubled the stateless baseline, lifting mean reward from 0.422 to 0.768 on Opus 5.5 and from 0.282 to 0.727 on GPT-6.1 Terra. Adding the wiki helped weaker models by +0.227 on Sonnet 5.5, +0.134 on Haiku 5.5 and +0.118 on Luna. It added +0.039 on Sol, which Hatchery puts within run-to-run spread, and nothing on the strongest models, with -0.004 on Terra and -0.011 on Opus 5.5. Hatchery’s reading is that a wiki is a scaffold for weaker models.
The essay’s worked example is a store-inventory task where a table has three price columns after the migration: prc, prc_usd and prc_v2. Sonnet 5.5 with logs and a wiki used four queries and guessed the wrong column, because its notes never recorded which one to use. Opus 5.5 with raw logs searched for “electronics price”, saw prc_v2 near event positions 67 and 68, read the post-migration tail and answered in one query.
That doesn’t contradict Anthropic’s post, which reports that dreaming can correct mistakes and promote notes into every session. Hatchery tested its own wiki implementation, not Anthropic’s, and on a suite built around a schema change. It’s one benchmark, with five runs per cell (three for one), so it’s evidence about that setup and that kind of task.
Who else found this
Hatchery isn’t the first to find that plain search over history holds up. In August 2025 Letta reported that its agent, running GPT-4o mini, scored 74.0% on the LoCoMo benchmark by searching conversation histories stored in files, ahead of the 68.5% Mem0 had published for its best graph variant. Letta’s conclusion was that agent capability matters more than the memory tool. Its write-up also disputes how Mem0 produced its own figures, and says Mem0 hasn’t answered its questions.
A 21 October arXiv paper, MemoryTax: The Bitter Lesson of Agent Memory by Zedong Peng, reaches a similar place with a different design. On one LoCoMo conversation of 419 turns and 152 questions, it compares four memory methods with three coding agents, one run per cell. Mem0 beat full context only with GPT-4o mini, and building Mem0’s store cost more than a whole full-context rollout. With Opus 5.5, the Pi coding agent scored 99% at less than half the cost of full context. The paper says plainly that it’s a short empirical study.
Memory vendors read the same results differently. The DolphinBench test of Devin, Claude Code and Codex found that adding a retrieval plugin lifted every agent, and its own authors sell that plugin. Hatchery’s essay sells nothing in its body, but ends with an invitation to try Hatchery, and Kumar’s X bio points to Tardigrade, the harness whose log and sessions libraries ran the tests.
I ran it on five models
Hatchery’s benchmarks use public datasets I couldn’t rerun, so I built a small test of the same idea. I wrote a synthetic chat history for one made-up user and planted ten facts in it, then asked five models ten questions through three set-ups. I ran it twice: once at 40 sessions (about 17,000 tokens) and once at 400 sessions (about 170,000 tokens). The first run is a smoke test. The second is the one with room for the approaches to diverge.
All the local work ran on one 4-vCPU Intel Xeon 2.1 GHz VM with 15 GB of RAM, a 252 GB disk and Ubuntu 24.04 on Linux 6.18. The models were Kimi K3.1 Pro, DeepSeek V4.1 Flash, Claude Haiku 5.5, GPT-6.1 Terra and Gemini 4 Neon. The three set-ups were:
- Raw-log agent. I ran each model in opencode 1.19.6 with a small command,
logq, over a SQLite database of every message. It hasdescribe,searchfor FTS5 andsqlfor read-only queries, which mirrors the essay’s tools. - Whole history in the prompt. The full transcript in one call, no tools.
- Fact store. A pipeline I wrote in the style of Mem0, not Mem0 itself. DeepSeek V4.1 Flash extracts atomic facts from each session at ingest, and at question time BM25 retrieves the top ten facts for the model to answer from.
The ten questions cover plain recall (dog’s name, job start date), updates (city, marathon target and notes app all changed later in the history), two birthdays with look-alike distractors, a flights total that needs three amounts added and one declined fare ignored, a vet found through the dog, and an allergy that matters for a recipe. The history also holds filler about banana bread and tap washers, and distractor lines that repeat as people do: a friend’s dog called Biscuit, a sister-in-law’s birthday, a colleague’s $950 fare. Here is the exact prompt each raw-log agent got.
You are answering a question about a user using their past chat history with an assistant. The history is stored in a SQLite database with full-text search, queried with the shell command /tmp/work/store/bin/logq10. Run `/tmp/work/store/bin/logq10 describe` first. Then use `/tmp/work/store/bin/logq10 search <FTS5 query>` and `/tmp/work/store/bin/logq10 sql <read-only SELECT>` as many times as you need. Do not guess; search the history before answering. Finish with one line that starts with ANSWER: and gives a short answer.
Question: <the question>

In that run the agent searched for “vet” and got fourteen hits for a clinic the user only drove past, searched “dog” and got a friend’s labrador, then grouped the log by message to count repeats and spotted the one line about the beagle’s vet. A fact store can’t recover from that kind of near-miss if it never kept the line.
| Set-up | 40 sessions, about 17K tokens | 400 sessions, about 170K tokens |
|---|---|---|
| Whole history in the prompt | 50 of 50 | 50 of 50 |
| Raw-log agent | 50 of 50 | 48 of 50 |
| Fact store | 25 of 50 | 24 of 50 |

The fact store lost on information it never kept or never surfaced. At 40 sessions all five models missed the dog’s name, because the extraction dropped the line about Pickle, and all five answered “Wellington” for the current city, because the top ten facts included the old address and not the move. Every model got the flights total wrong too: $1,101 where the answer is $1,331, because the $230 Sydney fare never made the top ten. At 400 sessions the store got worse. All five models answered the dog question with Biscuit, the friend’s dog, because that distractor appears far more often than the one true mention of Pickle.
The raw-log agent made two misses at 400 sessions. One run didn’t finish inside my five-minute cap, and one answered “I don’t know” to the sister’s birthday while offering the sister-in-law’s date. The whole-history set-up didn’t miss once. At 170,000 tokens every model took the full transcript and answered all ten questions correctly. If your history fits in the window, putting it all in is the simplest option that works, and the 40-session run shows why: the raw-log agent used 33,000 to 115,000 tokens per question across its steps, against 19,000 to 27,000 for the full history.
The crossover appears at 400 sessions. Full-history calls averaged 185,000 to 254,000 input tokens each. The raw-log agent averaged 36,000 to 133,000 tokens per question, counting re-read context across its steps, which is between 1.6 and 5.2 times fewer depending on the model. It was slower, though: median time per question ran from 8 to 59 seconds for the agent, against 1 to 13 seconds for the whole-history call. I didn’t measure dollars, and prompt caching changes the sums for both set-ups.
The other two prompts and the test’s limits
Whole-history prompt: “Here is the user’s full chat history with an assistant.”, then the transcript, then “Answer the question about the user from the history. Reply with one short line starting with ANSWER:” and the question. Fact extraction prompt: “Extract the durable facts about the user from this conversation (names, places, dates, amounts, preferences, plans, health, ongoing projects). Return one atomic fact per line, no numbering, each a complete sentence. Ignore generic assistant content.” The fact store answered from “the 10 stored memories most relevant to the question”.
The history is synthetic, built from templates with ten planted facts, so it’s far easier than a real person’s chats and its distractors repeat more often than real ones. My fact store only adds facts. Mem0 and similar systems also merge and delete them, which would help on the city and marathon questions, so the 24 of 50 describes my simple design and not Mem0. Ten questions per model is a smoke test, and the test says nothing on whether scores climb with model strength, because the strongest set-ups were already at the ceiling.
The design Hatchery proposes
Hatchery doesn’t conclude that memory systems vanish. Searching a log on every query costs inference inside the turn, which hurts a user-facing app where latency matters, and my timings above show the same trade. The essay’s answer is a store that exists to make search cheaper, built as three layers over an immutable event log.

The top layer is a hot cache of materialised views for frequently asked things, such as a user’s location, each linked to the events that produced it and invalidated when a new event contradicts it. The middle layer is an index of pointers that carry what the essay calls information scent: search snippets, table names and episode summaries that cut the number of hops and stop an agent giving up early. The bottom layer is the log itself. The essay compares this to a CPU’s cache, RAM and disk, and to the way hybrid models such as Kimi K3 pair linear attention for speed with full attention for exact recall. It says outright that it doesn’t implement or test the design, and promises that for a later essay.
What to do with it
If you build agent memory, the tested advice is cheap to follow: keep an append-only log of every event, give the agent FTS5 and read-only SQL over it, and check whether a fact store is losing answers before you add one. My test showed that loss at both history sizes. If the whole history fits in the context window, use that and skip the tooling. Add a cache or an index only once search latency, and not accuracy, is what you’re paying for.
For anything you rely on, read Hatchery’s numbers as an unreproduced vendor claim until someone reruns them. The repository is public and carries the run commands, so that’s possible now. The test I ran uses the same shape but not the same data, and it agrees on direction.
Sources
- Arjun Kumar on X, 2 December: the post announcing the essay
- Hatchery: The bitter lesson for agent memory
- Agent memory benchmarks repository
- Anthropic: The components of agent memory
- Letta: Benchmarking AI Agent Memory, is a filesystem all you need?
- MemoryTax: The Bitter Lesson of Agent Memory (arXiv)
- Earlier: Devin Memory leads past.dev’s DolphinBench test
- Earlier: Agent memory works best when it forgets the right things
Disclosure: I’m an OpenAI, Firecrawl and Devin ambassador.




