One agent is fixing a booking error while another changes the same app's navigation. Separate Git worktrees prevent them from sharing one checked-out file state, but they do not remove logical conflicts or shared-service dependencies. Plan the scopes first, then integrate with evidence about both changes.
On this page
Requirements
Before you start
Make sure you have these in place before following the steps:
- An app and runtime that support concurrent tasks.
- Clear outcomes and acceptance checks for each task.
- A person responsible for reviewing the combined change.

Split by outcome rather than agent count
Write one bounded request per task. Name the user flow, relevant files if known and behavior that must stay unchanged. Keep tightly coupled changes together. Two tasks editing the same shared helper may need sequencing rather than more parallel work.
Check each task's app and target
Create tasks against the intended app and target branch. Each parallel task uses a separate Git worktree, as confirmed by the product owner and current implementation. Confirm which task owns which outcome. A separate branch is useful for review, but not proof the tasks cannot affect a shared service.
State boundaries and checks
Tell each agent what it should avoid changing and how its result will be evaluated. Avoid giving both tasks broad cleanup authority. If both discover the same prerequisite, decide who owns it before their edits diverge.
Task A: fix missing-date validation on booking only; keep navigation unchanged. Check empty and valid submissions. Task B: update public navigation labels only; do not alter booking behavior. Report shared files before changing them.Respond to shared-file warnings
Inspect any Shared files indicator and task preview explanation. Use it as a reason to inspect scope, not as proof of an actual merge conflict. If tasks overlap, ask one to narrow its change, finish a prerequisite first or coordinate explicitly before accepting either result.
Review and integrate one result at a time
Review the first task's diff and checks through the configured submission workflow. Then refresh the second task's merge readiness against the changed target. When a conflict needs reconciliation, inspect how both intents are preserved. Do not solve a conflict by silently dropping one task's behavior.
Check the app with both changes present
Run the relevant checks on the integrated state and try both user flows. Watch shared dependencies such as navigation, authentication, ports and test data. A passing isolated task preview does not guarantee the other change leaves it working after integration.
Check the result
- Every concurrent task has a distinct outcome and owner.
- Overlapping files or services have an explicit plan.
- The combined state passes checks covering both changes.
Troubleshooting
Tasks have separate worktrees but still conflict.
Inspect overlapping files and the intended behavior. Worktrees separate working copies, not competing edits or shared external resources. Sequence the work or assign ownership of the common change.
The second task's review is stale after the first merges.
Refresh its source and merge status and review the current revision before proceeding. Do not force a previously reviewed fingerprint onto changed work.
Availability and limits
- Git worktrees are not themselves security sandboxes.
- Parallel task completion does not establish conflict-free integration or a live deployment.