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

dua

$ dua Community Med Risk
Sebastian Thiel · Files & Search · MIT · macos / linux / windows

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

FCRS-1.0 Score
82 /100
Good
Medium Confidence
Zero-Friction Install
brew install dua-cli
CLI vs MCP Decision CLI Only

Parallel local dua aggregate outperforms du and avoids any MCP server setup.

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

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 aggregate and -f bytes produce clean non-interactive lines
  • No --json output mode
Trust & Safety 21 / 25

Default invocation and aggregate are strictly read-only, while the separate dua i subcommand enables permanent file deletion.

  • Read-only default vs explicit dua i interactive deleter
Setup & Portability 14 / 15

Cross-platform Rust binary available via brew install dua-cli, cargo install dua-cli, and GitHub releases.

  • Supports macOS, Linux, and Windows
Utility & Efficiency 13 / 15

Much faster than single-threaded du -sh thanks to parallel Rust directory traversal.

  • Multi-threaded traversal with -t thread control and -f unit formats
Maintenance & Lineage 8 / 10

Maintained by Sebastian Thiel (Byron/dua-cli) under MIT license.

  • Well-established Rust CLI repository
Docs & Verifiability 8 / 10

Clear README and --help documenting aggregate, i, -f, and -A (--apparent-size).

  • Comprehensive CLI help and README

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; inspects local filesystem entries only.

Side Effects
Read-Only Destructive
Cost & Quotas

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

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

Report top-level directory sizes non-interactively
dua aggregate --format metric .

Computes multi-threaded disk usage for entries in . using human-readable SI units without entering interactive mode.

Emit exact byte counts for scripting
dua -f bytes *

Prints raw byte totals per entry (-f bytes) read-only for deterministic numeric comparison.

Strengths for Agents

  • + Default dua and dua aggregate are strictly read-only and non-interactive (unlike ncdu/gdu).
  • + Supports -f bytes for exact numeric parsing and multi-threaded speed.

Caveats & Pitfalls

  • ! No --json output format.
  • ! Avoid dua i (interactive), which blocks non-TTY shells and permits deletion.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI