Skip to content

Workflows

Run agents in parallel

Run several Code tasks at once without letting them share a checkout, a branch, or an assumption.

  • 3 min read
  • 6 steps

Run agents in parallel ​

Use this when you have independent pieces of work in the same repository, or you want to explore two approaches without committing to either.

Parallelism is a throughput tool, not a review strategy. Every extra thread adds a diff you must read and a failure state you must understand.

Step 1: Split by ownership, not by activity ​

Two tasks can run in parallel when:

  • they touch different areas of the repository,
  • neither depends on the other's result,
  • and each has its own verification.

If they would edit the same files, serialize them. A merge conflict is the cheapest possible outcome of two writers in one checkout; a silently overwritten edit is the worst.

Step 2: Give each thread its own worktree ​

A managed worktree gives a Code thread its own branch and folder while sharing the repository's history. Create the task, choose New worktree on the chip under the composer, and confirm the branch before sending.

Do not run two Code threads as writers in the same checkout. Octant refuses some overlapping file restores for this reason, but it cannot make concurrent writers safe in general.

Step 3: Keep objectives independently reviewable ​

Each thread should be reviewable on its own:

  • one outcome,
  • one diff,
  • one set of checks,
  • one delivery decision.

If two threads must land together to make sense, they are one piece of work with two authors, and you are the integrator.

Step 4: Watch the fleet, not one thread ​

Use Running and the Code board to see what is executing, what waits on you, and what finished. The Needs you card and the Inbox collect approvals across Projects, so a blocked thread does not wait silently behind another tab.

⌘+⇧+J jumps to the next thread that needs you.

Step 5: Integrate deliberately ​

When the threads finish:

  1. Review each diff on its own.
  2. Merge or rebase each branch onto the current target.
  3. Re-run the checks after integration, not only before it.
  4. Resolve conflicts with the owner of the conflicting thread's intent in mind.

"The tests passed before the merge" is not evidence about the merged result.

Step 6: Know when not to parallelize ​

  • One task is already blocked on your review.
  • The work is exploratory and you do not yet know the shape.
  • The repository is in an unknown state.
  • You cannot describe how you will verify the combined result.

In those cases, one thread with a clear objective will finish sooner.

Get two independent reviews ​

To have two agents review the same thing without seeing each other's answers, use the bundled $review-in-parallel skill in a Chat thread.

  1. In the Chat composer, type $review-in-parallel followed by what to review, for example $review-in-parallel check this migration plan for data-loss risks. With nothing after it, the reviewers review the current conversation.
  2. Send. Octant does not post this as a message. It opens Confirm parallel review, which shows the instruction, the two reviewer threads with their models, and that every reviewer gets read-only access. No approvals, credentials or access pass to them.
  3. Choose Confirm fan-out to create the reviewers as independent Chat threads and start their reviews, or Cancel.

The source thread then shows the fan-out's status (Created, Queued, Partial, Rejected or Failed), how many of the two reviewers have reported, and a link to each reviewer's thread with its result. Read both reviews before you act on either: two agreeing reviews are still not proof.

Cheap parallelism first ​

Before creating more threads, consider:

  • Subagents for bounded reads or checks inside one thread, with narrowed authority.
  • Follow-ups that continue the same context instead of restarting it.
  • Handoffs that change the engine without changing the environment.
  • Routines for work that should repeat rather than run now.

Subagents and Git and worktrees own the detail.

Next ​

Octant documentation · local-first by design