Skip to content
BuildLadder Blog

Worktrunk: The Git Worktree CLI for Parallel AI Agents, Trending on GitHub

max-sixty/worktrunk is #2 on BuildLadder's weekly trending list (+2,292 ★). What it does, how to install it, and how it compares with gwq and Conductor.

BuildLadder Editorial7 min readUpdated Nov 18, 2026

Paste this article into your AI assistant and ask it to walk you through it.

On this page
A model tree supports three separate robot workbenches on a shared trunk.
Illustration created with AI for BuildLadder.

Worktrunk is a command-line tool for managing Git worktrees. A worktree is a separate folder for a branch of the same repository. Giving each coding agent its own worktree helps prevent agents from overwriting each other's unfinished changes.

The command wt switch -c -x claude feat creates a branch and worktree, switches into it, and starts Claude. Worktrunk is written in Rust. On macOS, install it with brew install worktrunk, then run wt config shell install to enable shell integration.

In BuildLadder's 9 November 2026 weekly snapshot, Worktrunk ranked #2, gaining 2,292 stars. Below, we cover installation, parallel sessions, cleanup, and the alternatives.

What is Worktrunk?

The README describes Worktrunk as "a CLI for git worktree management, designed for running AI agents in parallel." Worktrees are addressed by branch name, and their folder paths come from a template you can configure, so you stop typing paths.

Its three core commands map onto what you already do with branches:

TaskWorktrunkPlain git
Switch worktreeswt switch featcd ../repo.feat
Create and start Claudewt switch -c -x claude featgit worktree add -b feat ../repo.feat && cd ../repo.feat && claude
Clean upwt removecd ../repo && git worktree remove ../repo.feat && git branch -d feat
List with statuswt listgit worktree list (paths, commits, and branches)

Source: the README's own comparison table.

Beyond the core, the README lists hooks that run on create, pre-merge, and post-merge; LLM-generated commit messages; a one-command merge workflow (squash, rebase, merge, clean up); an interactive picker with streaming CI status; shared build caches so ten worktrees get target/ or node_modules/ without rebuilding (on APFS, btrfs, and XFS); wt switch pr:123 to check out a pull request; and a hash_port template filter that gives each worktree's dev server its own port.

Who it's for: developers who already run terminal agents and want 3 to 10 of them working on separate branches of one repo.

Who it's not for: people who want a visual dashboard with diff review. Worktrunk is a CLI; it doesn't render a GUI for agent sessions (desktop options are covered below).

Observed (GitHub API, 2026-11-09 Asia/Calcutta): 12,152 stars; written in Rust; README badge says MIT OR Apache-2.0; repo created 2025-10-18; last push 2026-11-09 09:14 Asia/Calcutta; latest release v0.81.0 published 2026-10-21. Docs live at worktrunk.dev.

BuildLadder ranks repositories by fresh star momentum from cached GitHub trend data. Checked on 2026-11-09 (Asia/Calcutta):

WindowRankTotal stars on cardDelta in windowSource
Weekly#0211,981+2,292Trending weekly
Daily——Not in today's top listTrending daily
Monthly——Not in the top 10Trending monthly

Measured: on 2026-11-08 the same repo sat at weekly #4 with +2,184 stars; a day later it climbed to #2 with +2,292. That's steady accumulation rather than a one-day spike. It's not a monthly top-10 repo, so treat it as a strong week, not a breakout month.

On the same weekly list, thedotmack/claude-mem was #1 with +7,482 stars. Both projects offer ways to manage work with coding agents; compare the features you need before choosing one.

Why do parallel AI agents need git worktrees?

The README puts it plainly: agents like Claude Code and Codex "can handle longer tasks without supervision, such that it's possible to manage 5-10+ in parallel." If they all edit one checkout, they overwrite each other's files mid-task. Git's built-in worktree feature gives each branch its own working directory from one repository, so each agent edits its own copy.

