Skip to content

Run compatible tasks in parallel

Use parallel when an area has at least two ready tasks that can proceed without stepping on each other. Two tasks modifying the same parser or generated file are usually better run sequentially even if neither depends on the other. For a single small change, use implement.

Codex, Claude Code, Pi, and capable Oh My Pi sessions support parallel task batches. OpenCode stays on sequential Implement because its foreground Task surface cannot return completions individually, and T3 orchestration is also sequential. See harness support for details.

Replace greeting-003 and greeting-004 with ready tasks from your queue:

Use zdev to run greeting-003 and greeting-004 in parallel in area greeting.
Stop after this batch. Keep the worktrees for inspection.
Use zdev to run greeting-003 and greeting-004 as one parallel batch
with at most two task slots. Keep the worktrees after the batch.

The agent checks whether the tasks can safely share interfaces, validation resources, and the destination checkout, then gives each admitted task its own source worktree. The default cap is four slots (bounded by harness capacity), though you can ask for fewer; parallel batches also draw model quota faster.

Implementation runs concurrently, while integration, independent review and verification, and commits still happen one task at a time on the destination branch so each accepted task lands as its own commit. If one task hits a local blocker, its worktree is preserved while unaffected tasks continue.

A one-off batch stops after the named tasks. To keep refilling slots across an entire area, ask for a loop with parallel batches explicitly. Removing finished worktrees also requires authorization, and unfinished or ambiguous worktrees are always kept.

The final report lists committed tasks separately from preserved worktrees and notes any recovery needed. See recovery, the workflow reference, and continuation for the surrounding rules.