Everyone in AI engineering eventually hits the same wall: you give an agent a memory layer, it remembers your name and favorite coffee, and you think state is solved.

Then you ask it to settle a 50-item trip expense ledger—or track where you live after five moves across eleven sessions—and everything quietly falls apart.

We ran a head-to-head test using two tasks from StructMemEval (accounting_50tx and state_tracking_5tr) across two frontier models (Claude Opus 5.5 and OpenAI GPT-6.2 Sol), comparing three approaches:

  1. Top-10 Vector RAG (the default architecture behind most chat-memory wrappers)
  2. Flat MEMORY.md (the local Markdown file pattern popularized by coding agents)
  3. SaveSlot (0.1.0 over MCP) — an open-source, append-only, timeline-first database we've been building on embedded PGlite / PostgreSQL

The results were sharper—and more humbling—than we expected.

Test 1: 50 Trip Transactions (accounting_50tx)

The setup: 50 conversational messages between three travelers (Alice, Bob, and Charlie): 43 shared expenses totaling €4,558, 2 refunds, and 5 chitchat messages. In a fresh session with no conversation history, the agent has to compute the exact net settlement.

Ground truth:

  • Bob pays €141.83 to Alice
  • Charlie pays €95.33 to Alice

What actually happened

Approach Model Result Query Latency Verdict
Top-10 Vector RAG Claude Opus 5.5 Charlie pays €32.00 to Bob (only saw €282 of €4,558) 16.6s Catastrophic failure
Top-10 Vector RAG GPT-6.2 Sol Charlie pays €32 to Bob 4.8s Catastrophic failure
MEMORY.md Claude Opus 5.5 Bob -> Alice €77.83, Charlie -> Alice €61.33* 25.0s Exact on 43 expenses; refund sign ambiguity
MEMORY.md GPT-6.2 Sol Bob -> Alice €141.83, Charlie -> Alice €95.33 15.4s Exact match
SaveSlot MCP Claude Opus 5.5 €77.83 / €61.33 and explicitly flagged the alternate refund reading (€141.83 / €95.33) 44.8s Exact + surfaced ambiguity
SaveSlot MCP GPT-6.2 Sol Bob -> Alice €141.83, Charlie -> Alice €95.33 29.8s Exact match

*Note on the refund ambiguity: two messages read "Bob: Refund €27 each for all" and "Charlie: Refund €22 each for all". Depending on whether you read that as paying out vs. receiving a refund, the exact math shifts from €141.83/€95.33 to €77.83/€61.33.

Why Vector RAG collapsed completely

RAG didn't fail because the LLM was dumb. It failed because top-k retrieval is structurally incapable of global aggregation.

When you retrieve the top 10 chunks out of 50 transactions, 40 transactions simply cease to exist. Both Claude Opus 5.5 and GPT-6.2 Sol confidently summed the €282 they could see and told Charlie to pay Bob €32—off by hundreds of euros, with zero warning that 80% of the ledger was missing.

Test 2: 5 City Moves Across 11 Sessions (state_tracking_5tr)

The setup: Over 11 sessions, a user moves sequentially through 6 cities (Amsterdam -> Berlin -> Seoul -> Buenos Aires -> Cape Town -> Vancouver), establishing a Saturday routine and neighbor in each. The agent is asked to plan this Saturday.

Ground truth: Recommend biking the Stanley Park Seawall (current Vancouver routine), without leaking past cities' routines.

What actually happened

  • Top-10 RAG failed on both models. On Claude Opus 5.5, it actually claimed Vancouver had no fixed Saturday routine yet and explicitly brought up an old Amsterdam market (Noordermarkt) as a comparison. On GPT-6.2 Sol, it missed the established biking routine and invented a generic walk on Water Street.
  • Both MEMORY.md and SaveSlot succeeded on both models—correctly isolating Gastown, Vancouver as the current residence and keeping the Stanley Park Seawall bike ride + neighbor Derek intact.

