What the source did
- Runs several Claude sessions at once, each in its own worktree.
- Has one Claude write a plan and a second review it like a staff engineer.
- Turns repeated work into slash commands, such as a /techdebt sweep at the end of a session.
“Spin up 3–5 git worktrees at once”— Boris Cherny (@bcherny), X
Summary written by Agent Cookbook from the original post. See the original for the full context. How we source recipes
Our notes
- What it takes
- Claude Code, git worktrees and a few saved slash commands.
- Where it breaks
- More sessions than you can review, and worktrees sharing one dev database.
- Human checkpoint
- Commands propose changes and you pick which to apply.
- Tools involved
- Claude Code, git worktrees
✓ Verified Source link checked and still live. Notes by Thomas, editor. How we verify
Copy the prompt
Ours Our version of the /techdebt command the team described. Boris didn't publish the command itself. Fill in the [BRACKETS].
Approval rule
Set it up
- Create 3 worktrees and give each a separate task.
- Start each in plan mode; have a second session review the plan.
- Save the command above and run it before each PR.
Common failures
- Too many sessions overloads your review capacity.
- Shared dev databases cause interference between worktrees.
Variations
- Keep a read-only analysis worktree.
- Add a command that gathers recent Slack, Drive and GitHub context.
Get the 10 best agent setups. Free.
Plus new recipes every week. One email, no spam.
Unsubscribe anytime. Privacy