Recipes / Guides / Parallel coding agents

15 setups · worktrees, subagents and overnight bots

How to run multiple Claude Code agents in parallel: 15 real setups

Last updated · by Thomas, editor · How we verify

These are setups people run when one coding agent at a time is too slow: several Claude Code or Codex sessions side by side, a lead agent that splits the work into pieces, or a bot that hands tasks out overnight. The short version is in the steps below.

What they share: a person stays in the loop, approving plans, permission prompts or merges. Every recipe links to the post, repo or doc it came from.

Clip from Alex Finn's video: his Grok Bot Activity Dashboard, a 2D office where each bot has a desk, above stat cards and a weekly summary
Different agents, same problem: Alex Finn's Mission Control page shows what each of his Grok Bots did and what's waiting on him. See the recipe →

How to run several agents at once

  1. Create one git worktree per task. The Claude Code team's habit: 3 worktrees, each with a separate task. (recipe)
  2. Start each session in plan mode, and have a second session review the plan. (recipe)
  3. Give each agent a bounded prompt: stay in its worktree, say NEEDS INPUT when blocked, DONE when finished (starter below). (recipe)
  4. Add a notification hook so the session that's waiting finds you. (recipe)
  5. Keep permission prompts on. Don't run parallel agents with permissions skipped. (recipe)
  6. Review and merge one branch at a time, then remove its worktree. (recipe)

Starter prompt: one bounded task per worktree (our version, from the kanban recipe)

For each parallel task: 1. git worktree add ../wt-[BRANCH] -b [BRANCH] 2. Start the agent there with: "Work only inside this worktree on [TASK]. When you need a permission or a decision, stop and write NEEDS INPUT on its own line. When finished, write DONE plus a 3-line summary and the test command." 3. Track every worktree on a 3-column list: Idle / Working / Needs Input.

Step-by-step guide: run Claude Code agents in parallel with git worktrees →

Which setup fits how you work

How each setup splits the work, what keeps agents from colliding, and where you step in.

Details come from each recipe's source. Setup time is shown only where the recipe states it.

Sessions side by side

You run each session yourself, one task and one worktree each, and only open the one that needs you.

A lead agent splits the work

One agent plans or coordinates, hands bounded pieces to others and checks what comes back.

Claude CodeFull setup

Split a big task into a DAG of small subagents

A Claude Code plugin that breaks work into atomic tasks with dependencies and gives each subagent only the context it needs, in parallel worktrees.

20 minvia GitHub
Multi-agentFull setup

Done-when lists and a two-try stop rule

One lead agent (Claude Code or Codex) splits each task into bounded pieces for other models in separate worktrees, checks every report against a done-when list, and scales review to how hard a change is to undo.

1 hour to set upvia X
Claude CodeSkill

Install specialist subagents from a community library

A large curated collection (161+ when we checked) of Claude Code subagent definitions across 10 categories that you can drop into a project.

10 minvia GitHub
Claude CodeFull setup

Five Claude Code agents that run a YouTube channel

He runs a faceless YouTube channel with five Claude Code subagents: Scout picks scenes, Engineer builds, QA reviews without editing, Growth packages and uploads as private, and a PM keeps the log. Nothing goes public until he approves each piece.

Copy five files, then adapt the paths to your pipelinevia X
Claude CodeSkill

Run Claude Code by voice with a chief agent that delegates

A developer with ADHD talks to one "chief" Claude Code agent by voice, fully local. The chief doesn't write code: it hands each task to a worker Claude session with a written spec, announces when work lands, asks him decisions out loud, and parks unanswered questions on a "waiting on" list. A Stop hook keeps the voice loop from silently dropping back to text.

He says he has worked by voice for a few months and iterated most on keeping the loop alivevia Reddit
Claude CodeFull setup

Claude Code fault-test loop found 55 Ceph bugs

Alex Ainscow, who works on Ceph's erasure coding, let Claude Code run a loop on upstream Ceph: inject faults into a one-machine test cluster, catch what breaks, work out why, write a unit test that fails, fix it, rebuild and go again. Across his runs it found 55 real defects, 32 of them in code already on main, for about $840 of API time on the first two sessions.

His first two long sessions were 87 hours of Claude Code work (one overnight, one over a weekend); later runs ran overnightvia Ceph.io
Multi-agentFull setup

