Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By maksymskuibidav3.1.0In 1 marketplace
Find what fills a Mac's disk and reclaim it safely: one walk of the whole volume, six read-only investigators, a page to pick Remove or Keep per item, re-checked at removal; orphaned git worktrees through their own gates.
Claude loads one when your task matches it, or you run it by name.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Where a Mac's disk went, and what can leave it — the whole disk, not one folder. Formerly worktree-cleanup,
whose worktree gates it keeps unchanged.
/mac-cleanup (or "clean up my Mac", "where did my space go") runs one account of the disk, from the volume down:
du (scripts/mac_scan.py walk), plus the APFS container's volumes,
every folder du could not read, and every file written in the last 30 days.references/investigators.md is their contract).scripts/mac_scan.py build, rendered by cleanup.html in
your private Mac cleanup artifact): the capacity bar, what grew lately, how much could not be verified and
which folders need Full Disk Access, then every item grouped, with Remove / Keep per item and a note for Claude.scripts/mac_scan.py remove): only what you picked, each
still there, no session working inside, no file open in it, nothing written to it in the last 30 minutes.
A pick of something the page marked Keep waits for a second yes. Worktrees go through their own gates below;
tool commands are shown, run one at a time with the same re-check on what they clear (mac_scan.py check),
and measured before and after; anything needing sudo and the manual steps are left to you.Every size comes from du. A size the walk contradicts (a mounted image's contents, a sparse file's apparent
size) is left out rather than shown; what the walk could not read is reported as a number (the Data volume's
consumed bytes minus what was measured), with the folders behind it.
Agent-driven development leaves worktrees everywhere, each carrying its own
node_modules. Tens of gigabytes accumulate quickly. The hard part is not finding
them — it is telling apart the ones that are genuinely disposable from the ones
holding the only copy of some commits, or the one a session started using ten minutes
ago.
A worktree is only removable when all three agree, and each catches things the others miss:
git status alone answers none of it: it misses
detached HEADs (as do upstream/ahead counts), and it never lists ignored files.
That last omission matters most. Removing a worktree never deletes commits — they
live in the common .git/objects — so ignored files are the only class that
removal destroys irreversibly. The scanner asks for them explicitly, subtracts
recognisable build output (node_modules/, dist/, build/, .venv/, target/,
coverage/, …) and holds back what remains, naming it in the report.Scanning and deleting are separate acts. A worktree idle at scan time can be someone's
working directory by the time you delete it. So remove_worktrees.py re-derives the
recoverability and liveness verdicts from current git state and newly supplied
liveness at the moment of removal, and holds back anything that changed — a tree gone
dirty, a session that claimed it, a HEAD that moved. (Recency is re-derived only when
a third party has written since the scan; otherwise the scan's reading is carried
forward and aged, because the scan's own git status bumps the index mtime and a
naive re-measure would hold back everything.)
Dry-run is the default, and "fresh liveness data" is enforced rather than assumed: the
remover refuses a liveness file that is the one the scan read, that predates the scan,
or that is more than --liveness-max-age minutes old, and refuses a plan older than
--max-plan-age-hours or produced on another machine. --assume-no-live-sessions is
the explicit override — a claim a human makes, which a file cannot make for them.
Claude drives this through the bundled skill; the worktree scripts are also usable directly:
python3 scan_worktrees.py --roots ~/projects \
--live-paths-file /tmp/live.txt --json /tmp/plan.json
python3 remove_worktrees.py /tmp/plan.json \
--live-paths-file /tmp/live-fresh.txt --execute
Both are Python 3 stdlib only, no dependencies.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub maksymskuibida/mskuibida-ai-tools --plugin mac-cleanupPlugins from other owners that cover similar ground