Agent memoryContext and memory
A startup finds agents remember better by searching their raw history with SQL
In an essay of 2 December, Hatchery's Arjun Kumar reports that an agent given full-text search and read-only SQL over its own immutable event log, with no extraction or consolidation step, beats or matches specialised memory systems on DolphinBench, LongMemEval and BEAM, and that the gain grows with model strength. On DolphinBench it scored 85.7% at $4.73, against 84.0% at $11.84 for Graphon and 70.7% at $96.21 for Mem0.
The essay sorts memory systems by how they encode, consolidate and retrieve experience, and by whether each step follows fixed rules or is run by the agent with feedback. Mem0 extracts atomic facts from every turn and injects the top vector matches into context. Supermemory batches turns into temporal graphs. Codex summarises idle sessions into markdown files linked to their raw transcripts. Letta and Claude let the agent edit memory files with shell tools and consolidate them while idle. The tested system has no encoding or consolidation step at all. Each session stays an immutable log in SQLite, and the agent gets four tools: list sessions, run FTS5 full-text search across them, read a verbatim window of turns, and run read-only SQL over the session index.
With the leaderboard's GPT-5.6 Luna model, the raw log scored 85.7% on DolphinBench at $4.73, ahead of Graphon's self-reported 84.0% at $11.84 and Mem0's 70.7% at $96.21. It also led LongMemEval V1, with 94.6% on S and 92.2% on M, and all four BEAM sizes up to 10M tokens, while on LongMemEval V2 its 79.8% trailed AgentRunbook-C, which also searches raw transcripts, at 81.2%. Holding everything else constant, DolphinBench accuracy rose from 87.2% with GPT-6 Luna to 90.5% with GPT-6.1 Terra and 93.8% with GPT-6.1 Sol, ahead of putting 500K tokens of history straight into context at every tier for roughly a tenth of the cost. The step from Luna to Sol added 6.4 points on BEAM-100K and 13.8 points on BEAM-10M: "Stronger models are better at writing SQL queries and this translates directly into recall scores."
A dreaming arm, modelled on Anthropic's, had an agent write a wiki from the log and task feedback after every task. On Continual Learning Bench's database_exploration suite, 40 stateful SQL episodes with a schema migration midway, raw logs alone lifted mean reward from 0.422 to 0.768 on Claude Opus 5.5 and from 0.282 to 0.727 on GPT-6.1 Terra. The wiki added 0.227 on Claude Sonnet 5.5 and 0.134 on Claude Haiku 5.5, but -0.004 on GPT-6.1 Terra and -0.011 on Opus 5.5. In one task the table had three price columns after the migration. Sonnet 5.5, with logs and wiki, used four queries and guessed, because its notes had not saved the right column. Opus 5.5 with raw logs searched the log for "electronics price", found the new column, read the events after the migration and answered with one database query.
The essay's proposal is "a hierarchy of derived views over an immutable event log", like a computer's caches over disk: a hot cache of materialised views that costs no search, an index of pointers with strong cues that costs one hop, and the lossless log underneath. A cached fact, such as where the user lives, keeps references to the events it came from and is invalidated when a new event contradicts it. Searching the log on every turn costs latency in user-facing apps, which is what the cache is for. The essay leaves an implementation to a later one. Hatchery sells memory benchmarking, the prompts for BEAM were tuned on 20 of its questions, and the dreaming result rests on one suite of 40 episodes.
