project · open source
qenlo-memory, one memory for every coding agent
i use claude code, codex, cursor, antigravity, gemini cli and copilot, and each one starts every session knowing nothing. qenlo-memory is one local memory they all share. i built it. i'm Akshat Kushwaha, an ai systems engineer in india.
what it is
a cli your agents run from their shell, one brain folder they all link to, and hooks that load your long-term memories at session start. an mcp server covers agents without a shell. every memory records which agent wrote it, so recall can hand claude code a fix that codex found yesterday, labeled by codex.
one daemon owns the store, because qenlo takes an exclusive lock on a collection. everything else is a thin client. embeddings run through ollama on your gpu, so the package has no ml dependencies, and the whole thing is 43 MB of ram with the store open.
how recall works
recall adds three scores: meaning (exact dense search in qenlo), words (bm25 over sqlite fts5, so names, ports and versions survive), and time (a second search restricted to a window when the query says "last week"). the recipe came out of a closed-loop study of about sixty memory papers, measured on LoCoMo and LongMemEval.
when a fact changes, the agent saves the new one with --replaces. the old one leaves search but stays in history. in a test with 20 changing facts and 200 distractors, append-only memory put the stale value on top 60% of the time, and replacement put the new one on top 20 out of 20.
numbers
the readout result is the one i like least and trust most. the prediction that the session readout would beat plain top-10 was refuted, and it's logged that way in the repo.
- LongMemEval-S retrieval: R@3 82.77 and R@10 94.89 with no llm anywhere, ahead of EdgeMem's published table on all four metrics.
- LongMemEval-S answers: 71.6% on all 500 questions with an outside reader and judge. a plain top-10 readout did better on a 195-question subset, so the readout is the open problem.
- vs mem0: recall@5 of 58.1 against 46.6 on the same 1,982 LoCoMo questions, with the same embedding model, at 47 MB of ram instead of 122.
- latency: recall p50 37 ms end to end on a laptop rtx 4050, 51 ms at p95.
why i built it
i wanted to find out where qenlo hurts, and building a real product on it was the fastest way. it found a flush bug that let the write-ahead log grow forever, fixed in alpha.11, and a write path that threw away the search matrix on every add, fixed in beta.1 and 13x faster for add-then-search.
install
it only touches agents whose config directory already exists, backs up every file it edits, and `qenlo-memory install --dry-run` shows what it would change. it's local and single-user, and any process running as you can read your memories. license is apache-2.0.
# mac and linux curl -fsSL https://raw.githubusercontent.com/a3ro-dev/qenlo-memory/main/install.sh | sh # windows (powershell) irm https://raw.githubusercontent.com/a3ro-dev/qenlo-memory/main/install.ps1 | iex
more writing on this: qenlo, the database underneath.