Worktrunk: Streamlining Git Worktree Management for AI Agent Workflows
This repository profile is provided by osrepos.com, an open source repository discovery platform.

Summary
Worktrunk is a powerful CLI tool built in Rust, designed to simplify Git worktree management. It's particularly optimized for parallel AI agent workflows, making it easy to handle multiple development branches simultaneously. By abstracting away the complexities of native Git worktrees, Worktrunk enhances developer productivity with intuitive commands and automation features.
Repository Information
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Introduction
Worktrunk is a powerful command-line interface (CLI) tool, meticulously crafted in Rust, designed to revolutionize how developers manage Git worktrees. It has quickly become a popular Git worktree manager, particularly optimized for parallel AI agent workflows, such as Claude Code and Codex, making it easy to handle multiple development branches simultaneously. Worktrunk addresses the inherent complexities and clunky user experience of native Git worktrees, offering a robust solution for modern development practices.
Why Use Worktrunk and Key Benefits
Native Git worktrees, while powerful, can be cumbersome, especially when dealing with multiple parallel tasks or AI agent-driven development. Worktrunk simplifies this by providing a suite of intuitive commands and advanced features that transform worktree management into a seamless experience.
Key benefits and features include:
- Simplified Core Commands: Worktrunk makes common worktree tasks effortless. Commands like
wt switch,wt create,wt remove, andwt listabstract away the verbose native Git commands, making worktrees as easy to handle as branches.
Start with the core commands:
Core commands:
- Switch worktrees:
- Worktrunk:
wt switch feat - Plain git:
cd ../repo.feat
- Worktrunk:
- Create + start Claude:
- Worktrunk:
wt switch -c -x claude feat - Plain git:
git worktree add -b feat ../repo.feat && \ cd ../repo.feat && \ claude
- Worktrunk:
- Clean up:
- Worktrunk:
wt remove - Plain git:
cd ../repo && \ git worktree remove ../repo.feat && \ git branch -d feat
- Worktrunk:
- List with status:
- Worktrunk:
wt list - Plain git:
git worktree list(paths only)
- Worktrunk:
- Workflow Automation: Expand into the more advanced commands as needed.
Workflow automation features:
- 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 live diff and log previews.
- Share build caches - ten worktrees get
target/,node_modules/, etc without building or copying them (on APFS, btrfs, and XFS). wt list --full- CI status and AI-generated summaries per branch.- PR checkout -
wt switch pr:123to jump straight to a PR's branch. - Dev server per worktree -
hash_porttemplate filter gives each worktree a unique port. - Aliases & per-branch variables - custom
wt <name>commands and branch-scoped state for hook templates. - ...and lots more.
Worktrunk is built to empower developers working with parallel AI agents, ensuring that managing multiple isolated development environments is no longer a bottleneck but a catalyst for productivity.
Installation
Worktrunk is easy to install across various platforms. Shell integration is recommended to allow commands to change directories.
Homebrew (macOS & Linux):
brew install worktrunk && wt config shell install
Cargo:
cargo install worktrunk && wt config shell install
Windows:
wt defaults to Windows Terminal's command, so Winget additionally installs Worktrunk as git-wt to avoid the conflict:
winget install max-sixty.worktrunk
git-wt config shell install
Alternatively, disable Windows Terminal's alias (Settings ? Apps ? Advanced app settings ? App execution aliases ? "Terminal"/"Terminal Preview") to use wt directly.
Arch Linux:
sudo pacman -S worktrunk && wt config shell install
Conda / Pixi (community-maintained feedstock):
conda install -c conda-forge worktrunk && wt config shell install
Or with Pixi: pixi global install worktrunk && wt config shell install.
Examples
Worktrunk simplifies common Git worktree operations. Here's a quick start guide:
Create a worktree for a new feature:
$ wt switch --create feature-auth
? Created branch feature-auth from main and worktree @ ~/repo.feature-auth
This command creates a new branch and worktree, then switches to it. After doing your work, you can check all worktrees with wt list:
$ wt list
Branch Status HEAD± main? main…± Remote? Commit Age Message
@ feature-auth + ? +27 -8 ?1 +31 4bc72dc 2h Add authenticati…
^ main ^? ?1 0e631ad 1d Initial commit
? Showing 2 worktrees, 1 with changes, 1 ahead, hidden: Path
The @ marks the current worktree. + means staged changes, ?1 means 1 commit ahead of main, ? means unpushed commits.
When done, you have two primary workflows:
PR workflow - commit, push, open a PR, merge via GitHub/GitLab, then clean up:
wt step commit # commit staged changes
gh pr create # or glab mr create
wt remove # after PR is merged
Local merge - squash, rebase onto main, fast-forward merge, clean up:
$ wt merge main
? Generating commit message and committing changes... (2 files, +53, no squashing needed)
Add authentication module
? Committed changes @ a1b2c3d
? Merging 1 commit to main @ a1b2c3d (no rebase needed)
* a1b2c3d Add authentication module
auth.rs | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
lib.rs | 2 ++
2 files changed, 53 insertions(+)
? Merged to main (1 commit, 2 files, +53)
? Removing feature-auth worktree & branch in background (same commit as main, _)
? Switched to worktree for main @ ~/repo
For parallel agents, create multiple worktrees and launch an agent in each:
wt switch -x claude -c feature-a -- 'Add user authentication'
wt switch -x claude -c feature-b -- 'Fix the pagination bug'
wt switch -x claude -c feature-c -- 'Write tests for the API'
The -x flag runs a command after switching; arguments after -- are passed to it. Configure post-start hooks to automate setup (install dependencies, start development servers).
Links
Explore Worktrunk further with these resources:
- Official Documentation: worktrunk.dev
- GitHub Repository: max-sixty/worktrunk
- Further Reading:
- Contribute:
- Star the Worktrunk repository on GitHub.
- Open an issue for feedback, feature requests, or to report any frictions.
- Share Worktrunk on X, Reddit, or LinkedIn.
Related repositories
Similar repositories that may be relevant next.

