Keep your Mac fast.
Even when your AI doesn't.

A tiny, opinionated CLI for macOS developers. Hunts down resource hogs, scans 50+ cache locations across every dev stack you touch, and reclaims gigabytes in one pass. Pure bash. Zero dependencies. No Electron.

install
$ brew install knowamit/tap/macoptimize

No Homebrew? one-line installer  ·  release notes

01

universal cache scanner

One command. 50+ cache locations. Zero guesswork.

Every dev tool you install scatters cache files across your disk. macoptimize knows where they hide, shows the damage, and cleans per-item or in bulk.

$ macoptimize cache --report

━━━ Cache Scanner ━━━

  [node]     npm cache              2.30G  ~/.npm/_cacache
  [node]     pnpm store             1.63G  ~/Library/pnpm/store
  [node]     Bun install cache     726.0M  ~/.bun/install/cache
  [node]     Playwright browsers    1.02G  ~/Library/Caches/ms-playwright
  [python]   Conda packages         3.40G  ~/miniconda3/pkgs
  [python]   HuggingFace cache     12.1G  ~/.cache/huggingface
  [rust]     Cargo registry        842.0M  ~/.cargo/registry
  [mobile]   Xcode DerivedData      8.7G  ~/Library/Developer/Xcode/DerivedData
  [mobile]   Gradle caches          4.2G  ~/.gradle/caches
  [ide]      JetBrains caches      699.3M  ~/Library/Caches/JetBrains
  [system]   Homebrew downloads    1009.9M  ~/Library/Caches/Homebrew
  [browser]  Chrome cache           2.95G  ~/Library/Caches/Google/Chrome

  ℹ Found 26 caches totalling 52.78G
npmyarnpnpmbunpippoetryuvcondacargogodenorubyxcodegradlecocoapodsvscodecursorjetbrainshomebrewplaywrighthuggingface+30 more
02

and everything else

status

System health, at a glance

CPU, memory, swap, disk, thermal — colour-coded, instant.

hogs

Catch the runaway process

Surfaces processes pinning CPU or eating RAM you'd never notice.

monitor

Live dashboard

Refreshes every 3 seconds. Tiny terminal window, full picture.

storage

Interactive storage TUI

Find what's eating your SSD. Browse and delete with arrow keys.

kill-devservers

Murder the forgotten ports

Cleans up orphaned webpack, vite, metro, expo. RAM returns.

optimize

Sensible system tweaks

DNS flush, Spotlight reindex, animation speed. Nothing destructive.