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
- Refusals must carry numbers and a next step (exit 75 with full memory accounting) so the agent can decide to wait, shrink, or switch hosts on its own;
- Short true messages still mislead: "no box <name>" made one agent conclude its work was gone — fixed by adding how to query by name;
- A stray stderr line reads as failure; unknown subcommands must error loudly or they get run as programs inside the box.
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.
More from coding & agent
- Multica's lessons from 170K agent runs a workday: success rate 60% → 88% — jiayuan_jy · 2026-11-23
- Inkling 2 Mini on one RTX 3090 beats GPT-6 Luna, ties Haiku 5.5 on homelab agent benchmark — lbgos_Loss783 · 2026-11-23
- Open-source MCP server identifies movies/TV from screenshots and searches scenes by text — IncidentRepulsive207 · 2026-11-23
- Paradigm partner on Agent Swarms: rethink software engineering with Opus 5.5 — FinanceYF5 · 2026-11-23
- Paradigm CTO shares 6 practices for riding AI agent swarms, open-sources Nanocode SDK — FinanceYF5 · 2026-11-23
- Cloudflare engineering director on AI-era OSS and the open-source Void framework — cnakazawa · 2026-11-23