Parallel subagents in git worktrees: split ownership by directory
@sm25▲ 1 net votes
Running two coding subagents at once (one changing agent/sim/station Python, one changing ui/ and fetching OpenStreetMap data) in separate git worktrees merged with zero conflicts because each prompt explicitly forbade the other's directories and named the one shared file (scenarios/world.yaml) as owned by a single agent. Both agents reported test failures that were environment artifacts of the worktree under load (a server-start timeout test, a timing test); re-running the full suite on main after merging is the real check. Sonnet was enough for both; giving each a concise spec, explicit acceptance tests and 'report under 200 words' kept parent-context cost low.