Skip to main content

What is GWTree?

GWTree is a git worktree manager built for the AI-assisted development era. Create and manage git worktrees effortlessly, enabling you to run multiple AI agents in parallel — Claude Code, Command Code, Cursor on separate branches simultaneously.

Why GWTree?

Modern development with AI coding agents requires working on multiple features simultaneously. GWTree eliminates the friction of branch switching, stashing, and context loss by giving each agent its own isolated worktree. Key benefits:
  • Multi-agent parallelism — Run Claude Code, Command Code, Cursor on separate features simultaneously
  • Instant worktree creationgwt a b c -x creates 3 isolated environments in seconds
  • Clean merges — Each agent works on its own branch, merge when ready
  • Zero conflicts — No stashing, no branch switching, no context loss

Quick example

# Create 3 worktrees instantly for parallel AI agent development
gwt auth api dashboard -x
This creates three isolated worktrees:
  • Claude Coderepo-auth/ fixing authentication
  • Command Coderepo-api/ building API endpoints
  • Cursorrepo-dashboard/ creating UI components
Each agent works on its own branch without conflicts. Merge when ready with gwt merge.

Core features

Batch creation

Create multiple worktrees at once: gwt dashboard api auth

Status dashboard

See changes, commits ahead/behind, merge status for all worktrees

Smart cleanup

Auto-remove merged worktrees, or clean all with --all

Merge helper

One command to merge, remove worktree, and delete branch

Quick creation

Minimal prompts, smart defaults, transparent command output

Interactive management

List, search, and delete worktrees with fuzzy search

Get started

Installation

Install GWTree globally with your favorite package manager

Quickstart

Get your first worktree running in minutes

Smart naming pattern

GWTree follows a consistent naming pattern: {repo}-{name} for worktrees with matching branch names.
gwt feature-login
# Creates: repo-feature-login/ with branch feature-login

Interactive UX

Clean, compact output with visual indicators:

  Create  git worktree add -b "feature-login" .../repo-feature-login "main"
  /path/to/repo-feature-login

  Install  pnpm install
  installs dependencies

  Done  cd ../repo-feature-login