vibe-kanban-local: A Self-Contained Kanban for AI Coding Agents
September 8, 2026
vibe-kanban-local is a robust, local-only fork of the original BloopAI/vibe-kanban project, maintained after its upstream sunset. It provides a self-contained, single-user kanban board, allowing developers to integrate over ten different AI coding agents directly into their workflow without any cloud dependencies or logins. This tool is ideal for enhancing productivity with AI assistance in a private, offline environment.

Ralph Orchestrator, An Advanced Framework for Autonomous AI Agent Orchestration
September 6, 2026
Ralph Orchestrator is a robust, Rust-based framework designed for autonomous AI agent orchestration. It implements the innovative "Ralph Wiggum technique," a methodology focused on continuous iteration to ensure AI agents complete complex tasks effectively. This powerful tool supports multiple AI backends and offers features like a "hat system" for specialized personas and human-in-the-loop interaction via Telegram.

AgentFS: The Filesystem Designed for AI Agents and Their State Management
September 5, 2026
AgentFS is an innovative filesystem specifically engineered for AI agents, providing robust storage abstractions. It leverages SQLite to offer auditability, reproducibility, and portability for agent states, tool calls, and file operations. This solution simplifies debugging, analysis, and deployment of AI agents by encapsulating their entire runtime into a single, queryable database file.

ADK-Rust: Build AI Agents in Rust with a Powerful Development Kit
September 1, 2026
ADK-Rust is a robust Agent Development Kit (ADK) for building AI agents in Rust. It offers a flexible framework with modular components for models, tools, memory, and real-time voice capabilities. Designed to be model-agnostic and deployment-agnostic, ADK-Rust empowers developers to create powerful and efficient AI agents.
Source repository
Open the original repository on GitHub.