Ferret.Tool
0.4.0
dotnet tool install --global Ferret.Tool --version 0.4.0
dotnet new tool-manifest
dotnet tool install --local Ferret.Tool --version 0.4.0
#tool dotnet:?package=Ferret.Tool&version=0.4.0
nuke :add-package Ferret.Tool --version 0.4.0
Ferret.Tool
ferret: a drop-in rg for plain searches that also ranks files by keyword (BM25), meaning (semantic) or both (hybrid). It gives the most relevant files first, with bounded output, which suits docs, notes and LLM agents.
Install
dotnet tool install --global Ferret.Tool
Use
ferret "pattern" src # like rg
ferret --lex "query terms" # ranked, BM25
ferret --sem "a question" # ranked, by meaning (downloads a small model on first use)
ferret --hybrid "query" # both, fused
ferret --index --hybrid . # build the indexes ahead of searching
Ranked modes also take --limit, --scores, --jsonl and --timings. ferret --model download fetches the semantic model so --sem can run offline.
For .NET code, use the Ferret library.
Docs and source: https://github.com/dburriss/ferret
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
The lexical index is now one file per search root, `lexical/<hash>.idx` in the cache directory, instead of a single `lexical.idx` for every tree. Searching one project no longer loads or rewrites another's entries. Existing indexes are rebuilt on first use; `--clean` (or `FerretClient.Clean`) removes the old `lexical.idx`.