Open-source Raw-RAG memory skill: zero-token offline long-term memory for Claude Code, Codex, Antigravity
MomoAyume · reddit · 2026-12-07
A developer open-sourced raw-rag-agent-memory (MIT), a fully offline, zero-LLM-token long-term memory system packaged as an Agent Skill + local Python MCP server for Antigravity, Claude Code, and Codex.
Motivation: existing memory tools either burn tokens summarizing chats into lossy notes or rely on a single MEMORY.md that hits size caps. Based on Raw-RAG and MemPursuit papers, keeping raw timestamped turns + local reranking + residual diversity selection + chronological ordering beats LLM summarization with zero indexing tokens.
Implementation highlights:
- Incremental sync of transcripts from all three agents into one SQLite DB every 15 minutes (launchd/cron); fully offline once ONNX models are cached.
- Retrieval via SQLite FTS5 + local multilingual embeddings, reranked locally with bge-reranker-v2-m3 (int8), plus a <1ms Gram-Schmidt residual step to prevent single-topic flooding.
- GEMINI.md/CLAUDE.md/AGENTS.md kept as hot memory with an auto-warning past 21KB.
- outline/range/tail modes to resume any old chat; imports Claude web exports with branches, attachments, artifacts.
Distributed as a Skill folder — drop it into your agent's skills directory and ask it to configure everything.
More from coding & agent
- Perplexity builds a top-down 3D arcade shooter in Three.js with live-rendered effects — jeffgrimes9 · 2026-12-07
- copyconstruct: Agent Efficiency Comes From Discipline, Not Prompt Magic — mgill25 · 2026-12-07
- Stop prescribing steps: describe the output you want in excruciating detail, says AI analyst — perilli · 2026-12-07
- banteg Raves About New Terminal Rex for Managing Agent Workflows Across Devices — banteg · 2026-12-07
- Triage pipeline cuts voice-note Q&A cost 9x: 600 whispers, 48,700 vs 5,100 tokens — bfrench · 2026-12-07
- How do you pick cheaper production LLMs after prototyping with frontier models? — red_bull09 · 2026-12-07