gdu
$ gdu Community Med Riskgdu 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.
brew install gdu Parallel local gdu -n -p -o - analyzes gigabytes in seconds with native JSON output and zero MCP latency.
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 -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
-nto avoid interactive TUI loop
Non-interactive -n mode is strictly read-only, while the interactive TUI supports file deletion.
-ndisables interactive deletion UI;-xguards filesystem boundaries
Single static Go binary available via brew install gdu, go install, and GitHub releases on macOS, Linux, and Windows.
- Cross-platform Go binary distribution
Extremely fast parallel SSD traversal with native JSON export compatible with ncdu format.
- Parallel Go directory walker with
-iignore-dirs support
Actively maintained MIT-licensed Go repository (dundee/gdu).
- Regular v5 releases on GitHub
Clear README and --help covering -n, -o, -p, -c, -x, and -i.
- Well-documented flags in upstream repo
Security, Auth & Guardrails
None required; scans local storage paths read-only in -n mode.
100% free, offline, and open-source (MIT).
# 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
gdu -n -p -o - /path/to/dir
Runs headlessly (-n), hides progress (-p), and prints JSON (-o -) to stdout read-only.
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
-cno-color and-xsingle-filesystem flags.
Caveats & Pitfalls
- ! Calling
gduwithout-nenters a blocking interactive TUI. - ! Large directories produce large JSON trees with
-o -; pipe throughjqto bound output.