How Pure Local SQLite + ONNX Hit 89.6% on LongMemEval-S at 1.93ms and $0 Cloud Cost The Raw Memory project, an MIT-licensed open-source local memory layer, reported that a pure local SQLite plus CPU-only ONNX pipeline scored 89.6% (448/500) on LongMemEval-S with a gpt-4o judge while cutting prompt tokens by 92.3% and spending $0 on cloud ingestion LLM costs. The team said its SQLite FTS5 hybrid BM25 plus RRF lexical retrieval reached 96.6% Session Recall@5 at 1.93ms p50 latency with zero stale decision leakage, and that a compact 7-tool stdio MCP server lets coding agents like Claude Code, Cursor and Codex act as their own curator without built-in LLM API keys. 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 https://rawmemory.app 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. 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. | 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 : single-session-assistant : knowledge-update : single-session-user : temporal-reasoning : 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. 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 https://github.com/rawmemory/context-instrumentality-project/blob/main/benchmarks/README.md . Cloud memory pipelines fail in two predictable ways: Raw Memory uses a strict L0 → L4 evidence-gated pipeline : .m4a audio transcripts, lossless PNG clipboard captures, Defuddle-cleaned browser reads, and 11-client AI coding sessions stay untouched on disk. entity edges graph + optional local fastembed bge-small-en-v1.5 & ONNX cross-encoder reranking ms-marco-MiniLM-L-12-v2 / CJK bge-reranker-v2-m3-int8 . evidence ids , expands automatic ±1 Q&A exchange windows, and explicitly marks superseded decisions 0.0% stale leakage . 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.