worktrunk is a command-line tool that makes git worktrees as easy to use as branches, with three core commands. It enables running multiple AI agents in parallel, each in its own worktree, without them conflicting.
Project overview
By addressing worktrees by branch name and computing paths from a configurable template, it removes the friction of git's native worktree UX and supports launching agents such as claude per worktree via a single flag.
Project type
AI Coding · Workflow
Use cases
Coding & Development · Automation
Deployment
Refer to project documentation
License
Apache-2.0
Best for
Developers who use the command line and want to run multiple AI agents in parallel on separate worktrees without conflicts.
Key capabilities
The -x flag runs a command like claude after switching, enabling multiple parallel agents each in its own worktree.
Hooks run commands on create, pre-merge, post-merge and similar events to automate local workflows.
Getting started
Install with brew install worktrunk, run wt config shell install to set up the shell integration, then create and switch with wt switch --create feature-auth.
Evidence and sources
GitHub project description: Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
README: AI agents like Claude Code and Codex can handle longer tasks without supervision, such that it's possible to manage 5-10+ in parallel.
README: But the git worktree UX is clunky. Even a task as small as starting a new worktree requires typing the branch name three times
README: Worktrees are addressed by branch name; paths are computed from a configurable template.
README: $ wt switch --create feature-auth ✓ Created branch feature-auth from main and worktree @ ~/repo.feature-auth