Skip to content
Productivity
Command

/parallel

Set up parallel Claude Code sessions using git worktrees.

From plugin
pro-workflow
2.9k23 skills8 agents23 commands24 hooks
Install
> /plugin marketplace add rohitg00/pro-workflow
> /plugin install pro-workflow@pro-workflow

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.

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:

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:

# In .claude/agents/my-agent.md frontmatter
isolation: worktree

This gives each subagent its own working copy, preventing file conflicts.

Current State

git worktree list

Manual Worktree Setup

For cases where you want more control:

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`)
Terminal 2: ~/project-feat     → claude --worktree (auto-isolated)
Terminal 3: ~/project-fix      → claude -w (shorthand)

Each worktree runs its own Claude session independently.

When to Use

| Scenario | Recommended Approach | |----------|---------------------| | Quick parallel task | `claude -w` (auto worktree) | | Tests running | Start feature in worktree | | Long build | Debug in parallel | | Exploring approaches | Compare 2-3 simultaneously | | Review + new work | Reviewer in one, dev in other | | Background exploration | Subagent with `isolation: worktree` |

Managing Background Agents

  • `Ctrl+F` — Kill all background agents (two-press confirmation)
  • `Ctrl+B` — Send current task to background
  • Background agents continue running when you press ESC

Cleanup

git worktree remove ../[project]-feat
git worktree prune

---

**Tip:** `claude -w` is the fastest way to parallelize. Like having a dev team you can clone.

Read more
Ships withpro-workflow

Claude Code learns from your corrections: self-correcting memory that compounds over 50+ sessions. Context engineering, parallel worktrees, agent teams, and 17 battle-tested skills.

Get the whole plugin

Other commands on pro-workflow.