A single-file Python script that walks a macOS home directory and reports where disk space is going. It prints a report; it never deletes anything.
Source: apps/macos-utils/cleanup-scan.py.
python3 apps/macos-utils/cleanup-scan.py
No dependencies beyond the stdlib. Colors are auto-disabled when stdout is not a TTY.
~/Library/Caches, /Library/Caches)$HOME (skipping .git, node_modules, .venv, Library, etc.)node_modules directories.venv, venv)~/Library/Application Support subdirsEach section shows reclaimable size and the command you would run to clear it — but running that command is left to you.
cleanup-scan.py has no delete path. It calculates sizes via os.walk
and os.path.getsize; shutil is only used for shutil.which. External
tools (docker system df, brew --cache) are invoked in read-only mode.
Re-running it is free.