A lightweight CLI for managing git worktrees with git-spice integration. Designed for running multiple Claude Code (or any AI coding agent) sessions in parallel on isolated branches.
git clone https://github.com/areel/wt.git
cd wt
bash install.sh
source ~/.zshrcwt create <name> # Create worktree + branch, register with git-spice
wt nav # Interactively cd into a worktree
wt remove # Interactively remove a worktree
wt remove -b # Remove worktree AND delete its branch
wt list # List all worktrees
wt help # Show helpwt create my-feature does the following:
- Creates a git worktree at
../my-feature(sibling to your repo) - Creates a branch named
areel/my-feature(prefix configurable viaWT_BRANCH_PREFIX) - Registers the branch with git-spice
You then open a Claude Code session (or any editor) in that directory and work normally. Commits, pushes, and pre-commit hooks all work as expected — each worktree is fully isolated.
| Variable | Default | Description |
|---|---|---|
WT_BRANCH_PREFIX |
areel |
Prefix for branch names |
bash uninstall.sh