The catch, again per the README, is that native worktree UX is clunky: starting one means typing the branch name three times across git worktree add and cd. Worktrunk's pitch is removing that friction plus the setup chores (installing dependencies, starting dev servers, picking ports) that every new worktree needs.

The file isolation is one part of running agents side by side. Task boundaries, review gates, and recovery are covered in how to run multiple AI coding agents.

How to install Worktrunk and run three agents at once

Every step below is from the README.

1. Install. On macOS or Linux with Homebrew:

brew install worktrunk && wt config shell install

With Cargo: cargo install worktrunk && wt config shell install. On Windows, use winget install max-sixty.worktrunk; Winget installs it as git-wt because wt is already Windows Terminal's command, so you then run git-wt config shell install. Arch (pacman -S worktrunk) and conda-forge packages also exist. The shell install step matters: it's what lets wt change your current directory.

2. Create a worktree for a feature.

wt switch --create feature-auth

This creates the branch, creates the worktree, and switches you into it.

3. Check every worktree's status. wt list shows staged changes, commits ahead of main, and unpushed commits for each branch.

4. Launch agents in separate terminal tabs.

Open one tab per task, starting each from the intended base branch. Each command below starts an interactive agent. Running the commands one after another in one tab does not make them concurrent.

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'

-x runs a command after switching, and everything after -- is passed to it. Add post-start hooks to install dependencies or start a dev server automatically.

5. Finish. Either take the PR route (wt step commit, gh pr create, then wt remove after merge) or merge locally with wt merge main, which commits, squashes, rebases, fast-forwards main, and removes the worktree.

Worktrunk vs plain git, gwq, Claude Code's built-in worktrees, and Conductor

  • Plain git worktree: free and always there, but you manage paths, cd, branch cleanup, and setup by hand. Fine for one or two side branches.

  • gwq: another worktree CLI. Its README emphasizes a fuzzy finder, global worktree management across repos, a status dashboard, and tmux integration. Pick it if fuzzy switching across many repos is your main pain; pick Worktrunk if you want hooks, merge workflow, and LLM commits built in.

  • Claude Code's own worktree support: a comparison by teebe lists a claude --worktree flag, and Nimbalyst's roundup describes subagent worktree isolation. It's the lowest-friction choice if you only use Claude Code, but it doesn't cover Codex or other CLIs, and it isn't a general merge or cleanup tool.

  • Conductor and other desktop apps: consider a graphical app if you want workspaces and a diff viewer in one window. Check current platform support and pricing at the vendor. Worktrunk stays in your terminal and can start whichever agent CLI you use.

Track this on BuildLadder

Worktrunk's climb from weekly #4 to #2 in a day is the kind of movement BuildLadder's weekly trending repos list is built to surface. Check the daily list for today's movers, the monthly list for sustained interest, and if you're shipping with parallel agents yourself, connect GitHub and see where your own output lands on the BuildLadder leaderboard.

FAQ

What is Worktrunk?

Worktrunk is an open-source Rust CLI (wt) that manages git worktrees so you can run several AI coding agents, such as Claude Code or Codex, in parallel on separate branches of one repository.

How do I install Worktrunk?

On macOS or Linux, run brew install worktrunk && wt config shell install; with Rust, run cargo install worktrunk && wt config shell install; on Windows, run winget install max-sixty.worktrunk and use the git-wt command.

How do I run multiple Claude Code agents in parallel with git worktrees?

With Worktrunk, run wt switch -x claude -c <branch> -- '<task>' once per task; each command creates a new branch and worktree and starts Claude inside it, so the agents never share a working directory.

Does Worktrunk work on Windows?

Yes. Winget installs it as git-wt to avoid clashing with Windows Terminal's wt command, or you can disable Windows Terminal's app execution alias to use wt directly.

Worktrunk vs gwq: which git worktree manager should I use?

Use Worktrunk if you want lifecycle hooks, a one-command merge workflow, and LLM commit messages for agent branches; use gwq if your main need is fuzzy-finding and switching worktrees across many repositories.

Sources

Star counts change hourly; figures are as of 2026-11-09 Asia/Calcutta.

Read next