Prompt & Done · WORKTRUNK

Run several Claude Code agents at once, each on its own copy of your repo

Worktrunk is a free, open-source CLI (MIT or Apache-2.0) by Maximilian Roos. One command creates a git worktree (a separate working folder on its own branch) and starts Claude Code in it. When the agent is done, one command merges it back into main.

Tested 7 Nov 2026 on macOS: Worktrunk 0.81.0, Claude Code 2.1.319. Three agents built three sections of one landing page in 61 seconds; three merges, zero conflicts.

1 Install

brew install worktrunk
wt config shell install   # optional: lets wt cd you into worktrees

Other installs (cargo, Windows): worktrunk.dev. You also need Claude Code, logged in with your own plan: every agent uses your usage.

2 One agent per task

From inside your repo, one line per task (each opens Claude Code in its own worktree; run them in separate terminal tabs):

wt switch -c hero -x claude -- 'Build the hero section'
wt switch -c pricing -x claude -- 'Build the pricing section'
wt switch -c reviews -x claude -- 'Build the reviews section'

Check them all: wt list shows every worktree, its branch and how many lines it changed.

What we ran (headless, all three in the background): wt switch -c hero --no-cd -y -x claude -- -p "…" --permission-mode acceptEdits &

3 Merge back

wt merge   # run inside each finished worktree

It commits, squashes, rebases onto main, fast-forwards main and removes the worktree and branch. Tip: give agents separate files or sections. Ours didn't overlap, so all three merges were clean; if two agents edit the same lines you resolve the conflict like any git rebase.

github.com/max-sixty/worktrunk · worktrunk.dev

Reel narration built with Fish Audio.