Skip to content
aicoolies logo
Worktrunk logo

Worktrunk

Git worktree CLI for running coding agents in parallel

Worktrunk (wt) is an open-source Rust CLI that makes Git worktrees as easy to use as branches, so several coding agents can work in parallel without touching each other's files. One command creates a worktree and starts an agent such as Claude Code in it, and others list, merge and clean up worktrees with lifecycle hooks.

About Worktrunk

Worktrunk addresses worktrees by branch name and computes their paths from a template, replacing multi-step git worktree commands with wt switch, wt list, wt merge and wt remove. wt switch -c -x claude feature-a creates a branch and worktree and launches Claude Code in it. Hooks run at points such as pre-start, post-start, pre-merge and pre-remove, which teams use to copy environment files, install dependencies or give each worktree its own dev-server port with the hash_port filter. It can share build caches like target/ and node_modules/ between worktrees on APFS, btrfs and XFS, show CI status per branch, check out pull requests with wt switch pr:123 and generate commit messages with an LLM.

Worktrunk ships plugins for Claude Code, Codex, OpenCode, Pi, oh-my-pi and Gemini CLI; with Claude Code and OpenCode 2 it can take over agent-created worktrees so they follow the same naming and hooks. Commands from project hooks need approval on first run. It isolates files, not merges: conflicts and review still happen when branches come back together.

Pricing & Platform Specs

Pricing Summary

Free and open source, dual-licensed MIT or Apache-2.0.

Supported Platforms

Rust CLI for Git; agent plugins for Claude Code, Codex, OpenCode, Pi, oh-my-pi and Gemini CLI

Explore categories, tags & use cases

Community experience

Sources & verification

Sources checked
Content verified

Verification dates are editorial checks. Routine CMS saves and automatic updatedAt timestamps do not advance them.

FAQ

What is Worktrunk?

Worktrunk (wt) is an open-source Rust CLI that makes Git worktrees as easy to use as branches, so several coding agents can work in parallel without touching each other's files. One command creates a worktree and starts an agent such as Claude Code in it, and others list, merge and clean up worktrees with lifecycle hooks.

Is Worktrunk free?

Yes — Worktrunk is open source and free to use. Free and open source, dual-licensed MIT or Apache-2.0.

Is Worktrunk open source?

Yes — Worktrunk is open source.

Is Worktrunk still maintained?

Yes — Worktrunk is active. Its listing was last verified on November 3, 2026.