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
# List all worktrees
git worktree list
# Remove a worktree
git worktree remove ../feature-name
# Prune stale worktree entries
git worktree prune
1---2name: parallel-worktrees3description: Parallel Worktrees4---56# Parallel Worktrees78Productivity pattern for running multiple Claude Code sessions on the same repository.910See `../../rules/12-context-management.md` for detailed documentation.1112## Quick Reference1314### Setup1516```bash17# Create worktree for a feature branch18git worktree add ../feature-name feature/branch-name1920# Launch Claude in the worktree21cd ../feature-name && claude22```2324### Writer/Reviewer Pattern2526| Terminal | Role | Command |27|----------|------|---------|28| Terminal 1 | Writer | `cd ../feature-auth && claude "Implement feature"` |29| Terminal 2 | Reviewer | `cd ../review-auth && claude "Review the code"` |3031### Best Practices3233- 3-5 worktrees maximum34- One worktree = one task35- Remove completed worktrees: `git worktree remove ../feature-name`36- Never share sessions between worktrees3738### Cleanup3940```bash41# List all worktrees42git worktree list4344# Remove a worktree45git worktree remove ../feature-name4647# Prune stale worktree entries48git worktree prune49```
Run npx get-skill add thebeardedbearsas/parallel-worktrees in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Parallel Worktrees It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
TheBeardedBearSAS (@thebeardedbearsas) published this skill. Their other Agent Skills are listed on their SkillMD profile.