Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

zoxide

$ zoxide Community Low Risk
Ajeet D'Souza · Files & Search · MIT · macos / linux / windows

zoxide tracks frequently and recently visited directories in a local database and resolves short queries to full paths via zoxide query. Headless zoxide query and zoxide query -l -s emit clean plain-text paths and scores without prompts, while -i (interactive fzf) must be avoided.

FCRS-1.0 Score
85 /100
Good
Medium Confidence
Zero-Friction Install
brew install zoxide
CLI vs MCP Decision CLI Only

Resolving a user's workspace path via zoxide query takes <2 ms locally with zero MCP need.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 19 / 25

zoxide query is non-interactive, fast, and clean on stdout, though it has no --json flag and -i spawns interactive fzf.

  • zoxide query -l -s outputs deterministic path and score lines
  • No --json output mode
Trust & Safety 24 / 25

zoxide query is strictly read-only; add/remove only touch zoxide's own db.zo index.

  • Read-only query subcommand; add/remove scoped to local index DB
Setup & Portability 14 / 15

Single Rust binary installed via brew install zoxide, cargo install, and GitHub releases across macOS, Linux, and Windows.

  • Cross-platform binary and shell integration for bash/zsh/fish/pwsh
Utility & Efficiency 13 / 15

Instant fuzzy lookup of user workspaces and repos using a single zoxide query command.

  • Resolves fuzzy project names to absolute paths in milliseconds
Maintenance & Lineage 8 / 10

Widely adopted, actively maintained MIT-licensed Rust project (ajeetdsouza/zoxide).

  • Popular GitHub repository with active maintenance
Docs & Verifiability 7 / 10

Clear README, man pages, and --help covering query, add, remove, and init.

  • Documented subcommands and man pages in upstream repo

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; stores directory frecency database in ~/.local/share/zoxide/db.zo.

Side Effects
Read-Only Local Write
Cost & Quotas

100% free, offline, and open-source (MIT).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# zoxide Agent Rules
- NEVER pass `-i` (`--interactive`) to `zoxide query`—it spawns `fzf` and blocks non-TTY shells.
- Prefer `zoxide query -l -s <term>` to verify ambiguous matches before `cd`ing.

Agent-Ready Command Recipes

Safe Read-Only Queries

Resolve top matching directory path
zoxide query followcli

Returns the highest-ranked matching directory path on stdout without modifying the database.

List ranked directories with frecency scores
zoxide query -l -s

Prints all matching paths alongside numeric frecency scores (-s) for unambiguous selection.

Controlled Writes & Previews

Register a project directory in the frecency index
zoxide add /path/to/project

Updates zoxide's local index with a known project path without touching project files.

Strengths for Agents

  • + zoxide query and zoxide query -l -s resolve fuzzy project directories cleanly without interactive prompts.
  • + Zero-risk read-only queries with millisecond Rust startup.

Caveats & Pitfalls

  • ! Passing -i launches fzf and hangs non-TTY agent shells.
  • ! No --json output; query -l -s emits whitespace-separated scores and paths.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI