{"version":"2.1.334","anchor":"subagent-worktrees-held-by-the-server-and-used-for-mcp-tool","canonical_anchor":"subagent-worktrees-held-by-the-server-and-used-for-mcp-tool","heading":"Subagents can work in their own git worktree on a remote tools server","tier":"internal","area":"Subagents","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/subagent-worktrees-held-by-the-server-and-used-for-mcp-tool","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### Subagents can work in their own git worktree on a remote tools server\n\nA tools server can hold a git worktree per subagent and run that agent's tool calls in it, refusing calls when none is held\n\n**Unclear.** Which hosts or settings turn this on is not known.\n\n**What**\n\nA subagent is a separate helper agent Claude starts for part of a task. A worktree is an extra working copy of a git repository. A server that runs MCP tools, the outside programs that give Claude extra tools, can now:\n\n- create and remove a worktree for each subagent\n\n- run a tool call that names an agent inside that agent's worktree\n\n- refuse the call as worktree_not_held if no worktree is held for it\n\n- cap how many worktrees it holds, reporting \"this server already holds its most subagent worktrees\"\n\n**Why**\n\nOn hosts that serve tools remotely, each subagent's file changes stay in its own copy instead of mixing with others.\n\n- Area: Subagents\n- Tier: Under the hood\n- Useful: 3\/5\n- Signal: 4\/5\n- Scope: individual\n- Heads-up: no"}