Command
/parallel
Set up parallel Claude Code sessions using git worktrees.
One command from pro-workflow.
shell
$ npx -y skills add rohitg00/pro-workflow --agent claude-codeShips with pro-workflow. Installing the plugin gets this command.
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/parallel
Context preview
What this command does when you run it.
Set up parallel Claude Code sessions using git worktrees.
Stats
Stars2,638
Forks255
LanguageJavaScript
Command definition
parallel.md
# /parallel - Worktree Setup Guide Set up parallel Claude Code sessions using git worktrees. ## Native Worktree Mode (Claude Code 2.1.49+) Claude Code now has built-in worktree support: ```bash claude --worktree claude -w ``` This creates an isolated git worktree automatically and runs Claude inside it. No manual setup needed. ### Subagent Worktree Isolation Subagents can also run in isolated worktrees: ```yaml # In .claude/agents/my-agent.md frontmatter isolation: worktree ``` This gives each subagent its own working copy, preventing file conflicts. ## Current State ```bash git worktree list ``` ## Manual Worktree Setup For cases where you want more control: ```bash git worktree add ../[project]-feat [branch-name] git worktree add ../[project]-fix [branch-name] git worktree add ../[project]-exp -b experiment ``` ## Usage Pattern ``` Terminal 1: ~/project → Main work (or `claude`)
