Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.72 ·

ExitWorktree Tool

Entry
JSON All of v2.1.72
EntryKind: in v2.1.72,
ChangesSection of the release
What

A new tool that allows exiting a worktree session mid-conversation without ending the session, returning to the original working directory.

Details
  • Accepts action: "keep" to preserve the worktree and branch on disk, or action: "remove" to delete both
  • When removing a worktree with uncommitted changes, requires explicit discard_changes: true confirmation
  • Checks for uncommitted files and unmerged commits before removal
  • Only operates on worktrees created by EnterWorktree in the current session
  • The EnterWorktree tool message now references ExitWorktree: "Use ExitWorktree to leave mid-session, or exit the session to be prompted"
Evidence

New tool definition (search for "ExitWorktree")

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeAdded ExitWorktree tool to leave an EnterWorktree session

See this entry in the whole of v2.1.72 →

Feedback