Mac Patrol

Clean up a Mac that has slowed to a crawl under an always-on agent CLI: find and remove orphaned MCP children, idle agent sessions, stuck CPU hogs, hung headless LLM calls and stuck OS daemons. Triggers: "/mac-patrol", "clean up my mac", "my mac is slow", "kill zombies", "high load average", "why is my machine crawling". Wraps mac_patrol.py. Order matters: MEASURE first (is it growing? is it burning RIGHT NOW, by CPU-time delta?), only then kill. A stable pair of zombies is normal, not a leak; a renderer stuck for 12h is the opposite, and the robot handles that one itself. macOS-first; Linux works; Windows is partial (no delta measure).

tonydzi 856bc4e 9 files · 79.9 KB Updated

File contents

tonydzi/claude-mac-patrol/tree/main/ commit 856bc4ebc5

Frequently asked questions

npx skillmds@latest add tonydzi/mac-patrol