The Honest Part: MEMORY.md Beat Us on Speed at 50 Rows

If we were writing a marketing post, we'd hide this. We're not.

On a 50-row dataset with a frontier model, a flat MEMORY.md file was faster and cheaper than calling an MCP database:

  • On GPT-6.2 Sol, MEMORY.md answered the 50-item ledger in 15.4s (~1,005 prompt tokens) vs. 29.8s across 5 MCP tool calls for SaveSlot.
  • On the 6-city state test, MEMORY.md took 7.8s vs. 20.0s for SaveSlot.

So if your entire use case is one agent reading a 50-line personal note file, just use MEMORY.md. Seriously—don't add infrastructure you don't need.

Where MEMORY.md Breaks (And Why We Built a Transactional State Layer)

Flat Markdown works right up until you cross one of four lines in real usage:

  1. Scale & deterministic math. Frontier models can eyeball 43 lines of arithmetic. They cannot reliably sum 1,200 rows across six months—and cheaper/faster models break much earlier. Offloading aggregation to SQL gives you the same exact answer at 50 rows or 50,000 rows.
  2. Silent overwrites & multi-agent writes. When one agent (or a background script) edits a Markdown file, nothing stops an LLM guess from silently overwriting a confirmed fact. There is no optimistic concurrency, no conflict queue, and no distinction between what a user explicitly confirmed vs. what a model inferred.
  3. Provenance & time-travel. When MEMORY.md says "budget = $2,400", you can't ask which exact user message or tool call changed it, or query what the state was last Tuesday.
  4. Switching models shouldn't wipe your state. Most of us now bounce between Claude Code, Codex, Cursor, Claude Desktop, and custom scripts every week. Vendor-locked memory traps your state inside one app; a flat file inside one repo doesn't travel cleanly across tools.

How SaveSlot Approaches This Differently

We built SaveSlot (Apache-2.0) around a simple separation of duties: agents interpret; the database enforces.

Claude Code ──(MCP)──┐ Codex / Cursor (MCP)─┼──> SaveSlot (Local PGlite or PostgreSQL) Scripts / API (HTTP)─┘ ├─ Append-only log (every write + source evidence) └─ Derived state (typed tables, history, conflicts) 
  • Append-only log as the single source of truth: Every write carries its source evidence (your words, a document, or an API call) and can be replayed deterministically on local embedded PGlite (zero Docker/Postgres setup) or self-hosted PostgreSQL.
  • Explicit conflicts instead of silent overwrites: Stale or contradictory updates open a pending conflict item instead of quietly clobbering truth.
  • No LLM on the core path: The storage kernel is 100% deterministic—no background summarization jobs mutating your facts while you sleep.

Try it locally in 2 commands (no Postgres or Docker required)

(Requires Node 24.22.1+ or 26.12.1+)

npm install -g @fluxvita/saveslot saveslot setup 

saveslot setup auto-registers with Claude Code and Codex, and saveslot connect cursor / saveslot connect claude-desktop prints ready-to-paste MCP configs.

Honest Limitations of 0.1.0

SaveSlot is pre-1.0, and we'd rather state the sharp edges upfront:

  • MCP round-trip overhead: As our own benchmark showed, 4–6 MCP tool calls add latency on tiny datasets compared to reading a single local text file.
  • Node version floor: Currently requires Node >=24.22.1 (or >=26.12.1).
  • Two v1 features aren't wired into 0.1.0 yet: Hard privacy deletion (though row revocation with history works today) and table-rebuilding schema migrations on already-populated tables are planned for later minor releases.

Closing Thought

Vector RAG is still great for finding unstructured information across thousands of documents. It just isn't a database.

If you've been fighting silent overwrites, broken arithmetic, or losing your project state every time you switch models, we'd love brutal feedback on the architecture:

GitHub (Apache-2.0): github.com/fluxvita/saveslot

How are you handling structured, changing state across multiple AI agents right now—plain Markdown, custom SQLite/Postgres tables, or something else?