disky

Fast macOS disk analyzer and cleanup CLI in Rust.

Scan 2 million files in seconds, diff snapshots, cleanup safely (Trash-restorable), and pipe JSON to any agent. Alternative to ncdu, dust, du, GrandPerspective, DaisyDisk — built for the terminal AND for AI agents that shell out.

Install

cargo install disky

Quick start

disky scan /                   # scan from root (~3 min, 2M files)
disky                          # ncdu-style TUI
disky top --physical           # largest files (APFS-aware)
disky cleanup --apply --reversible    # safe cleanup → ~/.Trash

Why disky

diskyncdudustdu
Snapshot storageDuckDB
Diff between scansyes
Trash-safe cleanupyes
APFS sparse-file awareyes
JSON for agentsyes

Agent-native

Every command emits an envelope {schema_version, kind, records}. Errors on stderr follow RFC 9457. Exit codes are stable. Run disky schema for the machine descriptor.