A CLI for Git worktree management, designed for parallel AI agent workflows
open sourceMIT OR Apache-2.0self-hostablefree
Worktrunk (wt) makes git worktrees as easy as branches: worktrees are addressed by branch name with paths from a template, and wt switch, wt list and wt remove replace multi-step git worktree commands. It adds hooks on create and merge, LLM commit messages, a one-command merge workflow, an interactive picker with CI status, PR checkout, and copy-on-write sharing of build caches like target/ and node_modules/ between worktrees.
Ways to install
Package managers
Problems it solves
- running several AI coding agents on the same repo and they overwrite each other's changes
- git worktree add needs the branch name typed three times
- create a separate checkout per branch and start Claude Code in it with one command
- cleaning up worktrees and their branches after merging is tedious
- new worktree has no node_modules or build cache and takes ages to set up
- see all my parallel branches with CI status in one list
- run setup scripts automatically whenever a new worktree is created
- check out a pull request into its own directory without disturbing my work
- work on multiple branches simultaneously without stashing
- give each git worktree its own dev server port and env file without setting them up by hand
Features
- branch-addressed worktrees
- hooks
- LLM commit messages
- merge workflow
- interactive picker
- CI status in list
- copy-on-write build cache sharing
- PR checkout
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what Worktrunk does.
- git twig Git worktrees for agents. More branches, less disk.
- GitButler Version control for your agents
- gtr (Git Worktree Runner) A portable Git worktree CLI for PR reviews, coding agents, and repeatable per-branch setup
- Jujutsu (jj) A Git-compatible VCS that is both simple and powerful
- CCManager Coding Agent Session Manager for Claude Code / Gemini CLI / Codex CLI / Cursor Agent / Copilot CLI / Cline CLI / OpenCode / Kimi CLI
