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

broot

$ broot Community Med Risk
Canop · Files & Search · MIT · macos / linux / windows

broot 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.

FCRS-1.0 Score
72 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install broot
CLI vs MCP Decision CLI Preferred vs MCP

broot --cmd ':pt' (or eza --tree) inspects directory size trees locally in milliseconds without MCP.

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 13 / 25

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 --cmd enters interactive TUI
Trust & Safety 19 / 25

Local-only tool with read-only :pt inspection, though interactive verbs (:rm, :mv) can modify or delete files.

  • Read-only :pt command versus mutable interactive verbs
Setup & Portability 13 / 15

Packaged via brew install broot, cargo install broot, and prebuilt binaries across macOS, Linux, and Windows.

  • Cross-platform Rust binary distribution
Utility & Efficiency 11 / 15

Handy -s size aggregation with git status (-g), though eza --tree and erd are simpler for headless tree output.

  • Combines directory tree, sizes, and .gitignore filtering
Maintenance & Lineage 8 / 10

Actively maintained MIT-licensed Rust project (Canop/broot).

  • Consistent updates by author Canop
Docs & Verifiability 8 / 10

Well-structured documentation at dystroy.org/broot/ covering --cmd, --color, and verbs.

  • Official docs and --help output

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; stores verb configuration in ~/.config/broot/.

Side Effects
Read-Only Local Write Destructive
Cost & Quotas

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

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Print a non-interactive size-annotated tree
broot -s --color no --cmd ':pt' .

Uses -s (sizes), --color no, and --cmd ':pt' (:print_tree) to print the directory tree and exit immediately.

Print tree including hidden and gitignored entries
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 no allows non-interactive tree + disk size (-s) output.
  • + Respects .gitignore automatically while computing subdirectory sizes.

Caveats & Pitfalls

  • ! Bare broot opens an interactive TUI that hangs non-TTY agent shells.
  • ! No --json output; emits Unicode tree graphics.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI