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.

How to run several agents at once
- Create one git worktree per task. The Claude Code team's habit: 3 worktrees, each with a separate task. (recipe)
- Start each session in plan mode, and have a second session review the plan. (recipe)
- Give each agent a bounded prompt: stay in its worktree, say NEEDS INPUT when blocked, DONE when finished (starter below). (recipe)
- Add a notification hook so the session that's waiting finds you. (recipe)
- Keep permission prompts on. Don't run parallel agents with permissions skipped. (recipe)
- 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)
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.
The Claude Code team's habits: parallel worktrees, plan first, skills
Several Claude sessions at once, one task each. Kept apart by: a git worktree per session.
⏱ Setup: 15 min✋ A second session reviews each plan; you pick which fixes to applyRun several coding agents on a kanban board
One Claude Code or Codex agent per task. Kept apart by: the app makes a worktree per agent.
⏱ Setup: 20 min✋ You answer every permission prompt from the Needs Input columnGet notified when your coding agent needs you
You run the sessions; a hook flags whichever one is waiting. Kept apart by: the folder name in each notification.
⏱ Setup: 10 min✋ You approve the hook settings, then each promptSplit 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.
⏱ Setup: 20 min✋ You approve the graph before dispatch; merge after checks passDone-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.
⏱ Setup: 1 hour to set up✋ Critical changes wait for an independent review; you mergeInstall specialist subagents from a community library
Named specialist subagents you call inside one session. Kept apart by: each subagent file sets its own tools.
⏱ Setup: 10 min✋ You read each file and its permissions before installingFive Claude Code agents that run a YouTube channel
Five role subagents pass each piece along: pick, build, review, package. Kept apart by: a review queue file and a per-item lock.
⏱ Setup: Copy five files, then adapt the paths to your pipeline✋ You approve each piece and format before it goes publicRun 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.
⏱ Setup: He says he has worked by voice for a few months and iterated most on keeping the loop alive✋ The chief asks decisions out loud and parks unanswered ones; standing rules go into every worker specClaude Code fault-test loop found 55 Ceph bugs
A lead session runs the faults and forks diagnosis, recreate tests and fixes to subagents. Kept apart by: read-only diagnosis helpers, a worktree per fixer, one booked test cluster.
⏱ Setup: His first two long sessions were 87 hours of Claude Code work (one overnight, one over a weekend); later runs ran overnight✋ You approve the exact text of every PR and tracker; helpers never push or fileA 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.
⏱ Setup: About 18 months so far, at 60 to 70 hours a week, he says✋ He redirects and rejects weak work; only Opus 5.5 may code and Sonnet reviews blind$1.93 vs $4.11 a review via Haiku subagents
Opus plans and checks; every subagent runs on Haiku. Kept apart by: subagents inside one session, with a checker that reads which model ran each one.
⏱ Setup: Not stated as a setup time. On his 85-page docs check, about 6 minutes with Opus + Haiku and 7 with Opus alone✋ Opus judged the results in his tests, so measure cost and missed errors on your own workA Grok Bot front door to your live Claude Code sessions
A Grok Bot types each task into the right live session. Kept apart by: one herdr workspace per project, across 3 machines.
⏱ Setup: Not stated (his full guide: plan on a few sessions)✋ No merge or force push without approval; you review each PRNight shift: labeled GitHub bugs → reviewed draft PRs by morning
A Chief bot plus Triage, Builder, Reviewer and Release bots. Kept apart by: cloud agents in separate environments; one owner per issue.
⏱ Setup: Half a day to set up✋ Draft PRs only; you read the morning report and mergeGrok 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.
⏱ Setup: Not stated; he built it one seat at a time, starting with one job✋ Replies never count as his approval; packs change only by reviewed PR7 Claude Code routines that look after a solo app
Five scheduled routines each own an area and file issues; a fixer routine turns them into PRs. Kept apart by: a shared ops-state branch with a folder per area; routines never change production.
⏱ Setup: About 3 to 4 hours of his time in the week he measured, more than half of it on car-data questions✋ Code and security PRs wait for him; his /decide skill turns parked issues into one question
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.
The Claude Code team's habits: parallel worktrees, plan first, skills
The creator of Claude Code shared his team's habits: run 3–5 sessions in parallel worktrees, start complex work in plan mode, and turn anything you do daily into a skill.
Run several coding agents on a kanban board
Each agent gets its own git worktree and terminal; a board sorts them into Idle, Working and Needs Input so you only look at the ones blocked on you.
Get notified when your coding agent needs you
He had Claude Code configure itself so he gets a notification whenever it is waiting on input or a permission.
A lead agent splits the work
One agent plans or coordinates, hands bounded pieces to others and checks what comes back.
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.
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.
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.
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.
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.
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.
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.
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.
Bots hand out the tasks
A bot routes work to coding agents, often overnight, and reports back.
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.
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.
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.
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.
How to choose
- Start with two or three sessions. The Claude Code team runs 3 to 5, and the recipe warns that too many sessions overload your review capacity. (recipe)
- Give every agent its own worktree, and plan around shared files. Worktrees keep checkouts apart, but parallel tasks editing the same file still conflict, so split the work by files. (recipe)
- Make the waiting agent find you. A notification hook or a Needs Input column means you only open the session that's blocked, instead of scrolling through all of them. (recipe)
- Write the finish line first. A done-when list a program can check, plus a stop after two failed tries, keeps a worker from looping and keeps its report honest. (recipe)
- Decide what may merge without you. The done-when setup lets only routine, easy-to-revert changes merge after CI. The night shift opens draft PRs and blocks merges with branch protection, not just the prompt. (recipe)
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