If you bounce between Claude Code, Cursor, Codex, browser tabs, your Mac clipboard, and voice memos on your Apple Watch, you already know the worst failure mode of modern AI agents: every new session starts with total amnesia.
The default industry answer has been cloud memory layers—upload your conversations and desktop activity to a hosted vector database, run an LLM on every write to summarize "facts," and pay monthly fees for embeddings and storage.
When we built Raw Memory (MIT open-source), we took the opposite architectural bet: keep the raw files on your own disk, spend $0 on cloud ingestion LLMs, and see how far pure local SQLite + lightweight CPU-only ONNX can go on academic memory benchmarks.
The results surprised even us.
The Numbers (Official Paper openai/gpt-4o Judge)
All retrieval indexing and search below run 100% locally on CPU against a real SQLite HubStore—no GPU, no cloud vector DB, no cloud embedding API, no LLM extraction at ingestion time.
1. LongMemEval-S End-to-End (ICLR 2025 · All 500 Questions · 246,750 Turns)
| System | LongMemEval-S E2E (gpt-4o Judge) | Prompt Tokens | Cloud Ingestion LLM Cost |
|---|---|---|---|
Full-Context GPT-4o (published) | ~60.6% – 64.0% | ~124,792 | $0 |
| Zep / Graphiti (published) | 71.2% | Reduced | Paid cloud extraction |
| Supermemory v4 (published) | 81.6% | Reduced | Paid cloud extraction |
Raw Memory v0.9 + gemini-flash (local CPU pack) | 89.6% (448/500) | 9,630 (-92.3%) | $0 |
Highlights across official ICLR-2025 pillars:
-
abstention(_abs): 100.0% (30/30) -
single-session-assistant: 96.4% (54/56) -
knowledge-update: 95.8% (69/72) -
single-session-user: 95.3% (61/64) -
temporal-reasoning: 89.8% (114/127)
Even pairing the exact same local context pack with tiny gpt-4o-mini hits 98.4% on single-session-user and 96.4% on single-session-assistant—confirming the local retrieval pack is near-lossless.
2. LoCoMo Curated End-to-End (ACL 2024 · Official gpt-4o Judge)
| System | 4-Category J-Score | All-5 Weighted | Prompt Token Reduction |
|---|---|---|---|
Mem0 (gpt-4o-mini) | 66.9% | — | — |
Mem0g (gpt-4o-mini) | 68.4% | — | — |
Full-Context GPT-4o | 72.9% | — | 0% |
| Zep | 75.1% | — | — |
Raw Memory v0.9 (gpt-4o-mini / gemini-2.5-flash) | 76.0% / 76.9% | 80.6% | -94.7% (1,395 vs 26,537) |
And on pure lexical retrieval (SQLite FTS5 Hybrid BM25 + RRF, zero embeddings), Raw Memory hits 96.6% Session Recall@5 on LongMemEval-S at 1.93 ms p50 latency, with 0.0% stale decision leakage on our RFC-0003 Reflexive Meta suite.
Full reports and JSON logs live in benchmarks/README.md.
Why "Raw Files First" Beats Lossy Cloud Summaries
Cloud memory pipelines fail in two predictable ways:
- Lossy write-time summarization: When an ingestion LLM compresses a debugging session into "User prefers Postgres," it destroys the exact stack trace, timestamp, and surrounding Q&A turn you actually need three weeks later.
- Stale fact collision: Old decisions linger in vector space with high cosine similarity to new queries, poisoning agent responses.
Raw Memory uses a strict L0 → L4 evidence-gated pipeline:
- L0 (Immutable Raw Archive): Original
.m4aaudio transcripts, lossless PNG clipboard captures, Defuddle-cleaned browser reads, and 11-client AI coding sessions stay untouched on disk. - L1 (Fast Local Index): SQLite FTS5 Hybrid BM25+RRF + bipartite
entity_edgesgraph + optional localfastembed(bge-small-en-v1.5) & ONNX cross-encoder reranking (ms-marco-MiniLM-L-12-v2/ CJKbge-reranker-v2-m3-int8). - L2 / L3 (Evidence-Gated Markdown & Bi-Temporal Decisions): Every consolidated memory and decision binds to real
evidence_ids, expands automatic±1Q&A exchange windows, and explicitly marks superseded decisions (0.0%stale leakage).
Preventing Context Rot with a 7-Tool Compact MCP
Exposing 40 MCP tools degrades tool selection and burns prompt cache tokens. Raw Memory's compact stdio MCP server exposes 7 high-signal tools:
recall_memory · remember · expand_evidence · find_related · consolidate_memory · vault_read · vault_request
Paired with a <=200-line SessionStart hot-directory hook, your existing coding agent (Claude Code, Cursor, Codex, Windsurf, Antigravity, or Claude Desktop) acts as its own curator—meaning zero built-in LLM API keys inside Raw Memory.