mcpField
P
parallel-worktrees

parallel-worktrees

github.com/thebeardedbearsasAgent workflows107118 installsUpdated today
Repository

About parallel-worktrees

Parallel Worktrees is a productivity pattern for running multiple Claude Code sessions against one repository using separate Git worktrees. It describes setup, writer/reviewer roles, and cleanup practices for keeping parallel tasks isolated.

Key features

  1. 01Separate worktrees for parallel tasks
  2. 02Writer and reviewer session pattern
  3. 03Worktree listing and cleanup commands

Use cases

  1. 01Implement a feature while another session reviews code
  2. 02Keep parallel repository tasks isolated
  3. 03Remove completed or stale worktrees

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/thebeardedbearsas/claude-craft --skill parallel-worktrees

After installing, type/parallel-worktreesin Claude Code to confirm it loaded.

Details

From the project README

Parallel Worktrees

Productivity pattern for running multiple Claude Code sessions on the same repository.

See ../../rules/12-context-management.md for detailed documentation.

Quick Reference

Setup
# Create worktree for a feature branch
git worktree add ../feature-name feature/branch-name

# Launch Claude in the worktree
cd ../feature-name && claude
Writer/Reviewer Pattern
TerminalRoleCommand
Terminal 1Writercd ../feature-auth && claude "Implement feature"
Terminal 2Reviewercd ../review-auth && claude "Review the code"
Best Practices
  • 3-5 worktrees maximum
  • One worktree = one task
  • Remove completed worktrees: git worktree remove ../feature-name
  • Never share sessions between worktrees
Cleanup
# List all worktrees
git worktree list

# Remove a worktree
git worktree remove ../feature-name

# Prune stale worktree entries
git worktree prune

Comments

Markdown supported