{"version":"2.1.334","anchor":"subagent-worktree-isolation-can-use-a-host-provided-worktree","canonical_anchor":"subagent-worktree-isolation-can-use-a-host-provided-worktree","heading":"Subagents in their own worktree can use one provided by the host program","tier":"internal","area":"Subagents","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/subagent-worktree-isolation-can-use-a-host-provided-worktree","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### Subagents in their own worktree can use one provided by the host program\n\nA subagent isolated in a worktree now uses a worktree supplied by the program hosting Claude Code when there is one\n\n**What**\n\nA subagent is a helper that Claude starts to work on part of a task. A worktree is a separate checked-out copy of a git project, and some subagents get their own so their changes stay apart from yours. Before, Claude Code always made that worktree itself and told the subagent its real path.\n\nNow, when the program hosting Claude Code supplies its own way of making worktrees, the subagent uses that instead. The subagent is told its worktree is \"your working directory\" rather than given the path. Subagents started by that subagent keep the same worktree link.\n\n**Why**\n\nPrograms that embed Claude Code can now manage the worktrees their subagents work in.\n\n- Area: Subagents\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}