90.71 on LoCoMo, and by default no generative AI model reads or rewrites your lessons: the retrieval bug that fooled our own benchmark
Many memory designs send every stored note through a language model. We built cachly differently. By default, no generative AI model reads or rewrites your lessons. A small ranking model in the EU only scores them.
Date: 2026-12-02 · Author: Heinrich Neb (cachly.dev)
TL;DR: Many memory designs send every stored note through a language model to extract facts, summarize or merge. We built cachly differently. By default, no generative AI model reads or rewrites your lessons. A small ranking model in the EU only scores them. Storage is in Germany. An opt-in “Extended protection” per Brain sends new lessons to a model in an EU data centre. It is off by default. cachly ranked first of 18 reproduced entries on the OmniMemEval LoCoMo table (90.71, as of 17 November 2026, MemTensor/OmniMemEval PR #20). Below: how retrieval works, two optimizations that looked good on small fixtures and failed on real data, and why LoCoMo alone does not cover how engineering teams get hurt.
1. Why we keep generative AI models out of the default path
Short answer: A generative AI model between you and your notes adds a data path, drift, cost and a trace that is hard to follow. So the default path has none.
When you ask an AI coding assistant to remember a team decision or a bug fix, a memory backend can call a language model in the background to extract entities, merge facts or rewrite memories. That design raises four questions:
- Data path: Where does each team note go? If it reaches a model vendor's API, who has to approve that?
- Drift: Does a rewrite keep the ticket ID and the edge condition? “Refunds over 500 EUR require Finance approval (FIN-12)” can lose both after a paraphrase.
- Cost and latency: Every write and recall may cost tokens.
- Reproducibility: If a prompt rewrote a record last Tuesday, why a lesson surfaced is hard to trace.
Our answer for the default path: no generative AI model reads, summarizes or rewrites a team's lessons. A small ranking model in the EU only scores them.
The one exception is a switch. A Brain owner can turn on “Extended protection”. Then new lessons go to a language model in an EU data centre, which checks them for smuggled instructions. It is off by default, and the owner decides per Brain.
2. What runs instead (the EU data path)
Short answer: Filters and search in Germany, reranking on our own server in France. No call to a third-party language model.
Developer IDE / CLI (MCP: @cachly-dev/mcp-server, Apache-2.0)
| API key stays local in ~/.cachly/credentials.json
v
EU storage and safety filters (Germany)
|- Secret redaction: API keys, tokens, passwords redacted BEFORE write
|- Injection check: suspected poisoned instructions flagged, not auto-injected
'- Candidate retrieval: BM25+ over a wider top-25 pool + embeddings
v
EU reranking server (France, self-hosted ONNX)
'- Quality-aware reranking (outcome, confidence, proven-ness, human review)In this default path no call goes to a third-party language model. Each team Brain starts empty.
On 16 November 2026 we submitted the cachly adapter to MemTensor/OmniMemEval (PR #20). It scored 90.71 on LoCoMo. That ranks first of 18 reproduced entries on the OmniMemEval LoCoMo table (as of 2026-11-17). The run used the default setup, in which no generative AI model reads or rewrites lessons and a small ranking model only scores them.
3. Two ideas that failed on real data
Short answer: Both looked good on small test data and hurt on real lessons. We removed both.
Benchmark posts usually show only the winning line. If you build retrieval for coding agents, our mistakes may help more than our score.
Idea 1: Score compression (score^0.3). +33% on the bench, -50% on real lessons
Until 19 August 2026 we compressed BM25 scores with score^0.3 before multiplying by lesson quality signals (outcome, confidence, proven-ness, human review).
On our 17-lesson fixture benchmark it looked like our biggest gain: Precision@1 of 92.3% (+33.3% over raw BM25). We published that number on our own benchmark page. Then we ran the same formula on 498 real engineering lessons:
| Score exponent | 17-lesson fixture bench (P@1) | 498 real lessons (P@1) |
|---|---|---|
score^0.3 (old) | was 92.3% | 15.0% |
score^1.0 (current) | 69.2% | 30.0% |
The whole gain on the small bench was the damage on real data. Compression flattened the gap between a lesson that truly matches and a loosely related lesson with high confidence. With 17 lessons there were too few such distractors to show it. With 498, unrelated high-confidence lessons won too many queries.
We removed ^0.3, kept ^1.0, and left the account on cachly.dev/docs/benchmark. Our CI gate (npm run bench:gate) still runs. In the run of 23 August 2026 it showed 78.6% Precision@1 and 92.9% Recall@3 on the externally labeled corpus. We treat it as a watchdog against regressions, not as proof of real-world quality.
Idea 2: Multilingual synonym expansion on the document side (about 28x inflation)
European teams often ask in German while docs and lessons are in English, or the reverse. Our first attempt expanded every common word on the document side into about 28 multilingual synonyms at index time (error to Fehler, and the same word in Japanese, Chinese and Arabic).
BM25 counted each injected synonym as an exact match. Any lesson with a common word was inflated about 28x and buried the specific lessons about the actual bug.
The fix: switch off document-side expansion, keep expansion on the query side only, and widen the first-stage pool to top-25. Then the quality-aware reranker can pull up a relevant lesson that BM25 had placed at 11 to 25 because of vocabulary mismatch.
4. What LoCoMo does not measure for engineering teams
Short answer: LoCoMo asks about chat facts. Engineering teams get hurt on five other axes.
A score of 90.71 on LoCoMo shows that retrieval without a generative AI model in the default path can rank well on that table. LoCoMo measures mostly conversational facts (“Where does Alice live?”, “What did Bob say last week?”). The five axes:
- Prompt injection inside shared memory: A teammate pastes an error log with hidden instructions. Does the memory pass it into the next developer's prompt? Does its filter wrongly block harmless security lessons about SQL injection or auth bypasses?
- Accidental secret storage: A developer saves a lesson containing a token. Is it redacted before it reaches storage?
- Cross-language recall: A developer asks in German about a rule documented in English, or the reverse.
- Abstention: The developer asks something for which no lesson exists. Does the memory stay quiet (0% intrusion), or does it inject a plausible but irrelevant lesson?
- Cost and data path: Latency (p50/p95), backend LLM calls per 1,000 recalls, declared processing countries.
5. engineering-memory-bench (Apache-2.0)
Short answer: An open test harness for those five axes, with negative controls. Local baselines are measured below. The cachly adapter has not been run end-to-end yet.
No single open, reproducible test harness covered these five axes, so we built engineering-memory-bench:
- Synthetic data only: no scraped GitHub issues, no real names, no real credentials. Secret tests use invented dummy strings in real provider formats.
- Negative controls: a deliberately broken bad-control adapter that must fail every safety and quality check, and a --permute mode that shuffles answers and must push Hit@1 / Hit@3 toward chance.
- Local baselines: none, claude-md (one static file) and bm25.
- The cachly adapter has not been run end-to-end yet. It needs network and a real key, and it starts a fresh, isolated test Brain per run. We publish no cachly number from this bench.
- Open invitation: empty adapter templates for Mem0, Zep and Supermemory are in adapters/templates/. We publish no numbers for them. If their maintainers or contributors want to be represented, they can send a PR with their recommended setup.
Small data set: 20 cross-language questions, 10 injection lessons, 5 benign security lessons, 10 abstention questions. One case moves a rate by 5 to 20 points. Small gaps are noise.
Our run, local baselines
| Date | Bench version / commit | Node | Tests |
|---|---|---|---|
| 2026-12-02 | v0.1.0 / 61c6260 | v22.16.0 | node --test: 9 of 9 pass |
node runner.mjs --adapter none,claude-md,bm25
| Adapter | Injection passthrough (lower is better) | Secrets in plaintext (lower is better) | Cross-language Hit@1 | Cross-language Hit@3 | Abstention intrusion (lower is better) | p50 / p95 ms | LLM calls per 1,000 recalls |
|---|---|---|---|---|---|---|---|
| none | 0% | 0% | 0% | 0% | 0% | 0 / 0.01 | 0 |
| claude-md | 100% | 100% | 5% | 15% | 100% | 0.01 / 0.03 | 0 |
| bm25 | 100% | 100% | 60% | 80% | 50% | 0.06 / 0.33 | 0 |
node runner.mjs --adapter none,claude-md,bm25 --permute (control run: bm25 must fall toward chance)
| Adapter | Cross-language Hit@1 | Cross-language Hit@3 | Abstention intrusion |
|---|---|---|---|
| none | 0% | 0% | 0% |
| claude-md | 5% | 15% | 100% |
| bm25 | 0% | 0% | 50% |
How to read this: the baselines are floors, not products. bm25 and claude-md have no secret redaction and no injection filter, so 100% on those two axes is expected. With --permute, bm25 drops from 60% / 80% to 0% / 0%. That is the control working. claude-md does not move under --permute (5% / 15% both times), because it concatenates all lessons and has no ranking to shuffle.
6. Try it or break it
Short answer: Run the bench yourself. Report anything that fails.
- Run the benchmark: github.com/cachly-dev/engineering-memory-bench. Commands:
npm test, thennpm run bench:all(none, claude-md, bm25). The cachly adapter runs separately:node runner.mjs --adapter cachly. - Inspect the MCP client (Apache-2.0):
npx @cachly-dev/mcp-server@latest(github.com/cachly-dev/cachly-mcp) - EU data path and security sheet: cachly.dev/docs/eu-hosted-mcp-memory-server
- Recall regression gate and the ^0.3 account: cachly.dev/docs/benchmark
If you find a failure in our retrieval, our secret redaction or our benchmark controls, please open an issue. A refuted idea with a real number helps more than an unverified leaderboard claim.
cachly.dev
For solo developers, teams and whole companies
Explain it once. Every AI knows it.
Shared team memory between your code, your tickets and your AI. Hosted in the EU, in every tool. cachly keeps the fixes, the decisions and the traps, so the next session starts with them. Claude Code, Cursor, Copilot, Windsurf, Codex, Gemini CLI and JetBrains all read it. Free for one project, no card needed.
Servers in the EU · one command, restart your editor, done · 1 project free
Four ways to install
- Claude Code
/plugin marketplace add cachly-dev/cachly-mcp /plugin install cachly-brain@cachlyThen turn on auto-update once:
/plugin→ Marketplaces → cachly → Enable auto-update- Any MCP editor
npx @cachly-dev/mcp-server@latest autopilot- JetBrains
- JetBrains Marketplace: cachly-brain