{"version":"2.1.334","anchor":"worktree-lost-message-for-agents","canonical_anchor":"worktree-lost-message-for-agents","heading":"Clear message when a background agent's worktree is gone","tier":"notice","area":"Background Agents","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/worktree-lost-message-for-agents","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### Clear message when a background agent's worktree is gone\n\nClaude Code now says when an agent's worktree is no longer held and suggests starting a new agent\n\n**What**\n\nA worktree is a separate working copy of a git repository that an agent, a helper Claude Code runs on its own, can work in. When an agent's worktree is no longer held by the program that hosts its tools, Claude Code now says: \"this agent's worktree is no longer held by the tools host. Start a new agent if the work is still needed.\"\n\n**Why**\n\nYou get a plain explanation and a next step instead of an unclear failure when a background agent's worktree has disappeared.\n\n- Area: Background Agents\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}