Analysis AI

6 min read · Dec 6, 2026

Plain SQLite FTS5 Beats Mem0 at 1/20th the Cost: 5-Benchmark Audit of Agent Memory

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.

6 min read Checked Dec 5, 2026 4 primary sources

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.

Accuracy versus total run cost quadrant chart on DolphinBench 600 tasks showing Tardigrade raw SQLite FTS5 logs at 85.7 percent for 4.73 dollars outperforming Graphon V1, Supermemory, Mem0, and Honcho
Graphic: The Benchmarque (clavia-labs/agent-memory-benchmarks and hatchery.build data, Dec 6, 2026) PRIMARY VISUAL

The short version

VERDICT // SUMMARY

Stop paying for ingestion-time fact extractors and vector memory SaaS on frontier agent workloads. Across 600 DolphinBench tasks with GPT-5.6 Luna, plain SQLite FTS5 plus read-only SQL over append-only event logs scores 85.7% for $4.73—beating Mem0 (70.7% at $96.21, 20.3x cost), Supermemory (83.0% at $71.18, 15.0x cost), and Honcho (68.5% at $142.85, 30.2x cost). Keep sleep-time wikis only when deploying smaller models like Sonnet 5.5 (+0.227 reward) or Haiku 5.5 (+0.134), or add a thin materialized hot cache strictly for low-latency consumer turns.

KEY NUMBERS // VERIFIED READOUT 4 METRICS AUDITED
  • DolphinBench winner

    85.7%

    Raw SQLite FTS5 logs cost $4.73 across 600 tasks on GPT-5.6 Luna with $0 ingest.

    hatchery.build

  • Mem0 cost penalty

    20.3×

    Mem0 spends $96.21 and scores 70.7% (-15.0 pts); Honcho hits $142.85 at 68.5%.

    DolphinBench

  • 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%.

    BEAM-10M

  • 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).

    CL-Bench 40 ep.

An entire venture category insists production AI agents need vector fact extractors, temporal knowledge graphs, and nightly reflection loops to remember past sessions. On December 2, 2026, researcher Arjun Kumar published reproducible evaluations across five memory benchmarks (clavia-labs/agent-memory-benchmarks, drawing 349 points on Hacker News by December 6) testing the opposite premise: zero ingestion pipeline, zero embeddings, and zero consolidation. Just append-only SQLite event logs paired with FTS5 full-text search and read-only SQL queries.

The cost gap is brutal. On DolphinBench’s 600-task suite running GPT-5.6 Luna, raw-log search hits 85.7% accuracy for $4.73 total. Mem0 spends $96.21—20.3 times as much—and lands 15.0 percentage points lower at 70.7%. Honcho burns $142.85 (30.2× the cost) for 68.5%.

Short answer: Deferring compression to query time wins on both accuracy and spend. Plain SQLite FTS5 plus SQL beats Mem0, Supermemory, Hindsight, Honcho, and 500K-token bare in-context learning (at roughly 8× to 10× lower cost), while sleep-time wiki consolidation yields zero gain on Opus 5.5 (-0.011) and GPT-6.1 Terra (-0.004). Add a dreaming wiki only for cheaper mid-tier models like Sonnet 5.5 (+0.227) or Haiku 5.5 (+0.134).

The benchmark setup and transparent assumptions

Most memory startups run open-loop ingestion: an extraction model reads each turn, guesses which facts will matter months later, and writes atomic snippets or graph edges into a vector store. Once raw wording is discarded at ingest time, an unpredicted future question cannot recover it.

The tardigrade setup (pinned to commit 593ca911 on Bun 1.4.0+ and Python 3.11+) flips memory into closed-loop retrieval. Every turn is appended verbatim at $0 ingest cost. Single-session suites expose three tools (describe, search, query); multi-session suites expose four (sessions_list, sessions_search, sessions_read, sessions_query). Five public benchmarks anchor the numbers below:

  • DolphinBench (600 tasks, ~500K tokens across 3,400 sessions): Evaluated at high reasoning effort with the GPT-5.6 Sol judge; Graphon V1 and Supermemory figures are self-reported by their vendors, while Built-in, Hindsight, Mem0, and Honcho come from published DolphinBench leaderboard runs.
  • LongMemEval V1 (S at ~115K tokens, M at ~1.5M tokens; 500 questions each) and V2 Small (451 questions with screenshots): Run via unmodified upstream harnesses (V2 pinned to 2cc8c540 with the Qwen3.5-9B reader).
  • BEAM (100K, 500K, 1M, and 10M tokens): BEAM-100K, 500K, and 1M use --prompt-v2 tuned on 20 BEAM-100K items to align with grading rubrics; BEAM-10M, DolphinBench, LongMemEval V1/V2, and Continual Learning Bench use generic prompts.
  • Continual Learning Bench (database_exploration, pinned to 5f8c50eb): 40 stateful SQL episodes containing a mid-run schema migration, evaluated at medium effort across six OpenAI and Anthropic models (means over 5 runs per arm; 3 runs for Sonnet 5.5 raw logs).

