A local BM25 index for your codebase โ ranked results, instant queries, zero network calls.
grep finds strings. idx finds relevant code.
BM25 scoring with a filename-match bonus. Files whose names match your query always surface first.
Pre-built inverted index โ no disk scanning at query time. Results arrive before grep opens its first file.
Everything runs locally. No telemetry, no cloud indexing, no data leaving your machine.
Narrow by extension (--ext go) or path (--path internal/core). AND / OR with relaxation fallback.
File saved? Index updated. The background daemon tracks every change โ no manual syncs during development.
Files you open frequently get a ranking boost in future searches โ the index learns your workflow.
Requires Go 1.26+ and a Git repository.
Clone the repo and build the binary. Add it to your $PATH.
Run once per project. Builds the BM25 index for every directory.
Start once. The daemon keeps the index current with every file save.
AND / OR logic, path and extension filters, results ranked by relevance.
One command installs the idx skill in your editor. grep and rg calls are intercepted โ your AI gets ranked, compact results instead of raw line dumps.
Install once per editor
idx skills install claude
idx skills install cursor
idx skills install copilot