I got tired of Codex forgetting everything between sessions, so I built a memory. It's free and the numbers are decent
Every new Codex session I was re-explaining the same conventions, watching it re-explore the same repo, re-hitting the same landmine that burned it last week. So I spent the last few months building Kimetsu, a memory sidecar that wires into Codex over MCP with one command:
npm install -g kimetsu-ai kimetsu setup --host codex
After that, Codex records lessons as it works and gets them back before the next task. Memories that actually help get promoted, stale ones decay and get pruned. The whole brain is one SQLite file in your repo.
The part I care most about: storing and retrieving memories costs $0. No LLM in the memory pipeline at all, it's FTS + local embeddings + a local reranker. Most alternatives (mem0, Zep, Cognee) call a model on every write and often every read, so your memory has a meter running. Mine runs offline.
On the public benchmarks it holds up better than I expected for something model-free: 83% on LongMemEval (strong systems land 60-80, the 90+ scores use oracle retrieval or much heavier readers), and on BEAM's 1M-token bucket it scores 66% vs mem0's self-reported 62%. On a 16-task Terminal-Bench slice it was about 13x cheaper per solved task than running without it. Full methodology is on the site, I publish the harness so you can check me.
Recent thing I'm having fun with: brains are portable files now.
kimetsu brain export team.json.gz
Gives you a gzipped pack (credentials and PII get scrubbed automatically), a teammate imports it and it merges with dedup. You can also swap whole brains in and out, or install one from a URL. Onboarding a new machine is one import.
MIT/Apache, Rust, no telemetry, no cloud. Also works with other coding agents.
- Site: https://kimetsu.dev
- GitHub: https://github.com/RodCor/kimetsu