Plain SQLite FTS5 Beats Mem0 at 1/20th the Cost: 5-Benchmark Audit of Agent Memory
- Get link
- X
- Other Apps
AI · Engineering Data Feature
Reproducible benchmarks across DolphinBench, LongMemEval, BEAM, and Continual Learning Bench show SQLite FTS5 plus SQL over raw logs beating specialized vector and graph stores at 1/15th to 1/30th the cost—while sleep-time wiki consolidation stalls on Opus 5.5 and GPT-6.1 Terra.
By The Benchmarque Staff · · 6 min read · Read original at thebenchmarque.com
All accuracy scores, run costs, reward means, and benchmark configurations come directly from Arjun Kumar's hatchery.build study and the open clavia-labs/agent-memory-benchmarks repository and HuggingFace dataset verified on December 6, 2026.

Agent memory audit in 4 cards
DolphinBench winner
85.7%
Raw SQLite FTS5 logs cost $4.73 across 600 tasks on GPT-5.6 Luna with $0 ingest.
Mem0 cost penalty
20.3×
Mem0 spends $96.21 and scores 70.7% (-15.0 pts); Honcho hits $142.85 at 68.5%.
10M-token scaling
+13.8 pts
Moving GPT-6 Luna to GPT-6.1 Sol lifts BEAM-10M raw-log recall from 53.2% to 67.0%.
Opus 5.5 wiki delta
-0.011
Sleep-time dreaming wikis help Sonnet 5.5 (+0.227) yet slightly hurt Opus 5.5 (0.768 to 0.757).
An entire venture category insists production AI agents need vector fact extractors, temporal knowledge graphs, and nightly reflection loops to remember past sessions. Reproducible benchmarks published by Arjun Kumar (clavia-labs/agent-memory-benchmarks, 349 points on Hacker News by December 6, 2026) show the opposite: plain append-only SQLite event logs queried with FTS5 and read-only SQL hit 85.7% on DolphinBench's 600 tasks for $4.73, while Mem0 spends $96.21 (20.3x the cost) for 70.7% and Honcho spends $142.85 (30.2x) for 68.5%.
The benchmark setup and transparent assumptions
Open-loop memory systems like Mem0, Supermemory, and Mastra compress every turn at ingest time into atomic facts, vectors, or summaries, discarding raw phrasing before future queries are known. The Tardigrade setup (pinned to commit 593ca911 on Bun 1.4.0+ and Python 3.11+) leaves history untouched at $0 ingest cost and gives the agent closed-loop retrieval tools: describe, search, and query for single-session logs, plus sessions_list, sessions_search, sessions_read, and sessions_query across sessions.
All numbers below span five open suites: DolphinBench (600 tasks, ~500K tokens across 3,400 sessions, GPT-5.6 Sol judge; Graphon V1 and Supermemory are self-reported), LongMemEval V1 (S ~115K and M ~1.5M, 500 questions each) and V2 Small (451 questions with screenshots, Qwen3.5-9B reader), BEAM (100K, 500K, 1M with --prompt-v2 tuned on 20 BEAM-100K items; 10M with generic prompts), and Continual Learning Bench (40 stateful SQL episodes with a mid-run schema migration, 5-run mean; 3 runs for Sonnet 5.5 raw logs).
Head-to-head recall and run-cost audit
Comparing total run spend against pass rate on DolphinBench shows how quickly ingest-time extraction destroys unit economics.
| Memory system (GPT-5.6 Luna) | Architecture | Accuracy | Total cost | Cost ratio | Source status |
|---|---|---|---|---|---|
| Raw logs (Tardigrade) | Append-only SQLite + FTS5/SQL | 85.7% | $4.73 | 1.0x | Reproducible repo |
| Graphon V1 | Specialized memory store | 84.0% | $11.84 | 2.5x | Self-reported PR |
| Supermemory | Batched facts + temporal graph | 83.0% | $71.18 | 15.0x | Self-reported |
| Mem0 | Per-turn atomic fact vectors | 70.7% | $96.21 | 20.3x | Published run |
| Hindsight | Specialized memory store | 69.5% | $84.65 | 17.9x | Published run |
| Honcho | Specialized memory store | 68.5% | $142.85 | 30.2x | Published run |
| Built-in | Default harness baseline | 65.7% | $61.48 | 13.0x | Published run |
Against bare 500K in-context learning on DolphinBench, raw-log SQLite search wins at every OpenAI tier while cutting spend 7.5x to 9.6x: GPT-6 Luna hits 87.2% ($2.47) vs. 74.0% ($23.66), GPT-6.1 Terra hits 90.5% ($20.32) vs. 82.8% ($152.22), and GPT-6.1 Sol hits 93.8% ($36.38) vs. 91.7% ($309.15). Raw logs also lead LongMemEval V1 (94.6% S, 92.2% M) and BEAM through 10M tokens, while trailing only raw-transcript grep (AgentRunbook-C, 81.2% vs. 79.8%) on LongMemEval V2.
Why dreaming wikis stop helping frontier models
On Continual Learning Bench's 40 stateful SQL episodes, raw logs alone roughly double stateless performance on frontier models (Opus 5.5 rises from 0.422 to 0.768; GPT-6.1 Terra rises from 0.282 to 0.727). Adding sleep-time wiki consolidation lifts mid-tier models sharply (+0.227 on Sonnet 5.5, +0.134 on Haiku 5.5, +0.118 on GPT-6 Luna), narrows to +0.039 within run noise on GPT-6.1 Sol, and turns slightly negative on GPT-6.1 Terra (-0.004) and Opus 5.5 (-0.011). After a mid-run schema migration left three price columns (prc, prc_usd, prc_v2) in items_g2, Sonnet 5.5 with a dreaming wiki burned four database queries and still guessed wrong because its notes omitted the new column; Opus 5.5 on raw logs queried the post-migration tail directly and solved it in one query.

