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

duf

$ duf Community Low Risk
Christian Muehlhaeuser · Files & Search · MIT · macos / linux / windows

duf 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.

FCRS-1.0 Score
92 /100
Excellent
Medium Confidence
Zero-Friction Install
brew install duf
CLI vs MCP Decision CLI Only

duf --json provides cross-platform disk free stats in milliseconds with zero MCP wrapper needed.

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

Non-interactive with native --json, --only/--hide mount filters, and --output column selection.

  • Native --json output with raw byte counts
  • Supports --only, --hide, --output, and --sort
Trust & Safety 25 / 25

Strictly read-only OS mount inspection with zero mutation or network side effects.

  • Read-only disk capacity inspector
Setup & Portability 15 / 15

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
Utility & Efficiency 13 / 15

Eliminates df flag differences across macOS BSD df and Linux GNU df with unified --json output.

  • Consistent cross-OS JSON schema
Maintenance & Lineage 8 / 10

Well-known MIT-licensed Go repository (muesli/duf) broadly packaged across distributions.

  • Stable, widely packaged Go project
Docs & Verifiability 8 / 10

Clear README and --help documenting --json, --only, --hide, and --output options.

  • Concise README and --help output

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; reads OS mount and disk capacity statistics only.

Side Effects
Read-Only
Cost & Quotas

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

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

Inspect local disks as structured JSON
duf --only local --json

Filters to local mounts (--only local) and outputs exact byte capacities and mount points as JSON.

Select specific table columns and sort by free space
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 --json output across macOS, Linux, and Windows eliminates BSD vs GNU df quirks.
  • + Strictly read-only with --only local and --output filtering.

Caveats & Pitfalls

  • ! No --no-color flag for table mode (--theme ansi helps, or simply use --json).

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI