{"version":"2.1.330","anchor":"worktree-tools-become-vcs-agnostic-when-a-session-level-gate","canonical_anchor":"worktree-tools-become-vcs-agnostic-when-a-session-level-gate","heading":"Worktree tools gain non-git wording and won't remove a worktree another session uses","tier":"notice","area":"Worktrees","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330\/e\/worktree-tools-become-vcs-agnostic-when-a-session-level-gate","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330","markdown":"### Worktree tools gain non-git wording and won't remove a worktree another session uses\n\nEnterWorktree and ExitWorktree can describe any version control, not only git, and ExitWorktree refuses to remove a worktree another live session is using\n\n**Unclear.** It is not clear what decides whether a session gets the neutral wording and add-on route, or whether that is switched on for anyone.\n\n**What**\n\nA worktree is a separate working copy of your project that Claude Code can switch into. The tools that enter and leave one, `EnterWorktree` and `ExitWorktree`, now have two versions of their descriptions and settings. Depending on a check made for the session, they either say \"git worktree\" as before, or use neutral words such as \"working copy\" and \"version control\". In the neutral version, entering one is described as creating a working copy with the project's own version control and giving back its path.\n\nChanges:\n\n- `ExitWorktree` now refuses to remove a worktree that another live Claude Code session is running in.\n\n- `--worktree` gains a separate setup route for creating the working copy through a version control add-on instead of git.\n\nThe stock descriptions of both tools, as captured in v2.1.330, are the same as in v2.1.329.\n\n**Why**\n\nWorktree isolation is being opened up beyond git, so projects that use other version control systems could get the same separate working copies through add-ons. The new refusal stops one session from deleting a working copy that a second session is still using.\n\n- Area: Worktrees\n- Names: `EnterWorktree`, `ExitWorktree`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}