Swarm Brake — Development skill for Claude Code
Stop Claude Code and Codex agent swarms from freezing your Mac.
How to install Swarm Brake
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open antivirusakash/swarm-brake and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Swarm Brake does
Stop Claude Code and Codex agent swarms from freezing your Mac. Heavy jobs like video renders, builds and headless browsers wait their turn when memory or CPU runs low, leftover Chrome gets cleaned up, and a log shows what froze your machine.
Alternatives in Development
- Claude Token Efficient — One CLAUDE.md file 3.8k ★
- Investigate Performance — Investigate a Nimbalyst performance problem (freeze, lag, idle CPU, slow op, memory growth) with measured evid 1.6k ★
- Puppetmaster — Provider-neutral control plane for durable-state agent swarms: subprocess workers, leases, artifacts, memory 340 ★
README
swarm-brake
**Keep Claude Code and Codex agent swarms from freezing your Mac.**
[](LICENSE) [](#install) [](#install) [](#status) [](bin/swarm-brake)
[Install](#install) · [Before and after](#before-and-after) · [Settings](#settings) · [Logs and the report](#logs-and-the-report)
Your Claude Code agents froze your Mac again. swarm-brake is a hook plugin for Claude Code and Codex CLI that makes heavy jobs (video renders, builds, headless Chrome) wait their turn when memory or CPU runs low, cleans up the Chrome processes renders leave behind, and logs every heavy job so you can see what froze the machine.
Agents decide on their own to render a video, run a build or start two subagents in parallel. None of them checks whether the laptop has room first. swarm-brake checks for them.
Why I built it
I run a lot of Claude Code sessions on a 16 GB MacBook (10 cores). Over one week the machine kept falling over, and every time I traced it back to the same thing: agents starting heavy work with no idea what else was running.
**2026-10-08.** My external SSD started returning `EPERM` to whole terminal trees. The cause turned out to be memory: swap was at 11.8 of 13 GB, and macOS's privacy daemon (`tccd`) was answering too late or getting killed by jetsam, so every file check failed closed. There were 20 `claude` processes (3.6 GB, many idle for 8+ days), each with its own 3 MCP servers: 57 node processes. Killing the idle sessions brought swap down to 6.4 GB.
**2026-10-1
Related Skills
Ruflo Swarm
Coordinate multi-agent swarms for complex tasks
Auto Swarm Nth
Nth-iteration agent swarm — spawns parallel agent waves, evaluates strictly per wave, re-swarms gaps until 100
Sync Relay
Keep the main agent orchestrating and hand off to a fresh session before context gets heavy. Plugin for Claude
Claude Uso Por Sesion
Per-session budgets and an auto-brake for parallel Claude Code sessions sharing the 5-hour limit.
Token Burn
CLI tool that spends leftover Claude Code and Codex CLI tokens before the weekly reset by running your prompts
Wind Down
Scan for leftover session processes/servers and stop only what you approve (invokes the wind-down skill)
Related Agents
Swarm Auditor
Fable 5.1 final auditor for research swarms — the last gate before a deliverable ships. Reads ONLY the distill
Swarm Coordinator
Orchestrator that distributes complex tasks across parallel agent swarms. Fully supports the 9-layer delegatio
Machinist
Watches and frees the Mac's physical resources (RAM, CPU, heat) — hunts abandoned processes, compressed memory