What it is
Worktrunk is a command line tool for managing git worktrees, written in Rust. The repository is at github.com/max-sixty/worktrunk and the documentation lives at worktrunk.dev. According to its README it was released at the start of the year and by October 2026 had become the most popular git worktree manager, with roughly 9,200 stars and dual MIT or Apache-2.0 licensing. The problem it tackles is specific. Coding agents such as Claude Code and Codex can now work unsupervised for long stretches, so one person managing five, ten or more in parallel is realistic, and git’s built-in worktree feature gives each agent its own directory so they do not trample each other’s changes. But the native worktree experience is clunky: starting a new one means typing the branch name three times, as in git worktree add -b feat ../repo.feat followed by a cd. Worktrunk compresses that into three core commands. wt switch moves between worktrees, with -c to create and -x to launch an agent such as claude on the way in. wt remove cleans up the directory and the branch in one step. wt list shows every worktree with its status. Worktrees are addressed by branch name, paths are computed from a configurable template, and commands accept either a branch or the path of a worktree. On top of that sits a set of features aimed at running many changes at once: hooks that run commands on create, pre-merge and post-merge; LLM commit messages generated from the diff; wt merge, which squashes, rebases, merges and cleans up in a single command; an interactive picker with streaming CI status plus diff, log, PR and comment previews; shared build caches so ten worktrees get target and node_modules without building or copying them, on APFS, btrfs and XFS; wt list —full with CI status and AI generated summaries per branch; wt switch pr:123 to jump straight to a pull request’s branch; and aliases plus per-branch variables, where a hash_port template filter gives each worktree its own port so each can run a dev server. Installation is available through Homebrew, Cargo, Winget, pacman and conda-forge.
Highlights
- Three core commands, wt switch, wt remove and wt list, make worktrees as simple as branches
- Worktrees are addressed by branch name with paths from a configurable template, so no more typing the branch three times
- wt switch -c -x claude creates a directory and launches the coding agent in one command
- Shared build caches: ten worktrees get target and node_modules directly, on APFS, btrfs and XFS
- wt merge squashes, rebases, merges and cleans up in one step, with LLM generated commit messages
- wt list shows status, CI state and AI summaries, so you can watch several parallel changes at once
- Hooks run scripts automatically on create, pre-merge and post-merge events
- Written in Rust and installable via Homebrew, Cargo, Winget, pacman and conda-forge, with low startup cost
How to use
On macOS and Linux, run brew install worktrunk followed by wt config shell install. On Windows, use winget install max-sixty.worktrunk; because wt collides with Windows Terminal, the binary is additionally installed as git-wt. Cargo, pacman on Arch and conda-forge are also supported. After installing, always run wt config shell install first, since without shell integration the commands cannot change directories for you. Day to day: wt switch —create branch-name makes a directory and moves you into it, then let an agent work there. Repeat for as many parallel tasks as you want and watch everything with wt list. To wrap up, either follow the PR path with wt step commit, open a PR and run wt remove once it merges, or take the local path with wt merge main, which squashes, rebases, merges and cleans up in one go. Before scaling to several parallel agents, configure hooks and shared build caches, since those two save the most time.
License
Released under MIT OR Apache-2.0. Read the terms before commercial use or redistribution, especially if you plan to offer it as a service.