Manage Git worktrees for parallel development sessions
Manages Git worktrees for parallel development sessions with Claude Code.
/plugin marketplace add kylesnowschwartz/SimpleClaude/plugin install sc-extras@simpleclaude[optional] worktree command (list, create, remove, prune)Git worktrees let you work on multiple branches simultaneously in separate directories. Perfect for parallel Claude Code sessions without losing context.
Create a new worktree:
git worktree add tree/feature-name -b feature-name
cd tree/feature-name
claude
Create worktree for existing branch:
git worktree add tree/existing-branch existing-branch
cd tree/existing-branch
claude
List all worktrees:
git worktree list
Remove finished worktree:
git worktree remove tree/feature-name
git branch -d feature-name # optional: delete branch
Clean up stale references:
git worktree prune
YourProject/
├── .git/
├── src/
├── .gitignore # add: /tree/
└── tree/
├── feature-auth/
└── hotfix-123/
Parallel development:
cd ~/project && claude (main)cd ~/project/tree/feature && claude (feature)cd ~/project/tree/hotfix && claude (urgent fix)Code review:
git worktree add tree/review -b review/pr-123
cd tree/review
git pull origin pull/123/head
claude
/tree/ to .gitignorenpm install (or equivalent) in each new worktree.git databaseIf no $ARGUMENTS are provided Instruct the user on how to manually create and verify their own worktrees and worktree status
If $ARGUMENTS are provided Help the user fulfill their request asking any necessary clarifying questions
${ARGUMENTS}