broot
$ broot Community Med Riskbroot is a fast Rust directory tree navigator displaying git status (-g), file sizes (-s), and .gitignore-aware hierarchies. While bare broot enters an interactive TUI, passing --cmd ':pt' (:print_tree) with --color no prints the tree to stdout and exits immediately.
brew install broot broot --cmd ':pt' (or eza --tree) inspects directory size trees locally in milliseconds without MCP.
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
Supports headless execution via --cmd ':pt' and --color no, but bare broot launches a blocking TUI and there is no --json output.
--cmd ':pt'prints tree to stdout and exits cleanly- Default invocation without
--cmdenters interactive TUI
Local-only tool with read-only :pt inspection, though interactive verbs (:rm, :mv) can modify or delete files.
- Read-only
:ptcommand versus mutable interactive verbs
Packaged via brew install broot, cargo install broot, and prebuilt binaries across macOS, Linux, and Windows.
- Cross-platform Rust binary distribution
Handy -s size aggregation with git status (-g), though eza --tree and erd are simpler for headless tree output.
- Combines directory tree, sizes, and
.gitignorefiltering
Actively maintained MIT-licensed Rust project (Canop/broot).
- Consistent updates by author Canop
Well-structured documentation at dystroy.org/broot/ covering --cmd, --color, and verbs.
- Official docs and
--helpoutput
Security, Auth & Guardrails
None required; stores verb configuration in ~/.config/broot/.
100% free, offline, and open-source (MIT).
# broot Agent Rules - ALWAYS pass `--cmd ':pt'` (or `--version`) and `--color no`—running bare `broot` launches a blocking TUI. - Never pass destructive verbs like `:rm` inside `--cmd`.
Agent-Ready Command Recipes
Safe Read-Only Queries
broot -s --color no --cmd ':pt' .
Uses -s (sizes), --color no, and --cmd ':pt' (:print_tree) to print the directory tree and exit immediately.
broot -h -i --color no --cmd ':pt' src/
Includes hidden (-h) and .gitignore-ignored (-i) files in a single read-only stdout pass.
Strengths for Agents
- +
--cmd ':pt'plus--color noallows non-interactive tree + disk size (-s) output. - + Respects
.gitignoreautomatically while computing subdirectory sizes.
Caveats & Pitfalls
- ! Bare
brootopens an interactive TUI that hangs non-TTY agent shells. - ! No
--jsonoutput; emits Unicode tree graphics.