navi
$ navi Community Low Risknavi organizes parameterized shell cheatsheets (.cheat files) and lets users interactively select snippets and fill placeholders via fzf/skim. For headless agents, combining --print, --best-match, and --query returns the top matching command to stdout without launching an interactive picker.
brew install navi Local .cheat snippet lookup via navi --print --best-match runs offline with zero MCP overhead.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
--print --best-match --query provides non-interactive stdout lookup, though bare navi executes commands or hangs on interactive fzf and there is no --json.
- Non-interactive
--print --best-match --queryflags - Default invocation spawns interactive
fzfand executes commands
--print never executes commands, whereas default navi executes selected snippets in the shell and navi repo add clones external repos.
--printsafely outputs command text without execution
Rust binary available via Homebrew, cargo install navi, and Linux/Windows packages; interactive mode expects fzf or skim.
- Cross-platform Rust binary (
--best-matchworks withoutfzf)
Useful for querying team-specific .cheat runbooks locally without polluting LLM prompts.
- Parameterized cheatsheets and multi-repo sharing
Established Apache-2.0 Rust project (denisidoro/navi).
- Widely packaged OSS repository
Well-documented README and docs/ covering .cheat syntax, --print, and shell widgets.
- Clear CLI documentation on GitHub
Security, Auth & Guardrails
None required; stores .cheat repositories locally under ~/.local/share/navi/cheats/.
100% free, offline-capable, and open-source (Apache-2.0).
# navi Agent Rules - ALWAYS pass `--print` (and `--best-match` with `--query`) so `navi` neither executes selected snippets automatically nor opens interactive `fzf`. - Inspect parameterized placeholders (`<branch>`, `<file>`) returned in snippets before running them.
Agent-Ready Command Recipes
Safe Read-Only Queries
navi --print --best-match --query "git rebase"
Prints the best matching snippet to stdout via --print and --best-match without spawning fzf or running the command.
Controlled Writes & Previews
navi repo add denisidoro/cheats
Clones a cheatsheet repo into ~/.local/share/navi/cheats/ for offline lookups.
Strengths for Agents
- +
--print --best-match --queryturns interactive cheatsheets into a safe headless lookup tool. - + Supports team-owned
.cheatfiles alongside community cheatsheets.
Caveats & Pitfalls
- ! Invoking
naviwithout--printand--best-matchspawns an interactive finder and executes the chosen command. - ! No
--jsonoutput; interactive mode requiresfzforskim.