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

gdu

$ gdu Community Med Risk
Daniel Milde · Files & Search · MIT · macos / linux / windows

gdu scans directories in parallel using Go goroutines optimized for SSDs. While bare gdu launches an interactive TUI, passing -n (--non-interactive) with -p (--no-progress) and -o - outputs a clean JSON tree to stdout without prompts.

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

Parallel local gdu -n -p -o - analyzes gigabytes in seconds with native JSON output and zero MCP latency.

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

Supports -n non-interactive, -p no-progress, -c no-color, and -o - JSON stdout, though bare gdu defaults to an interactive TUI.

  • -n -p -o - produces clean machine-readable JSON
  • Requires -n to avoid interactive TUI loop
Trust & Safety 21 / 25

Non-interactive -n mode is strictly read-only, while the interactive TUI supports file deletion.

  • -n disables interactive deletion UI; -x guards filesystem boundaries
Setup & Portability 14 / 15

Single static Go binary available via brew install gdu, go install, and GitHub releases on macOS, Linux, and Windows.

  • Cross-platform Go binary distribution
Utility & Efficiency 14 / 15

Extremely fast parallel SSD traversal with native JSON export compatible with ncdu format.

  • Parallel Go directory walker with -i ignore-dirs support
Maintenance & Lineage 8 / 10

Actively maintained MIT-licensed Go repository (dundee/gdu).

  • Regular v5 releases on GitHub
Docs & Verifiability 8 / 10

Clear README and --help covering -n, -o, -p, -c, -x, and -i.

  • Well-documented flags in upstream repo

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; scans local storage paths read-only in -n mode.

Side Effects
Read-Only Destructive
Cost & Quotas

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

Copyable Guardrail for CLAUDE.md / AGENTS.md
# gdu Agent Rules
- ALWAYS pass `-n -p` (plus `-o -` for JSON)—bare `gdu` opens an interactive TUI and hangs.
- Include `-x` when scanning root or `/Volumes` to avoid crossing mounted filesystems.

Agent-Ready Command Recipes

Safe Read-Only Queries

Emit non-interactive JSON disk usage tree
gdu -n -p -o - /path/to/dir

Runs headlessly (-n), hides progress (-p), and prints JSON (-o -) to stdout read-only.

Print clean non-interactive summary table
gdu -n -p -c -x /path/to/dir

Stays on one filesystem (-x) without color (-c) and outputs top-level directory sizes.

Strengths for Agents

  • + Native -n -p -o - emits structured JSON headlessly at high parallel SSD speed.
  • + Cross-platform single Go binary with -c no-color and -x single-filesystem flags.

Caveats & Pitfalls

  • ! Calling gdu without -n enters a blocking interactive TUI.
  • ! Large directories produce large JSON trees with -o -; pipe through jq to bound output.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI