worktrunk
Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
What is worktrunk?
Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Overview of worktrunk
What it is
Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows. It makes worktrees as easy as branches by addressing worktrees by branch name and computing paths from a configurable template.
Key features
- Core commands:
wt switch,wt list,wt merge,wt removefor creating, listing, merging, and cleaning up worktrees - Hooks: run commands on create, pre-merge, post-merge, etc.
- LLM commit messages: generate commit messages from diffs
- Merge workflow: squash, rebase, merge, clean up in one command
- Interactive picker: browse worktrees with streaming CI status, diff, log, PR and comment previews
- Share build caches: ten worktrees get
target/,node_modules/, etc. without building or copying them (on APFS, btrfs, and XFS) - PR checkout:
wt switch pr:123to jump straight to a PR's branch
Use cases
Managing multiple parallel AI agents (e.g., Claude Code, Codex) each with their own working directory, so they don't step on each other's changes. Also general Git worktree management for developers working on multiple features simultaneously.
Getting started
### Install via Homebrew (macOS & Linux)
brew install worktrunk && wt config shell install
### Or via Cargo
cargo install worktrunk && wt config shell install
### Create and switch to a new worktree
wt switch --create feature-auth
License and pricing
The license is not stated. The software is open source and free to use.
Based on the project's public README and repository metadata.