dua
$ dua Community Med Riskdua (dua-cli) measures directory disk usage in parallel Rust. Its default dua [paths] and dua aggregate commands run non-interactively and print sorted plain-text sizes to stdout, whereas dua i (interactive) launches an interactive TUI with file deletion.
brew install dua-cli Parallel local dua aggregate outperforms du and avoids any MCP server setup.
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
Default dua and dua aggregate run headlessly with -f bytes support, though there is no --json flag and dua i enters a blocking TUI.
dua aggregateand-f bytesproduce clean non-interactive lines- No
--jsonoutput mode
Default invocation and aggregate are strictly read-only, while the separate dua i subcommand enables permanent file deletion.
- Read-only default vs explicit
dua iinteractive deleter
Cross-platform Rust binary available via brew install dua-cli, cargo install dua-cli, and GitHub releases.
- Supports macOS, Linux, and Windows
Much faster than single-threaded du -sh thanks to parallel Rust directory traversal.
- Multi-threaded traversal with
-tthread control and-funit formats
Maintained by Sebastian Thiel (Byron/dua-cli) under MIT license.
- Well-established Rust CLI repository
Clear README and --help documenting aggregate, i, -f, and -A (--apparent-size).
- Comprehensive CLI help and README
Security, Auth & Guardrails
None required; inspects local filesystem entries only.
100% free, offline, and open-source (MIT).
# dua Agent Rules - NEVER invoke `dua i` or `dua interactive` in non-TTY agent shells—it launches a blocking TUI with delete keys. - Stick to `dua` or `dua aggregate` for strictly read-only, non-interactive size output.
Agent-Ready Command Recipes
Safe Read-Only Queries
dua aggregate --format metric .
Computes multi-threaded disk usage for entries in . using human-readable SI units without entering interactive mode.
dua -f bytes *
Prints raw byte totals per entry (-f bytes) read-only for deterministic numeric comparison.
Strengths for Agents
- + Default
duaanddua aggregateare strictly read-only and non-interactive (unlikencdu/gdu). - + Supports
-f bytesfor exact numeric parsing and multi-threaded speed.
Caveats & Pitfalls
- ! No
--jsonoutput format. - ! Avoid
dua i(interactive), which blocks non-TTY shells and permits deletion.