Repository navigation
LEKS 3.0
LEKS 3.0 rebuilds the search. It finds passages in notes, PDFs, .docx files and code by words and by meaning, reranks them with a small local model and knows when a newer note replaces an older one. The index and both models run on your machine; the models are downloaded once from Hugging Face.
Results
Measured on my own research knowledge base, a real and private record I have worked in every day since February 2026. The full report with every table is in docs/report-3.0.md.
- How the models were chosen: 30 model stacks in a tournament fixed in advance, then eight finalists on 158 held-out questions. The shipped pair, mDenseOn with mLateOn, puts the right note in the top 5 for 85.4%, against 61.4% for 2.0 and 74.7% for the tournament pick (+10.8 points, Holm p 0.0034).
- Fresh questions: 120 questions written after 3.0 went live, from documents drawn at random: 83.3% in the top 5 against 46.7% for 2.0 (46 questions against 2, Holm p < 0.0001).
- PDFs: 95.0% in the top 5 when the answer sits on a PDF page. 2.0 reads no PDFs.
- German and Polish: asked in German 84.2% (2.0: 32.5%), in Polish 70.0% (2.0: 7.5%).
- The agent at work: three scripted working days of questions and dev tasks, 89 of 100 answers right with LEKS against 75 of 100 without (Holm p 0.0043), 14 of 14 tasks passed against 12 of 14, at 0.85 of the bill. With a small model as the only model, search lifted it from 17 to 23 of 35 right at half its cost per correct answer.
- Scale: 7,294 documents (4.6 GB of text) searched in full and 172,775 files (249 GB) by name. 2.0's own test searched 91 wiki pages.
- Next to tool servers: in ten sessions per tool an agent took a spec from the notes through LEKS and built it in Blender through the Blender Lab MCP server, or in Unity through MCP for Unity. A check script the agent never saw passed all 20 sessions.
What's new
- Search by words and by meaning: a local embedder (mDenseOn) and a local reranker (mLateOn) run in a helper process, on macOS in a sandbox with no network. Newer notes rank above the ones they replace.
- Readers for PDFs (OCR for scanned pages and images on macOS),
.docxfiles and code symbols; every file is also found by name. - One project template for Claude Code and GitHub Copilot: six MCP tools, a short brief and an index update at session start, and a notes check after each turn.
bench/measures the search on a synthetic corpus, andbench/integrations/reruns the Blender and Unity test.
Where it runs
Built and measured on macOS with Apple silicon, where the models run in a sandbox and scanned pages go through OCR. CI runs the full test suite and the benchmark harness on macOS and Linux with Python 3.10 and 3.13. The template serves Claude Code and GitHub Copilot; the measured sessions ran in Claude Code.
Install: docs/install.md.