erdtree
$ erd Community Low Riskerdtree (erd) combines tree and du in a multi-threaded Rust binary that respects .gitignore by default. Strictly read-only and non-interactive, it supports bounded depth (-L), layout options (--layout flat), human sizes (-H), and NO_COLOR=1.
brew install erdtree Single-pass local erd -L 3 -H inspects structure and size in milliseconds 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
Strictly non-interactive and respects NO_COLOR=1, -L depth bounds, and --layout flat, though it has no --json output.
- Non-interactive stdout with
NO_COLORsupport and--layout flat - No
--jsonoutput mode
Strictly read-only filesystem traversal with zero write, delete, or network capabilities.
- Purely read-only tree and size inspector
Packaged via brew install erdtree, cargo install erdtree, and GitHub releases for macOS, Linux, and Windows.
- Cross-platform Rust binary
Combines tree, du, and .gitignore filtering in one fast parallel Rust pass.
- Eliminates running separate
treeandduinvocations
MIT-licensed community Rust project (solidiquis/erdtree) with mature v3 feature set.
- Established GitHub repository
Thorough README and --help documenting --layout, -L, --sort, -H, and --disk-usage.
- Detailed flag and layout guide in README
Security, Auth & Guardrails
None required; reads local directory metadata only.
100% free, offline, and open-source (MIT).
# erdtree (erd) Agent Rules - Always pass `-L <depth>` on large repos and set `NO_COLOR=1` (avoid `-I`/`--icons`) to keep output compact. - Strictly read-only; pass `--no-ignore` only when inspecting `node_modules` or `target/`.
Agent-Ready Command Recipes
Safe Read-Only Queries
.gitignore-aware tree with sizes NO_COLOR=1 erd -L 3 -H --layout inverted src/
Displays up to 3 levels (-L 3) with human-readable sizes (-H) while honoring .gitignore and suppressing ANSI color.
NO_COLOR=1 erd --layout flat --sort size -H .
Lists matching non-ignored entries sorted by size without box-drawing indentation.
Strengths for Agents
- + Strictly read-only and honors
.gitignoreautomatically while computing tree sizes. - + Parallel Rust traversal with
--layout flatand-Ldepth bounding.
Caveats & Pitfalls
- ! No
--jsonoutput; emits plain or box-drawn text. - ! Avoid
-I(--icons) in agent shells to prevent Nerd Font glyph noise.