Three ways parallel coding agents break unless you isolate state
ItaySela · reddit · 2026-07-24
A Reddit engineer describes three non-obvious failures they hit when running multiple coding agents in parallel.
- The first problem was shared working trees: two agents editing the same repo created mixed diffs and accidental overwrites.
- The fix was one git worktree per agent so each session has its own isolated diff surface.
- The second problem was runtime state sharing.
- Separate branches were not enough because the agents still fought over one dev database, port range, and nodemodules.
- A migration race even caused one agent to clobber another’s schema change without showing up in git.
- The missing piece was full runtime isolation: separate DBs and ports per agent.
- The third problem was distinguishing “stuck” from “slow.”
- Exit codes are too coarse, and looping agents can keep making small state changes forever.
- The author found that fingerprinting the remaining gap—what tests are still red, what fields are still empty—works better than watching actions alone.
The post ends by asking whether others isolate with one container per agent or something lighter.
More from coding & agent
- Stanford's PaperFormalizer turns research papers into Lean-verified versions with author in the loop — StanfordUniversity · 2026-10-27
- Hugging Face TRL makes score centering + masked importance sampling default in async GRPO — _lewtun · 2026-10-27
- AutoResearch agent's weird training curve gets dug into instead of discarded — ZimingLiu11 · 2026-10-27
- Firecrawl offers 2.5x credits to a16z Speedrun founders, unveils $75M Series B — devdigest · 2026-10-27
- Chums: open-source Apple Watch app puts Claude Code and Codex on your wrist — brandon_galang · 2026-10-27
- Open-source Clairic Studio turns pasted text into typed data and working code in 5 languages — dfinke · 2026-10-27