Three friction points before ripping out memory layers: First, multi-hop SQLite search adds in-turn latency noticeable in consumer voice or chat apps. Second, purely lexical FTS5 search misses abstract phrasing unless paired with structured episode summaries as scent. Third, the author's proposed three-tier L0 Hot Cache / L1 Index / L2 Immutable Event Log architecture remains unbenchmarked end-to-end.
The verdict
Frontier coding and research agents (Opus 5.5, GPT-6.1 Terra/Sol): Ship append-only SQLite event logs with FTS5 and read-only SQL. You bank top-tier recall (85.7% to 94.6%) at $0 ingest cost and 8x to 20x lower API spend without maintaining vector sync pipelines.
Mid-tier and budget deployments (Sonnet 5.5, Haiku 5.5, GPT-6 Luna): Keep a lightweight sleep-time wiki on top of immutable logs—consolidation acts as an effective scaffold (+0.118 to +0.227 reward) when models cannot reliably formulate multi-step SQL searches alone.
Low-latency consumer apps: Cache recurring profile values with raw-log source pointers at L0 so every turn avoids live search hops, while keeping the raw SQLite log as lossless L2 truth.
Quick answers
Why did plain SQLite FTS5 beat Mem0 on DolphinBench?
Mem0 runs an extraction model per turn to compress conversations into standalone vector facts, spending $96.21 across 600 tasks and dropping wording details needed for unpredictable future queries (70.7% accuracy). Raw-log search defers compression until query time at $0 ingest cost, hitting 85.7% for $4.73 on GPT-5.6 Luna.
Does raw-log search beat dumping 500K tokens into the context window?
Yes across all three OpenAI tiers on DolphinBench: GPT-6 Luna scores 87.2% at $2.47 vs. 74.0% at $23.66, GPT-6.1 Terra hits 90.5% at $20.32 vs. 82.8% at $152.22, and GPT-6.1 Sol reaches 93.8% at $36.38 vs. 91.7% at $309.15—beating bare ICL at 7.5x to 9.6x lower cost.
Should engineering teams still build sleep-time dreaming wikis?
Only for smaller or mid-tier models. On Continual Learning Bench's 40 stateful SQL episodes, adding a dreaming wiki lifted Sonnet 5.5 (+0.227), Haiku 5.5 (+0.134), and GPT-6 Luna (+0.118), yet produced zero net gain on GPT-6.1 Terra (-0.004) and Opus 5.5 (-0.011).
Where can engineers inspect or reproduce the benchmark runs?
All agent setups, SQLite FTS5 sessions and wiki libraries, and benchmark runners are open on GitHub at clavia-labs/agent-memory-benchmarks, with full trajectories, grades, and cost logs on HuggingFace.
Compare frontier model token pricing and local agent hardware
Read full interactive edition on thebenchmarque.com
Related tools: AI Model & API Cost Leaderboard · Local LLM Memory Sizing Tool
Sources
- Arjun Kumar (Hatchery): The bitter lesson for agent memory (Dec 2, 2026) hatchery.build
- clavia-labs/agent-memory-benchmarks: Reproducible Tardigrade Runners & SQLite Libraries github.com
- HuggingFace Dataset: clavia-labs/agent-memory-benchmarks (Full Trajectories & Cost Logs) huggingface.co
- Anthropic Research: Components of Agent Memory anthropic.com
- Get link
- X
- Other Apps
Comments
Post a Comment