Worktrunk is an open-source command-line tool that simplifies Git worktree management, especially for developers running multiple AI coding resources at the same time. Built by Max Sixty, it is a convenient interface for creating, modifying, registering, joining, and deleting active worktrees without having to use lengthy Git commands.
Git work trees allow multiple branches from the same repository to have separate working directories. This is especially useful when agents like Claude Code and OpenAI Codex are run in parallel, as each agent can work independently without affecting the other agent’s files.
Worktrunk builds on this functionality with additional automation, collaborative navigation, and development workflow features.
Features
Simplified Git Worktree Management
Worktrunk provides three core commands for everyday worktree operations:
wt switchswitches between existing worktrees or creates new ones.wt listdisplays worktrees with branch status and change information.wt removeremoves worktrees and their associated branches.
For example, creating a new feature branch and worktree requires only:
wt switch --create feature-authWorktrunk automatically creates the branch, prepares its working directory, and switches the shell into it.
This eliminates much of the repetitive work involved in managing Git worktrees manually.
Parallel AI Coding Agents
Worktrunk is particularly useful for developers working with multiple AI coding agents.
It can create a worktree and immediately launch an agent using the -x option:
wt switch -x claude --create feature-a -- "Implement user authentication"Developers can repeat this process for different tasks, giving each agent its own branch and working directory.
This approach works with different command-line coding agents, including Claude Code and Codex. Worktrunk does not provide its own AI model or require users to replace their existing coding tools.
Automated Development Hooks
Worktrunk includes configurable hooks that execute commands during different stages of the worktree lifecycle.
Examples include:
Pre-start hooks for installing dependencies.
Post-start hooks for preparing development environments.
Pre-merge hooks for running tests and validation.
Post-merge hooks for cleaning up temporary resources.
Hooks can automate repetitive setup tasks whenever a new worktree is created.
For projects using Node.js, developers can configure dependency installation automatically. Other workflows can prepare databases, environment files, development servers, or additional resources.
Interactive Worktree Picker
Worktrunk provides an interactive interface for navigating existing worktrees.
Instead of remembering branch names and directory paths, developers can browse available worktrees and inspect their status.
The picker can display additional information, including Git diffs, commit history, pull requests, comments, and CI status.
This becomes increasingly useful when managing many parallel development tasks.
Shared Build Caches
One challenge with Git worktrees is that each working directory can require its own dependency installation and build output.
Worktrunk addresses this through copy-on-write build cache sharing.
It supports sharing directories such as node_modules/ and Rust's target/ across worktrees on supported filesystems, including APFS, Btrfs, and XFS.
This can significantly reduce redundant disk usage and avoid repeatedly rebuilding dependencies.
The feature depends on filesystem support and appropriate configuration. It should not be assumed to work identically on every operating system or storage configuration.
Git Merge and Cleanup
Worktrunk provides a simplified merge workflow that can handle committing, rebasing, merging, and cleaning up a completed worktree.
For example:
wt merge mainThe command can prepare changes, generate a commit message when configured, merge the branch into the target, and remove the completed worktree.
This reduces the number of manual Git operations required to finish a development task.
Pull Request Integration
Worktrunk supports switching directly to pull request branches.
For example:
wt switch pr:123It can also display CI status and pull request information through its listing and interactive navigation features.
This makes it easier to move between local development branches and remotely hosted contributions.
Custom Commands and Configuration
Worktrunk supports aliases, custom commands, configurable worktree paths, and per-branch variables.
Developers can use these features to build project-specific workflows without maintaining separate shell scripts for every operation.
Its configuration system also supports LLM-generated commit messages, allowing developers to generate commit descriptions from their changes when an appropriate AI tool is configured.
Download Worktrunk v0.81.0 - Software Mirrors |
|---|
Worktrunk v0.81.0 for Windows |
Worktrunk v0.81.0 for macOS |
Worktrunk v0.81.0 for Linux |
Others Download related to Worktrunk v0.81.0worktrunk-installer.sh | 52.25 kB |
Worktrunk v0.81.0 Source Code |
Worktrunk v0.81.0 Release Notes:Release NotesImproved
Fixed
Documentation
Internal
Install worktrunk 0.81.0Install prebuilt binaries via shell scriptInstall prebuilt binaries via powershell scriptInstall prebuilt binaries via HomebrewDownload worktrunk 0.81.0
Install via CargoInstall via Winget (Windows)Install via AUR (Arch Linux) |
Performance and Compatibility
Worktrunk is written in Rust and distributed as a native command-line application. It does not require a background server or introduce an additional AI runtime.
Its main workload involves Git operations, filesystem management, shell integration, and optional workflow automation. Consequently, its performance depends more on repository size, filesystem behavior, and configured hooks than on AI model processing.
It supports macOS, Linux, and Windows. Installation is available through Homebrew, Cargo, Winget, and several Linux package managers.
Shell integration is available for supported shells, allowing commands such as wt switch to change the current directory directly.
Windows users should note that wt can conflict with the Windows Terminal command alias. The Winget installation provides git-wt as an alternative.
System Requirements
Worktrunk requires:
Git installed and accessible through the system PATH.
A supported operating system: Windows, macOS, or Linux.
A compatible shell for directory-switching integration.
A Git repository for worktree operations.
Optional requirements depend on the features being used:
Cargo and Rust for building from source.
jqfor certain integrations and scripts.A compatible AI coding agent for automated agent workflows.
A supported filesystem for copy-on-write cache sharing.
Pros and Cons
Pros
Simplifies Git worktree creation and management.
Designed for parallel AI coding workflows.
Supports Claude Code and other command-line agents.
Automates development tasks through hooks.
Provides interactive worktree navigation.
Supports shared build caches.
Includes merge, cleanup, and pull request workflows.
Written in Rust and open-source.
Supports Windows, macOS, and Linux.
Cons
Requires familiarity with Git worktrees to use its advanced features effectively.
Shell integration requires additional configuration.
Copy-on-write cache sharing depends on filesystem compatibility.
Some advanced features require external tools.
Does not provide AI models or coding agents itself.
How to Install
The easiest installation method on macOS and Linux is Homebrew:
brew install worktrunk
wt config shell installFor installation through Cargo:
cargo install worktrunk
wt config shell installOn Windows, use Winget:
winget install max-sixty.worktrunk
git-wt config shell installArch Linux users can install it through Pacman:
sudo pacman -S worktrunk
wt config shell installAfter installation, restart the terminal or reload the shell configuration.
Verify the installation with:
wt --help
wt listTo create a new worktree:
wt switch --create feature-testThe official documentation provides additional configuration examples for hooks, aliases, build caches, and parallel AI agent workflows.
Final Verdict
Worktrunk is an excellent utility for developers who frequently work with multiple Git branches, especially those using AI coding agents.
Its biggest advantage is that it makes Git worktrees considerably easier to manage. Features such as automated hooks, shared build caches, interactive navigation, and integrated merge workflows turn what would otherwise be repetitive Git operations into a more organized development process.
It is not an AI coding assistant itself, but it complements tools such as Claude Code and Codex by providing isolated environments for parallel development.
For developers who regularly run multiple coding agents or maintain several features simultaneously, Worktrunk is a practical addition to their development toolkit.
Sources
Developer:
Maximilian Roos
Operating System:
Windows / macOS / Linux
Date Added:
2026-11-03T14:37:02.000Z




