linkgo
Worktrunk

Worktrunk

AI

A Rust CLI that makes git worktrees as easy as branches, built for running several AI coding agents in parallel without collisions.

-(0 Reviews)
Free Available
Starting from Free

About Worktrunk

Worktrunk is a command-line tool for git worktree management aimed at developers who run multiple AI coding agents at once. Agents such as Claude Code and Codex can now work unsupervised long enough that five to ten can run in parallel, and git's native worktree feature gives each one its own directory so they do not overwrite each other — but the built-in UX is clunky, requiring a branch name typed three times just to start. Worktrunk addresses worktrees by branch name and computes paths from a configurable template, collapsing create, switch, and cleanup into three core commands. Around that core it adds workflow automation: lifecycle hooks, LLM-generated commit messages from diffs, a one-command merge workflow, an interactive picker with streaming CI status and diff previews, and per-worktree dev server ports. Written in Rust and distributed through Homebrew, Cargo, Winget, Arch, and conda-forge, it is dual-licensed MIT OR Apache-2.0.

Key Features

Branch-Addressed Worktrees: wt switch, wt remove, and wt list refer to worktrees by branch name with paths computed from a configurable template, replacing multi-step git worktree incantations.
Agent Launch in One Command: wt switch -c -x claude <branch> creates the worktree, enters it, and starts the agent in a single invocation.
Lifecycle Hooks: Run commands automatically on create, pre-merge, and post-merge to automate setup and teardown for every new worktree.
LLM Commit Messages: Generates commit messages from the diff so parallel agent branches stay legible without hand-writing every message.
One-Command Merge Workflow: Squash, rebase, merge, and clean up the worktree and branch in a single step rather than a sequence of git commands.
Interactive Picker: Browse worktrees with streaming CI status alongside diff, log, PR, and comment previews before switching.
Shared Build Caches: wt step copy-ignored gives ten worktrees their own target/ and node_modules/ without rebuilding or copying, using reflinks on APFS, btrfs, and XFS.
Per-Worktree Dev Servers: A hash-port template filter assigns each worktree a unique port so parallel dev servers do not conflict.

Use Cases

Parallel Agent Runs: Give each of five to ten concurrently running AI coding agents its own worktree so their edits never collide.
Fast Branch Context Switching: Jump between in-flight changes by branch name instead of navigating sibling directories by path.
Pull Request Review: wt switch pr:123 checks out a pull request's branch directly for local inspection or testing.
Monorepo Iteration: Share heavy build artifacts across many worktrees so each new branch is usable immediately instead of after a full rebuild.
Automated Branch Setup: Use create hooks to install dependencies, copy env files, or start services whenever a worktree is made.
Multi-Branch Status Review: wt list --full shows CI status and AI-generated summaries for every active branch in one view.

Frequently asked questions about Worktrunk

What is Worktrunk?

A Rust CLI that makes git worktrees as easy as branches, built for running several AI coding agents in parallel without collisions.

How does Worktrunk work?

Worktrunk works by combining Branch-Addressed Worktrees: wt switch, wt remove, and wt list refer to worktrees by branch name with paths computed from a configurable template, replacing multi-step git worktree incantations., Agent Launch in One Command: wt switch -c -x claude creates the worktree, enters it, and starts the agent in a single invocation., Lifecycle Hooks: Run commands automatically on create, pre-merge, and post-merge to automate setup and teardown for every new worktree., LLM Commit Messages: Generates commit messages from the diff so parallel agent branches stay legible without hand-writing every message., One-Command Merge Workflow: Squash, rebase, merge, and clean up the worktree and branch in a single step rather than a sequence of git commands. to help users with Parallel Agent Runs: Give each of five to ten concurrently running AI coding agents its own worktree so their edits never collide., Fast Branch Context Switching: Jump between in-flight changes by branch name instead of navigating sibling directories by path., Pull Request Review: wt switch pr:123 checks out a pull request's branch directly for local inspection or testing., Monorepo Iteration: Share heavy build artifacts across many worktrees so each new branch is usable immediately instead of after a full rebuild., Automated Branch Setup: Use create hooks to install dependencies, copy env files, or start services whenever a worktree is made..

What are the main features of Worktrunk?

Key features include Branch-Addressed Worktrees: wt switch, wt remove, and wt list refer to worktrees by branch name with paths computed from a configurable template, replacing multi-step git worktree incantations., Agent Launch in One Command: wt switch -c -x claude creates the worktree, enters it, and starts the agent in a single invocation., Lifecycle Hooks: Run commands automatically on create, pre-merge, and post-merge to automate setup and teardown for every new worktree., LLM Commit Messages: Generates commit messages from the diff so parallel agent branches stay legible without hand-writing every message., One-Command Merge Workflow: Squash, rebase, merge, and clean up the worktree and branch in a single step rather than a sequence of git commands..

Who is Worktrunk for?

Worktrunk is useful for anyone interested in Parallel Agent Runs: Give each of five to ten concurrently running AI coding agents its own worktree so their edits never collide., Fast Branch Context Switching: Jump between in-flight changes by branch name instead of navigating sibling directories by path., Pull Request Review: wt switch pr:123 checks out a pull request's branch directly for local inspection or testing., Monorepo Iteration: Share heavy build artifacts across many worktrees so each new branch is usable immediately instead of after a full rebuild., Automated Branch Setup: Use create hooks to install dependencies, copy env files, or start services whenever a worktree is made..

How much does Worktrunk cost?

Worktrunk is free to use.

How do I get started with Worktrunk?

Visit https://github.com/max-sixty/worktrunk to sign up and explore Worktrunk.

Explore more AI Ai Tools tools

Browse all Ai Tools tools →

Browse by use case: Automation & Productivity

Compare Worktrunk: vs Humanizer · vs Mise · vs BiBimba · vs VoiceCap