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
- Dev builds interactive 3D product experience with GPT-6 Astra + Hyper3D Rodin — nikola_mr64990 · 2026-09-11
- Codex tip: use Sol with Astra and Luna sub-agents to save usage — pvncher · 2026-09-11
- agents-best-practices: a provider-neutral Agent Skill for designing and auditing agentic harnesses — tom_doerr · 2026-09-11
- Cognition's SWE-2 uses a KKT duality argument in RL to shift the effort Pareto curve — YouJiacheng · 2026-09-11
- First-ever Three.js Conference lands in Paris, with a panel on AI-shortened design workflows — OdinLovis · 2026-09-11
- Data engineering, not agent frameworks, is the real bottleneck for enterprise AI agents — dhruv2038 · 2026-09-11