What coding agents actually need from a build machine: lessons from open-sourcing boxd

Moze_mpk · reddit · 2026-11-23

After running multiple coding agent sessions in parallel git worktrees overloaded his desktop, the author built boxd (MIT, open source): it forwards build/test commands to a spare Linux machine, running each in a rootless Podman container or small VM — one box per worktree. All code was written by Claude Code. The real value is his list of what agents implicitly need:

The error message is the interface

Multiple agents need admission, queueing, fairness: one memory cap per host, declared sizes plus measured use (measurement alone failed — 12×4GB VMs slipped under a 28GB cap), FIFO retry every 30s with --wait, and real-usage feedback on release.

Long runs: detach + follow with a quiet-limit instead of one foreground command.

Cleanup can't be the agent's job: rule-based removal with logged reasons — his worst bug deleted live package caches by trusting mtimes. The agent learns the tool from a skill file where every sentence came from a real failure.

Original post →

More from coding & agent

coding & agent channel →