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 remove for 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:123 to 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.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/max-sixtyworktrunk.svg)](https://yunodb.com/tools/max-sixtyworktrunk?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/max-sixtyworktrunk?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/max-sixtyworktrunk.svg" alt="Featured on YunoDB" height="20"></a>