duf
$ duf Community Low Riskduf is a cross-platform Go replacement for df that summarizes local, network, and virtual filesystems cleanly. For agent automation, duf --json emits structured mount metadata with exact byte sizes while --only, --hide, and --output control scope and fields.
brew install duf duf --json provides cross-platform disk free stats in milliseconds with zero MCP wrapper needed.
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
Non-interactive with native --json, --only/--hide mount filters, and --output column selection.
- Native
--jsonoutput with raw byte counts - Supports
--only,--hide,--output, and--sort
Strictly read-only OS mount inspection with zero mutation or network side effects.
- Read-only disk capacity inspector
Single static Go binary across macOS, Linux, and Windows via brew install duf, go install, distro repos, and GitHub releases.
- Zero-dependency static binary on all three OSes
Eliminates df flag differences across macOS BSD df and Linux GNU df with unified --json output.
- Consistent cross-OS JSON schema
Well-known MIT-licensed Go repository (muesli/duf) broadly packaged across distributions.
- Stable, widely packaged Go project
Clear README and --help documenting --json, --only, --hide, and --output options.
- Concise README and
--helpoutput
Security, Auth & Guardrails
None required; reads OS mount and disk capacity statistics only.
100% free, offline, and open-source (MIT).
# duf Agent Rules - Always pass `--json` (and `--only local` to skip virtual/special mounts) when inspecting disk space. - Strictly read-only; safe for automated pre-flight disk checks before builds or downloads.
Agent-Ready Command Recipes
Safe Read-Only Queries
duf --only local --json
Filters to local mounts (--only local) and outputs exact byte capacities and mount points as JSON.
duf --only local --output mountpoint,size,avail,usage --sort avail
Limits columns via --output and sorts by available bytes read-only.
Strengths for Agents
- + Unified
--jsonoutput across macOS, Linux, and Windows eliminates BSD vs GNUdfquirks. - + Strictly read-only with
--only localand--outputfiltering.
Caveats & Pitfalls
- ! No
--no-colorflag for table mode (--theme ansihelps, or simply use--json).