Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By TheBushidoCollectivev1.0.0Apache-2.0In 1 marketplace
Gives each Claude Code subagent its own git worktree so parallel agents stop overwriting each other's edits and branch switches. A PreToolUse hook injects the isolation instructions into every Agent or Task call, outside OMP sessions.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Agent isolation via git worktrees. When Claude Code spawns subagents (via the Agent tool), they all operate in the same working directory by default. This means agents can interfere with each other - one agent's file edits or branch switches can corrupt another agent's work. This plugin solves that by instructing each subagent to create and work in its own isolated git worktree.
OMP sessions use their harness-assigned workspace and native task isolation and handoff instead of the automatic worktree procedure below. Explicit worktree management requested by the user remains available.
This plugin uses a PreToolUse hook on the Agent tool (and legacy Task tool) to inject worktree isolation instructions into every subagent's prompt. When a subagent is spawned:
worktree-context.sh which generates markdown instructions<subagent-context> tags via han hook wrap-subagent-contextIn other harnesses, each subagent creates its own worktree at .worktrees/<agent-name> and performs all file operations there. This prevents:
han plugin install git-worktrees
For harnesses other than OMP, each subagent prompt is prepended with instructions to:
git worktree add .worktrees/<name> --detach HEADUse the /worktree-management skill to list, prune, or merge worktrees:
/worktree-management list # Show active worktrees
/worktree-management prune # Remove stale worktrees
/worktree-management merge # Merge a worktree's work back
Or manage manually:
# List all worktrees
git worktree list
# Remove a specific worktree
git worktree remove .worktrees/agent-xxx
# Prune stale entries
git worktree prune
Add .worktrees/ to your .gitignore to avoid tracking worktree directories:
.worktrees/
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub thebushidocollective/han --plugin git-worktreesPlugins from other owners that cover similar ground