{"version":"2.1.326","anchor":"worktree-isolated-agents-refusal-of-git-commands-that-rewri","canonical_anchor":"worktree-isolated-agents-refusal-of-git-commands-that-rewri","heading":"Worktree agents are refused git commands that change your own checkout","tier":"notice","area":"Worktrees","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/worktree-isolated-agents-refusal-of-git-commands-that-rewri","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### Worktree agents are refused git commands that change your own checkout\n\nAn agent working in its own worktree is now refused git commands that would rewrite what the worktree shares with your checkout\n\n**Unclear.** Which git commands count as rewriting shared state is not stated.\n\n**What**\n\nA worktree is a separate checkout of your repository in another folder, and an agent, a helper Claude starts for part of a task, can be kept to its own worktree. Before, a git command was refused only when it targeted something other than the agent's own worktree. Now there is a second reason: a git command that would rewrite what the worktree shares with your own checkout is refused, in every repository.\n\n**Why**\n\nAn agent confined to a worktree can no longer change your own checkout through the parts the two share.\n\n- Area: Worktrees\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}