agentgc queues heavy builds for parallel Claude Code agents via a hook
A developer describes running several Claude Code agents on one laptop, where simultaneous heavy jobs such as test runs and builds can overload the machine. They built agentgc, a CLI whose Claude Code hook rewrites heavy commands like cargo test or npm run build to run through a queue. By default, a quarter of the logical cores (at least one) run heavy work at once, and the rest wait for a free slot. The hook asks for approval before rewriting commands, with an --allow option to skip that prompt, and it only rewrites plain single commands, not those with shell syntax. The release notes say tests pass on Windows, Linux and macOS in GitHub Actions, but the full flow was only tested by hand on Windows, and unsigned binaries may trigger OS warnings.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in