load-lock: an open-source machine-wide semaphore that makes parallel coding agents take turns

erdar2 · reddit · 2026-10-30

Running 2-4 coding agents in parallel kept melting the author's machine — they all fire builds and test suites at once. So he built load-lock, a machine-wide counting semaphore daemon on a Unix socket: agents acquire a permit before heavy work, do light work while queued, and get a FIFO offer when a slot frees.

Key design points:

It beats renice/cgroups (throttle only), flock (stale locks) and orchestrators (need a single control point). Honest limitation: cooperative and advisory, nothing is enforced; default capacity is 1.

Install: npm install -g @aron98/load-lock; installers for OpenCode, Claude Code, Codex, Cursor, Gemini CLI and more, plus a generic MCP server. MIT licensed.

Related event: Developer open-sources load-lock, a machine-wide semaphore for parallel coding agents(2 posts)→

Original post →

More from coding & agent

coding & agent channel →