Worktree tools gain non-git wording and won't remove a worktree another session uses
EnterWorktree and ExitWorktree can describe any version control, not only git, and ExitWorktree refuses to remove a worktree another live session is using
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
WorktreesArea: what it touches
ImprovementsKind: in v2.1.330,
ImprovementsSection of the release
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.
What
A 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.
Changes:
ExitWorktree now refuses to remove a worktree that another live Claude Code session is running in.
--worktree gains a separate setup route for creating the working copy through a version control add-on instead of git.
The stock descriptions of both tools, as captured in v2.1.330, are the same as in v2.1.329.
Why
Worktree 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.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Added sinceA small documentation edit on Tools reference touched a line naming ExitWorktree after this was published.| `ExitWorktree` | Exits a worktree session and returns to the original directory. Not available to subagents that already run in their own working directory, such as with [`isolation: worktree`](https://code.claude.com/docs/en/sub-agents#…tools-referencesee the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not clear what decides whether a session gets the neutral wording and add-on route, or whether that is switched on for anyone.
Anthropic's documentation agreesA small documentation edit on Tools reference touched a line naming ExitWorktree after this was published.
Anthropic's release notes agreeFixed ExitWorktree and the worktree exit dialog deleting a worktree that another running Claude Code session was working in