Head-to-head recall and run-cost audit

Comparing total benchmark run cost against pass rate on DolphinBench exposes how expensive lossy extraction becomes before a single user question even arrives.

Memory system (DolphinBench, GPT-5.6 Luna) Architecture Accuracy (600 tasks) Total run cost Cost vs. raw logs Source status
Raw logs (Tardigrade) Append-only SQLite + FTS5/SQL 85.7% $4.73 1.0× Reproducible repo
Graphon V1 Specialized memory store 84.0% $11.84 2.5× Self-reported PR
Supermemory Batched facts + temporal graph 83.0% $71.18 15.0× Self-reported
Mem0 Per-turn atomic fact vectors 70.7% $96.21 20.3× Published run
Hindsight Specialized memory store 69.5% $84.65 17.9× Published run
Honcho Specialized memory store 68.5% $142.85 30.2× Published run
Built-in Default harness baseline 65.7% $61.48 13.0× Published run

Bare in-context learning (stuffing ~500K tokens straight into the prompt) fares no better on unit economics. Holding the prompt harness fixed across OpenAI’s newer models on DolphinBench, raw-log SQLite search beats bare 500K ICL at every intelligence tier while cutting spend by 7.5× to 9.6×:

Frontier model (DolphinBench, 600 tasks) Raw logs accuracy Raw logs cost Bare 500K ICL accuracy Bare 500K ICL cost Raw-log advantage
GPT-6 Luna 87.2% $2.47 74.0% $23.66 +13.2 pts · 9.6× cheaper
GPT-6.1 Terra 90.5% $20.32 82.8% $152.22 +7.7 pts · 7.5× cheaper
GPT-6.1 Sol 93.8% $36.38 91.7% $309.15 +2.1 pts · 8.5× cheaper

Across the other recall suites, the exact same scaling rule holds. Raw logs lead LongMemEval V1 at 94.6% (S) and 92.2% (M) and lead every BEAM context tier up to 10M tokens. On LongMemEval V2, Tardigrade hits 79.8%, trailing only AgentRunbook-C (81.2%) — another raw-transcript search system using grep over files rather than pre-compressed vector facts. Crucially, the gap between GPT-6 Luna and GPT-6.1 Sol widens as history expands: +6.4 points on BEAM-100K, +4.9 points on BEAM-500K, +9.9 points on BEAM-1M, and +13.8 points on BEAM-10M (53.2% to 67.0%), mirroring the jump from +8.8 points on LongMemEval V1-S to +10.8 points on V1-M. Smarter models write sharper SQL queries.

Why dreaming wikis stop helping frontier models

Anthropic and Letta popularized sleep-time consolidation (“dreaming”), where an idle agent summarizes past trajectories into linked markdown wikis between sessions. Continual Learning Bench’s 40-episode SQL migration suite tests whether that extra compute pays off once models get strong.

CL-Bench (40 SQL episodes): Raw logs vs. Raw logs + dreaming wikiDark bar = Raw SQLite logs · Green/Red bar = Adding sleep-time wiki consolidationOpus 5.50.7680.757 (-0.011)GPT-6.1 Terra0.7270.723 (-0.004)GPT-6.1 Sol0.6760.715 (+0.039)Sonnet 5.50.4070.634 (+0.227)GPT-6 Luna0.4420.560 (+0.118)Haiku 5.50.2930.427 (+0.134)
Source: hatchery.build / clavia-labs/agent-memory-benchmarks CL-Bench database_exploration (40 SQL episodes, medium effort, 5-run mean; 3 runs for Sonnet 5.5 raw logs). Stateless baselines: Opus 5.5 0.422, GPT-6.1 Terra 0.282, GPT-6.1 Sol 0.368, Sonnet 5.5 0.350, GPT-6 Luna 0.197, Haiku 5.5 0.216.

The trace from one inventory task shows the exact mechanism. After a mid-run database migration, table items_g2 contains three price columns: prc, prc_usd, and prc_v2. Sonnet 5.5—even armed with both logs and a dreaming wiki—spends four database queries and still returns the wrong answer because its consolidated wiki omitted which column became authoritative after migration. Opus 5.5 on raw logs alone searches "electronics price", spots items_g2 and prc_v2 around event positions 67–68, pulls the post-migration tail with WHERE position >= 76 OR record LIKE '%prc_v2%', and nails the exact mean absolute deviation in one database query.

Isometric cutaway drafting diagram illustrating a three-tier agent memory hierarchy: an expansive immutable ledger vault at base level, an emerald and copper optical index rail scanning plates in the middle tier, and a frosted glass hot cache prism above
Editorial diagram: Kumar's proposed three-tier L0 Hot Cache, L1 High-Scent Index, and L2 Immutable Event Log hierarchy modeled on CPU caches, RAM, and disk. Illustration: The Benchmarque.

