| name | worktree-mastery |
| description | Git worktree patterns for parallel Claude sessions. Run multiple Claude instances on same repo without conflicts. |
Worktree Mastery
Run 3-5 parallel Claude sessions on same repo. "The single biggest productivity unlock." - Boris Cherny
Core Concept
Git worktrees = independent working directories sharing one repo. Each Claude session gets its own worktree. No branch conflicts, no stash juggling.
Quick Setup
git worktree add ../myproject-review main
git worktree add ../myproject-refactor main
git worktree add ../myproject-test main
git worktree list
Naming Convention
myproject/ # Main worktree (original clone)
myproject-review/ # Code review session
myproject-refactor/ # Refactoring session
myproject-test/ # Test writing session
myproject-docs/ # Documentation session
Session Strategy
| Worktree | Use Case |
|---|
| main | Primary development, commits |
| main-review | PR reviews, code reading |
| main-refactor | Large refactors, experiments |
| main-test | Test writing, debugging |
Workflow
- Create worktrees before starting parallel work
- Start Claude in each worktree directory
- Work independently - each session has isolated state
- Sync via git - commit in one, pull in another
- Cleanup when done
Sync Between Sessions
git fetch origin
git rebase origin/main
git checkout feature-branch
git pull
References