Parallel coding work
How do you keep parallel coding agents from colliding?
The short answer
Give each coding task its own Git worktree and branch. When two tasks change the same lines, add one change, compare the other with the updated branch, and test that the combined result still does both jobs.

Evaluation kit · T02
Two worktrees, one conflicting function
We ran two supplied edits to a four-row Python report in separate Asyncly-managed Git worktrees. One grouped rows by team. The other filtered out inactive rows. Both started from the same commit.
| Change | Passed | What happened |
|---|---|---|
| Group by team | 5 / 10 | Kept inactive rows in the totals. |
| Filter inactive rows | 0 / 10 | Dropped the breakdown by team. |
| Combine both changes | 10 / 10 | Counted and grouped the same selected rows. |
Adding the grouping change left the filtering worktree intact. Before adding the filter, we ran git merge-tree in the sample repository. Git compared both edits with their common starting commit. They replaced overlapping lines in candidate.py, so Git reported a content conflict. In a fresh worktree, we filtered first and grouped the selected rows. The combined report counted three active items and 11 minutes. Including the inactive item gave four items and 16 minutes.
Try the same exercise. Run each proposal against T02, combine the behaviors, then rerun the checks on the destination.
One scripted local run on 2026-11-26. Inputs came from kit v1.0.0. The checks measure the report’s behavior. The run used no live model accounts.Why it happens
One checkout, many writers.
When several agents write into one working copy, an edit can change the files another task is still using.
Edits land on top of each other
Two agents in one checkout change the same files. Each sees tests fail for reasons it did not cause, and both spend time chasing the other's work.
Unfinished work travels together
When changes mix on one branch, reviewing or releasing them independently can take more work. Selective commits and review are possible, but you still need to untangle dependencies and preserve unfinished changes.
Bringing work in becomes a chore
Someone has to notice a task is done, check it and merge it without disturbing the work that is still running.
How to handle it
Scope, separate, review, then integrate.
Suppose one task changes pricing copy and another changes its layout. Both touch the same component. This hypothetical example explains the decision sequence; the captures below are illustrations.
Start with separate task checkouts
Configure the Git Source for managed worktrees and give each task a bounded request. Each needs its own dependencies and test configuration; a checkout alone is not application readiness.
Labels in the app: Create a separate worktree for agent changes
Review each result independently
Inspect the pricing diff and layout diff against their separate acceptance criteria. Keep screenshots and test results tied to the revision that produced them.
Resolve the overlapping component
After one change is integrated, compare the second with the current destination. If both changed the same lines, resolve the intended combined behavior and rerun the affected checks; separate folders cannot make conflicting edits compatible.
Read the integration state
Use the Source’s configured required checks and inspect any named blocker. A failed check or an interrupted operation needs resolution before integration is treated as complete.
Keep release authority separate
A completed task, passing check and integrated branch are different states. Uploads, pull requests, merges and deployments each need the applicable authority; configuring checks does not authorize all of them.
View illustrations
Illustrative workflow screens
Retained renderer captures with fictional data, not a recorded product trial. Read the guidance and availability limits alongside them; interface details can vary by build.
- 1
Ready to add
Illustration: The pricing task finished on its own branch. Its thread shows Ready to add while the other tasks keep working.

- 2
You review
Illustration: The summary shows three commits ahead of main and no uncommitted files, with Add to project beside it.

- 3
Added
Illustration: The change is in the project and the Ready to add badge has cleared. The other tasks keep working on their own branches.

Requirements and limits
What you need
- A Git Source added to the intended Project and configured for separate task worktrees.
- Task-owned dependencies, configuration and a meaningful required check.
- Review of the intended destination and authorization for the chosen integration path.
Worth knowing
- Worktree separation is not a security sandbox. File and command permissions still govern access.
- An overlap can fail at integration even when both tasks passed their own checks. A successful merge also does not prove correctness.
- The September 18, 2026 release record describes interrupted Add to project recovery. This is not a guarantee for every failure or provider.
Try it on your own work