← all repositories
max-sixty/worktrunk

Git worktrees that keep parallel AI agents from stepping on each other

Worktrunk wraps git's clunky worktree commands into a branch-like CLI so you can spin up and manage multiple AI coding agents in parallel without directory chaos.

6k stars Rust Coding AssistantsAgents
worktrunk
Velocity · 7d
+16
★ / day
Trend
accelerating
star history

What it does

Worktrunk is a Rust CLI that treats git worktrees like branches. You switch between them by name instead of path, create them with a single command, and clean them up when done. It is explicitly built for workflows where you run several AI agents—Claude Code, Codex, and the like—in parallel, each in its own working directory so they don’t collide.

The interesting bit

The tool doesn’t just alias git commands; it automates the entire lifecycle around parallel changes. It can generate LLM commit messages, copy build caches between worktrees to skip cold starts, assign unique ports per worktree for dev servers, and even check CI status or fetch PR branches by number. The shell integration lets the tool change your actual working directory, which is the friction point plain git worktrees never solved elegantly.

Key highlights

  • Branch-name addressing: worktrees are referenced by branch, not by relative paths.
  • One-shot agent launch: the switch command with create and execute flags spawns a worktree and starts an agent.
  • Automated cleanup: the remove command drops both the worktree and the branch after merge.
  • Build cache sharing: ignored directories like target/ or node_modules/ can be copied across worktrees.
  • Rich status overview: the list command shows commit distance from main, CI status, and AI-generated summaries per branch.

Caveats

  • Requires shell integration for directory switching, which may not fit every environment.
  • On Windows, the default wt alias conflicts with Windows Terminal; the binary installs as git-wt unless you disable the system alias.

Verdict

If you’re already running multiple AI agents in parallel or juggling long-lived feature branches, Worktrunk removes the directory-juggling tax. If you rarely leave main or don’t use worktrees, it’s probably overkill.

Frequently asked

What is max-sixty/worktrunk?
Worktrunk wraps git's clunky worktree commands into a branch-like CLI so you can spin up and manage multiple AI coding agents in parallel without directory chaos.
Is worktrunk open source?
Yes — max-sixty/worktrunk is an open-source project tracked on heatdrop.
What language is worktrunk written in?
max-sixty/worktrunk is primarily written in Rust.
How popular is worktrunk?
max-sixty/worktrunk has 6k stars on GitHub and is currently accelerating.
Where can I find worktrunk?
max-sixty/worktrunk is on GitHub at https://github.com/max-sixty/worktrunk.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.