DISK SCOUT
Build a scout.
Measure before cleanup.
By Alvin
A disk-cleanup agent needs a map before it needs a broom. Disk Scout reads file sizes in folders you name, groups them by directory, and prints a report. It never opens file contents, follows symbolic links, saves a report, or removes anything.
Give the coding agent this brief
Complete brief / keep the acceptance checks
Create a Python 3 disk-space auditor named Disk Scout. Accept explicitly named folders. Measure regular-file logical sizes without opening contents or following symbolic links. Print totals and the largest first- and second-level folders. Count unreadable items, reject overlapping scan roots, and keep output on screen. Do not delete, move, upload or edit files. Include a tiny sample tree and a repeatable check of the totals.
This brief turns “clean my Mac” into “show me where the bytes are.” Explicit roots replace a whole-disk sweep; metadata reads replace opening private files; a report replaces deletion. The bundled skill includes the runnable script and sample tree. A fresh build still needs its own checks.
Try the supplied sample
python3 lab/skills/disk-scout/scripts/disk_scout.py --path demo=lab/disk/sample
DISK SCOUT / READ ONLY Logical file bytes. File contents not read. demo / total 169 bytes / 4 files codex/sessions / 62 bytes model-cache / 42 bytes project/build / 38 bytes codex/archived_sessions / 27 bytes
These are invented files. The fixture confirms the script’s logical-size sum, not physical space used by APFS, compression, snapshots, hard links or sparse files. Your real result will differ.