Three real-world friction points nobody mentions

  1. In-turn latency on user-facing chat: Closed-loop SQLite search replaces zero-hop prompt injection with multi-hop tool calls. That latency is invisible inside background coding or research agents, yet noticeable in consumer voice or chat apps where every extra model turn adds seconds to time-to-first-token.
  2. Vocabulary mismatch in lexical FTS5 search: SQLite FTS5 excels when exact identifiers (prc_v2, Blue Bottle, CRM entity names) appear in the log. If a user asks an abstract conceptual question using completely different phrasing than the original transcript, weaker models give up searching too early unless given structured episode summaries as information scent.
  3. Unproven three-tier cache implementation: Kumar closes by proposing an L0 (Hot Cache) / L1 (High-Scent Index) / L2 (Immutable Event Log) hierarchy modeled on CPU caches, RAM, and disk—explicitly noting that this three-tier implementation has not yet been benchmarked end-to-end.
When specialized memory stores or dreaming wikis actually win: Do not rip out pre-computed memory if your production stack runs strictly on low-cost small models (Sonnet 5.5 jumps +0.227 and Haiku 5.5 gains +0.134 with a dreaming wiki), or if your product faces strict sub-second consumer latency budgets where recurring profile fields (user timezone, workspace preferences) must sit in a zero-hop materialized cache rather than triggering live log searches on every turn.

The 10-second decision rule

  • Ship plain SQLite FTS5 + read-only SQL over raw logs if: You run frontier models (Opus 5.5, GPT-6.1 Terra/Sol) on asynchronous coding, enterprise research, or long-horizon agent workflows—you get top-tier recall (85.7% to 94.6%) at $0 ingest cost and 8× to 20× lower API spend.
  • Layer a lightweight dreaming wiki on top of raw logs if: Cost caps force you onto Sonnet 5.5, Haiku 5.5, or GPT-6 Luna, where consolidated notes add +0.118 to +0.227 reward on stateful multi-session tasks.
  • Build a hybrid L0/L1/L2 stack for latency-sensitive apps: Keep immutable SQLite event logs as the lossless L2 truth, cache high-frequency profile keys with source-event references at L0, and compare frontier vs. mid-tier API token pricing on The Benchmarque Model Benchmarks or size a local unified-memory agent host with Can It Run.
How this analysis was verified: Audited every benchmark figure, inline SVG chart coordinate, model tier, and SQL trace directly from Arjun Kumar's primary report on hatchery.build (December 2, 2026) and cross-checked repository harness pins (tardigrade 593ca911, LongMemEval-V2 2cc8c540, continual-learning-bench 5f8c50eb), prompt tuning disclosures (BEAM-100K/500K/1M 20-question --prompt-v2), and self-reported vendor flags (Graphon V1, Supermemory) in clavia-labs/agent-memory-benchmarks on December 6, 2026.

Quick answers

Why did plain SQLite FTS5 beat Mem0 on DolphinBench?

Mem0 uses an extraction model on every turn to compress conversations into standalone atomic facts stored in a vector index, spending $96.21 across 600 tasks and losing 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 the same GPT-5.6 Luna model.

Does raw-log search still beat dumping 500K tokens into the context window?

Yes, across all three tested OpenAI model tiers on DolphinBench. Raw logs beat bare 500K in-context learning on GPT-6 Luna (87.2% at $2.47 vs. 74.0% at $23.66), GPT-6.1 Terra (90.5% at $20.32 vs. 82.8% at $152.22), and GPT-6.1 Sol (93.8% at $36.38 vs. 91.7% at $309.15)—delivering higher recall at 7.5× to 9.6× 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 by +0.227, Haiku 5.5 by +0.134, and GPT-6 Luna by +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 live on GitHub at clavia-labs/agent-memory-benchmarks, with full trajectories, predictions, grades, and cost logs hosted on HuggingFace under the same dataset slug.

LIVE DESK // BENCHMARQUE TOOLS

Track live street prices in the Hardware Market, check Hot Deals, or compare configurations in the PC and Local AI Builder and Benchmarks Leaderboard.

Sources & Primary Filings

4 cited
  1. Arjun Kumar (Hatchery): The bitter lesson for agent memory (Dec 2, 2026) hatchery.build
  2. clavia-labs/agent-memory-benchmarks: Reproducible Tardigrade Runners & SQLite Libraries github.com
  3. HuggingFace Dataset: clavia-labs/agent-memory-benchmarks (Full Trajectories & Cost Logs) huggingface.co
  4. Anthropic Research: Components of Agent Memory anthropic.com

The Monday Hardware & AI Briefing

Verified street-price drops, buy-or-wait signals, and reproducible benchmark tables every Monday morning. Zero popups, one-click unsubscribe.

Reader focus

Sponsor a benchmark series or hardware briefing on The Benchmarque. View media kit and sponsorship options.