A solo Godot game built by Claude Code and Codex agents

A solo creator with a web-dev background, but no C++ or GDScript, has spent about 18 months on a cozy colony adventure sim in Godot without writing the code himself. A lane-lead agent coordinates up to 15 Claude and Codex agents in named roles; every task runs through a Linear ticket; only Opus 5.5 writes code and Sonnet reviews blind; and agents run headless, smoke and visual tests, including play-testing the game.

About 18 months so far, at 60 to 70 hours a week, he saysvia Reddit
$1.93 vs $4.11 a review via Haiku subagents
u/BeginningSir7334

On an 85-page docs check of the buildbot codebase (about 100k lines), Opus planning with Haiku subagents found 58 and 63 of 92 real errors in two runs, against 36 and 38 for Opus alone. It cost $1.93 a run against $4.11. The same post says cheaper tokens didn't mean cheaper tasks everywhere: delegating didn't pay on a small codebase.

SavingsSee how →

Bots hand out the tasks

A bot routes work to coding agents, often overnight, and reports back.

Grok BotFull setup

A Grok Bot front door to your live Claude Code sessions

One Grok Bot's only job is passing tasks to his Claude Code agent. It finds the right live session in herdr on one of his 3 machines, types the task in, and reports back with the machine, repo, branch and PR link.

Not stated (his full guide: plan on a few sessions)via X
Multi-agentFull setup

Night shift: labeled GitHub bugs → reviewed draft PRs by morning

A Chief bot and four specialists turn labeled GitHub bugs into reproduced, fixed, independently reviewed draft PRs overnight, with a morning report that separates done from attempted.

Half a day to set upvia X
Grok BotFull setup

Grok Bot agent team run from GitHub job packs

Byron Darlison runs his coaching company with 14 Grok Bot agents. Each one's job, rules, tools, handoffs and tests live in a pack folder in GitHub, so Grok Bot, Claude Code, Codex or Cursor can read the same files. He owns 3 of 14 functions; agents own the other 11.

Not stated; he built it one seat at a time, starting with one jobvia Blog
Claude CodeRoutine set

7 Claude Code routines that look after a solo app

Julien Renaux builds EVPick, a free assistant for choosing an electric car, on his own. Seven scheduled Claude Code routines now watch its search traffic, security, bugs and car data, turn problems into pull requests and check a week later that each fix held. In the week he measured, 46% of their PRs merged on automated checks alone; the rest took him three to four hours.

About 3 to 4 hours of his time in the week he measured, more than half of it on car-data questionsvia X

How to choose

Common questions

How do I manage multiple coding agents?

Track each one's state. Agent Navigator sorts agents into Idle, Working and Needs Input, and a notification hook names the folder that's waiting. Check Needs Input first, approve or redirect, then move on.

Can you run multiple Claude Code agents at once?

Yes. The setups here run each session in its own git worktree so agents don't edit the same files. The Claude Code team's habit is to run several sessions in parallel worktrees, each on a separate task, and start complex work in plan mode.

How many parallel agents should I run?

The Claude Code team runs 3 to 5 sessions. The limit people hit is review, not the agents: the same recipe lists too many sessions overloading your review capacity, and shared dev databases still cause interference between worktrees.

Subagents or separate sessions?

Subagents work inside one session: Orchestra gives each one only its objective, spec sections and files to touch, and the community library installs specialists you call by name. Separate sessions in worktrees suit independent tasks you review one at a time. Some setups here use both.

Does this work with Codex too?

Yes. Agent Navigator supports Claude Code and Codex CLI, and the done-when setup leads from either one and hands pieces to other models in separate worktrees.

Should parallel agents merge their own work?

Mostly not here. The night shift opens draft PRs and blocks merges with branch protection, and the front door can't merge or force push without approval. The done-when setup lets routine, easy-to-revert changes merge once CI passes, while critical ones wait for an independent review and a human merge.

Get the next money recipe. Free.

New recipes every week, plus the top 10 agent setups pack. One email, no spam.

Unsubscribe anytime. Privacy

More guides: Make money with AI agents · AI voice agent business · AI agent agency ideas · Claude Code use cases · Grok Bot use cases · Claude Code vs Codex · AI agents for small business · AI email agents · AI code review agents · AI agents that save you money · AI refund agents · Autonomous agents that made money · AI agents for content creators · AI research agents