MN://WORK/devtrim
devtrim
Disk hygiene for macOS developer machines: measure, classify, trim — safely.
- Rust
- macOS
- CLI
- SLSA
$ trace "devtrim"
- scan
- danger score
- VerifiedTarget
- Trash
The problem
A developer Mac quietly accumulates model caches, stale node_modules, simulator storage, Xcode support files, Docker bloat, and old toolchains. Cleaning by hand is where people delete the wrong thing.
The constraint
Every mutation previews by default and needs --apply. Apply consumes only the exact paths shown in the preview; unknown Git activity, incomplete measurement, or a symlinked ancestor blocks the plan. Docker volumes and Xcode Archives are never actionable.
The approach
A single Rust binary with a typed deletion boundary: only an internal VerifiedTarget reaches the one deletion sink, Trash-first, with 1–10 danger scores that escalate to typed confirmation. --json emits exactly one envelope and partial work exits nonzero.
The outcome
Born from a cleanup that reclaimed 250+ GB on the author’s own machine. Releases are immutable GitHub releases with SLSA provenance, promoted from the exact verified beta artifact without rebuilding.
Next route
Open another project
The index is the wider system.