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

erdtree

$ erd Community Low Risk
solidiquis · Files & Search · MIT · macos / linux / windows

erdtree (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.

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

Single-pass local erd -L 3 -H inspects structure and size in milliseconds with zero MCP overhead.

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

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_COLOR support and --layout flat
  • No --json output mode
Trust & Safety 25 / 25

Strictly read-only filesystem traversal with zero write, delete, or network capabilities.

  • Purely read-only tree and size inspector
Setup & Portability 14 / 15

Packaged via brew install erdtree, cargo install erdtree, and GitHub releases for macOS, Linux, and Windows.

  • Cross-platform Rust binary
Utility & Efficiency 13 / 15

Combines tree, du, and .gitignore filtering in one fast parallel Rust pass.

  • Eliminates running separate tree and du invocations
Maintenance & Lineage 7 / 10

MIT-licensed community Rust project (solidiquis/erdtree) with mature v3 feature set.

  • Established GitHub repository
Docs & Verifiability 8 / 10

Thorough README and --help documenting --layout, -L, --sort, -H, and --disk-usage.

  • Detailed flag and layout guide in README

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; reads local directory metadata only.

Side Effects
Read-Only
Cost & Quotas

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

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

Render bounded .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.

Sort files by largest size in flat layout
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 .gitignore automatically while computing tree sizes.
  • + Parallel Rust traversal with --layout flat and -L depth bounding.

Caveats & Pitfalls

  • ! No --json output; emits plain or box-drawn text.
  • ! Avoid -I (--icons) in agent shells to prevent Nerd Font glyph noise.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI