Skip to content
Productivity
Command

/parallel

Set up parallel Claude Code sessions with isolated git worktrees.

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

Command definition

parallel.md
description: Set up parallel Claude Code sessions with isolated git worktrees.

/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
@rohitg00
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.

2.9k41 skills8 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
2.9k
Star history of rohitg00/pro-workflow on GitHub, a chart by star-history.com

Other commands on pro-workflow.

auto-setup

auto-setup

Command

Auto-detect project type and configure quality gates, permissions, and hooks for a new codebase

@rohitg00@rohitg00Install Command
compact-guard

compact-guard

Command

Smart context compaction with state preservation — saves critical state before compact and restores after

@rohitg00@rohitg00Install Command

More commands from other plugins.

analyze-cohorts

analyze-cohorts

Command

Perform cohort analysis on user data — retention curves, feature adoption, and engagement trends

@phuryn@phurynInstall Command
again

again

Command

PUA Again — 用于再试试、换个方法、别放弃、为什么还不行、同一路径失败多次;要求停止微调同一思路,改用本质不同方案。

pua2mo20k
@tanweai@tanweaiInstall Command