Worktrunk is a CLI for Git worktree management, designed for parallel AI agent
workflows.
Worktrunk’s three core commands make worktrees as easy as branches.
Plus, Worktrunk has a bunch of quality-of-life features to simplify working
with many parallel changes, including hooks to automate local workflows &
copy-on-write build caches.
AI agents like Claude Code and Codex can handle longer tasks without
supervision, such that it’s possible to manage 5-10+ in parallel. Git’s native
worktree feature gives each agent its own working directory, so they don’t step
on each other’s changes.
But the git worktree UX is clunky. Even a task as small as starting a new
worktree requires typing the branch name three times: git worktree add -b feat ../repo.feat, then cd ../repo.feat.
Worktrees are addressed by branch name; paths are computed from a configurable template. Commands that take a branch also accept the path of the worktree it is checked out in.
Start with the core commands
Core commands:
Task
Worktrunk
Plain git
Switch worktrees
wtswitchfeat
cd../repo.feat
Create + start Claude
wtswitch-c-xclaudefeat
gitworktreeadd-bfeat../repo.feat && \
cd../repo.feat && \
claude
◎Removing feature-auth worktree & branch in background (same commit as main,_)
○ Switched to worktree for main @ ~/repo
For parallel agents, create multiple worktrees and launch an agent in each:
wtswitch-xclaude-cfeature-a--'Add user authentication'
wtswitch-xclaude-cfeature-b--'Fix the pagination bug'
wtswitch-xclaude-cfeature-c--'Write tests for the API'
The -x flag runs a command after switching; arguments after -- are passed to it. Configure post-start hooks to automate setup (install deps, start dev servers).
Run wt --help or wt <command> --help for quick CLI reference
You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.