Preview-first TUI for cleaning macOS caches, logs, and temporary files.

1) Install
brew install mac-cleanup-go
Or download the archive from GitHub Releases.
2) Optional: Full Disk Access (needed for Trash/restricted locations) System Settings -> Privacy & Security -> Full Disk Access -> add Terminal
3) Run
mac-cleanup
Tip: Use Enter to preview, then y to proceed with deletion. Press ? to see key bindings.

brew upgrade mac-cleanup-go or mac-cleanup --update.brew uninstall mac-cleanup-go.mac-cleanup --debug saves log to ~/.config/mac-cleanup-go/debug.log.Key bindings
List view:
Up/Down or k/j: moveSpace: select categorya: select all, d: deselect allEnter or p: preview selection?: help, q: quitPreview view:
Up/Down or k/j: moveh/l: previous/next categorySpace: toggle excludeEnter: drill into directory/: search, s: sort, o: open in Findera: include all, d: exclude ally: delete (confirm), esc: backConfirm view:
y or Enter: confirmn or esc: cancelConfigure targets and clean from the command line.
mac-cleanup --select # Configure cleanup targets
mac-cleanup --clean --dry-run # Preview cleanup report
mac-cleanup --clean # Execute cleanup
For command-line cleanup, see the examples below.
Example output
1) Select targets
$ mac-cleanup --select
Select cleanup targets ● safe ○ moderate
─────────────────────────────────────────────────────────
Name Size
[ ] ● Trash 0 B
[✓] ○ App Caches 3.2 GB
[✓] ○ System Logs 259.7 MB
▸ [✓] ● Go Build Cache 845.0 MB
[✓] ○ Docker 2.8 GB
[✓] ● Homebrew Cache 1.5 GB
[ ] ● Chrome Cache 0 B
─────────────────────────────────────────────────────────
Selected: 5
↑/↓ Move space Select s Save ? Help q Cancel
2) Preview / Clean
$ mac-cleanup --clean --dry-run
Dry Run Report
--------------
Mode: Dry Run
Summary Highlights
Freed (dry-run): 8.6 GB 1. App Caches - 3.2 GB (523 items)
2. Docker - 2.8 GB (12 items)
3. Homebrew Cache - 1.5 GB (34 items)
Details
STATUS CATEGORY ITEMS SIZE
OK App Caches 523 3.2 GB
OK Docker 12 2.8 GB
OK Homebrew Cache 34 1.5 GB
OK Go Build Cache 89 845.0 MB
OK System Logs 67 259.7 MB
MIT
$ claude mcp add mac-cleanup-go \
-- python -m otcore.mcp_server <graph>