<- all agent manager tools

git worktree tools for ai coding agents

CLI tools and workflows that isolate Claude Code, Codex, and other coding agents with git worktrees.

the four layers of automation

Worktree tools sit on a spectrum. Each layer adds convenience and gives up flexibility. Pick the lowest layer that removes your actual pain.

1. raw git — full control, full bookkeeping. Documented at /worktrees.

2. shell alias / function — automate the common case in your own dotfiles. Cheap, fragile, hard to share.

3. dedicated CLI — Workz, Wtx, gwq. Knows about worktrees specifically; usually agent-agnostic.

4. desktop manager — Pane, Conductor. Worktree is one of many things they handle.

four ways to spawn one worktree

Same task — give a new agent its own branch and directory — at four different layers of abstraction.

git only — no helper
$git worktree add ../myrepo-add-auth -b add-auth
$cd ../myrepo-add-auth
$cp ../myrepo/.env . # manual env copy
$npm install # fresh node_modules
$claude
note five commands. no automation. you remember everything.

the three things worktree tools usually skip

1. review. Most worktree CLIs end at add. They do not give you a diff viewer, do not surface changed files, do not help you decide what to commit.

2. status. Knowing which worktree has an agent in the middle of an edit, which is idle, which has a PR open — that is workflow state, not git state. Worktree CLIs rarely track it.

3. teardown after merge. add is one command, rm is two more (worktree + branch), and almost no one runs both reliably across ten merged PRs.

which CLI patches which runtime gap

A worktree is a fresh checkout, so the runtime — env files, installed deps, dev-server ports — never comes along for the ride. Different CLIs in this category target different gaps. The full breakdown of the gaps themselves lives in /worktrees; here is who patches what.

gaptools that close it
env / gitignored filesClaude Code .worktreeinclude; Workz dependency sync; Hyve env scoping
duplicate node_modules / venvWorkz (shared deps); pnpm CAS store outside any CLI
port collisions on dev serversGalactic (per-worktree proxy on localhost:1355); Hyve (services + ports)
pre-bootstrapped pool of worktreesWtx

decision criteria

- does the tool only create worktrees?

- does it handle cleanup and branch ownership?

- does it include review or just isolation?

- does it solve ports, env files, or dependency sharing?

pane vs this category: the short version

Pane includes the worktree primitive but adds terminals, session state, diff review, and git workflow around it.

tools in this category

toolconstraintwhat pane does instead
WorkzCLI only. no terminal, no diff, no review.worktree, terminal, diff, and review in one app
Wtxworktree pool helper. no agent surface.session model attached to each worktree
Hyveenv and port isolation. no agent UI.complementary; Pane handles the agent side
GalacticClaude Code fleet manager with port proxy.any CLI agent and per-session terminal control
ghq/gwq/fzf workflowsshell glue. you maintain it yourself.productized workflow with status and review built in

common mistake

Thinking worktree creation is the whole problem. The hard part is keeping the worktree attached to an agent, a branch, a diff, and a ship/no-ship decision.

Want isolation plus the terminal and review on top? Download Pane.

useful next pages

- all agent manager tools

- git worktrees for AI agents

- Claude Code on Windows + WSL

frequently asked questions