Claude Code Worktree Parallel Session Capability Pack Skill
Expert Claude Code worktree parallel session capability pack applying documented worktree isolation, branch ownership, and multi-session coordination steps for parallel agent work without checkout races.
Open the source and read safety notes before installing.
Safety notes
- Parallel sessions without worktrees can race on the same files—prefer isolation.
- Deleting agent view rows may remove Claude-created worktrees with uncommitted work.
- Do not merge from parallel sessions without human review of each diff.
Privacy notes
- Worktrees may duplicate proprietary code on disk—secure local storage accordingly.
- Agent view lists working directories visible to anyone with terminal access.
- Coordination summaries should not paste secrets from one workstream into another.
Prerequisites
- Git repository supporting worktrees with clear branch naming conventions.
- Multiple concurrent tasks requiring isolated checkouts.
- Merge owner for integrating parallel session outputs.
- Optional agent view access for monitoring background sessions.
Schema details
- Install type
- package
- Reading time
- 9 min
- Difficulty score
- 74
- Troubleshooting
- Yes
- Breaking changes
- No
- Scope
- Source repo
- Skill type
- capability-pack
- Skill level
- expert
- Verification
- validated
- Verified at
- 2026-06-16
| Platform | Support | Install path |
|---|---|---|
| claude-code | Native | .claude/skills/<skill-name>/SKILL.md |
| codex | Native | .agents/skills/<skill-name>/SKILL.md |
| windsurf | Native | .windsurf/skills/<skill-name>/SKILL.md |
| gemini | Native | .gemini/skills/<skill-name>/SKILL.md or .agents/skills/<skill-name>/SKILL.md |
| cursor | Adapter | .cursor/rules/<skill-name>.mdc |
| cli | Manual | AGENTS.md or tool-specific context file |
Full copyable content
# Trigger
"Apply the Claude Code worktree parallel session capability pack."
# Required output
1) Workstream-to-worktree mapping
2) Branch ownership and merge plan
3) Parallel session risk review
4) Handoff checklist between sessions
5) Privacy-safe coordination summaryAbout this resource
Knowledge Freshness
Grounded in Claude Code worktrees and agent view documentation verified on 2026-06-16. Worktree CLI behavior evolves; prefer live docs.
Retrieval Sources
- https://code.claude.com/docs/en/worktrees
- https://code.claude.com/docs/en/agent-view
- https://code.claude.com/docs/en/skills
- https://github.com/anthropics/claude-code
- https://developers.google.com/search/docs/fundamentals/creating-helpful-content
Source Verification Notes
Verified on 2026-06-16:
- Claude Code documents git worktrees for isolated parallel work on separate branches.
- Agent view can list sessions across worktrees under a project cwd filter.
- Background sessions may create worktrees that are removed when sessions are deleted.
Scope Note
Community reusable coordination skill applying documented worktree steps—not an official Anthropic product.
Core Workflow
- Map each parallel task to a branch and worktree path.
- Assign merge owner and review gates per workstream.
- Launch sessions in separate worktrees—not one shared checkout.
- Monitor blocked sessions via agent view when using background dispatch.
- Review diffs before merging parallel outputs to main.
- Clean up worktrees after merge or explicit abandon.
Capability Scope
- Workstream-to-worktree mapping.
- Branch ownership and merge planning.
- Parallel session risk review.
- Agent view monitoring hooks.
- Handoff and cleanup checklists.
Production Rules
- One write owner per branch at a time.
- Commit or push before deleting agent view rows tied to worktrees.
- Never auto-merge parallel agent output without human diff review.
Review Matrix
| Pattern | Risk | Mitigation |
|---|---|---|
| Same branch, two sessions | High race | Separate worktrees/branches |
| Background + interactive | Lock conflicts | Check computer-use/agent locks |
| Long-lived worktree | Disk drift | Scheduled cleanup |
Output Contract
- Workstream-to-worktree map.
- Branch ownership plan.
- Risk review findings.
- Handoff checklist.
- Privacy-safe summary.
Duplicate Check
Distinct from using-worktrees-for-parallel-claude-code-sessions guide (tutorial)
and worktree coordinator agent (prompt).
Troubleshooting
Issue: Sessions edit same checkout Fix: Create per-task worktrees; document paths in CLAUDE.md.
Issue: Worktree deleted with uncommitted work
Fix: Commit before deleting agent view rows; use git worktree list to audit.
Editorial Disclosure
Independent entry by kiannidev from public Claude Code docs.
Source citations
Add this badge to your README
Show that Claude Code Worktree Parallel Session Capability Pack Skill is listed on HeyClaude. Paste this Markdown into your README — it renders the badge and links back to this page.
[](https://heyclau.de/entry/skills/claude-code-worktree-parallel-session-capability-pack)How it compares
Claude Code Worktree Parallel Session Capability Pack Skill side by side with 3 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.
| Field | Claude Code Worktree Parallel Session Capability Pack Skill Expert Claude Code worktree parallel session capability pack applying documented worktree isolation, branch ownership, and multi-session coordination steps for parallel agent work without checkout races. Open dossier | Claude Code Agent View Operations Capability Pack Skill Expert agent view operations capability pack applying documented claude agents dispatch, peek/reply, attach/detach, and shell fleet commands from official agent view documentation. Open dossier | Claude Agent SDK Session Storage Capability Pack Skill Expert Claude Agent SDK session storage capability pack for designing, reviewing, and rolling out Agent SDK session storage with source-backed checklists, production rules, and privacy-safe output contracts. Open dossier | Claude Code Checkpoint Recovery Capability Pack Skill Expert Claude Code checkpoint recovery capability pack for auditing automatic edit tracking, choosing restore versus summarize actions in /rewind, and recovering from bad turns without losing git history. Open dossier |
|---|---|---|---|---|
| Trust | ||||
| Install risk | Review first | Review first | Review first | Review first |
| Notes | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ |
| Category | skills | skills | skills | skills |
| Source | source-backed | source-backed | source-backed | source-backed |
| Author | kiannidev | kiannidev | kiannidev | kiannidev |
| Added | 2026-06-16 | 2026-06-16 | 2026-06-14 | 2026-06-13 |
| Platforms | Claude CodeCodexWindsurfGeminiCursorCLI | Claude CodeCodexWindsurfGeminiCursorCLI | Claude CodeCodexWindsurfGeminiCursorCLI | Claude CodeCodexWindsurfGeminiCursorCLI |
| Source repo | — | — | — | — |
| Safety notes | ✓Parallel sessions without worktrees can race on the same files—prefer isolation. Deleting agent view rows may remove Claude-created worktrees with uncommitted work. Do not merge from parallel sessions without human review of each diff. | ✓Autonomous workflows can run shell commands without mid-run user input—scope paths and tools first. Do not enable destructive automation without explicit approval gates. Review outputs as draft until a human validates evidence. | ✓This skill plans Agent SDK session storage; it must not execute destructive changes without explicit approval. Browser, computer-use, and remote surfaces can access sensitive UI state; scope tests carefully. MCP and SDK integrations may exfiltrate data if tool scopes are too broad. The public `anthropics/claude-code` repository ships documentation links to code.claude.com for settings, security, and integration surfaces. Scheduled or autonomous workflows compound risk; cap blast radius in staging first. | ✓This skill recommends checkpoint actions; it must not run `/rewind` restore or summarize without explicit user approval. Restore code and conversation reverts both files and chat history to a prior prompt; confirm the target checkpoint before acting. Restore code alone keeps conversation but reverts file edits; restore conversation alone keeps current files but rewinds chat. Summarize compresses conversation segments without changing files on disk; it is not a substitute for git revert when bash commands modified files. Checkpointing does not track files changed by bash commands such as `rm`, `mv`, or `cp`; use git or manual recovery for those paths. |
| Privacy notes | ✓Worktrees may duplicate proprietary code on disk—secure local storage accordingly. Agent view lists working directories visible to anyone with terminal access. Coordination summaries should not paste secrets from one workstream into another. | ✓Workflow and session output may contain proprietary code and credentials. Summaries for external channels require redaction. | ✓Reviews may expose integration tokens, customer metadata, and internal URLs related to Agent SDK session storage. Telemetry and analytics configs can include account emails; redact before sharing externally. Keep troubleshooting logs in internal channels unless explicitly sanitized. Third-party vendors remain outside Anthropic retention policies; document separately. | ✓The /rewind menu lists every user prompt in the session, which may expose internal task names, credentials pasted in prompts, or customer context. Restored prompts reappear in the input field and may contain sensitive instructions that should be redacted before sharing screens. Session transcripts persist with checkpoints for up to 30 days by default; treat resumed sessions as containing prior sensitive content. Public support notes should describe the recovery lane and checkpoint choice, not full prompt text or complete file diffs. |
| Prerequisites |
|
|
|
|
| Install | — | — | — | — |
| Config | — | — | — | — |
| Citations | ||||
| Claim | Unclaimed | Unclaimed | Unclaimed | Unclaimed |
Signals
Loading live community signals…
A short, calm digest of reviewed Claude resources. Unsubscribe any time.