Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.327 ·

Claude Code checks whether a worktree branch has commits of its own

Claude Code now checks whether a worktree's branch holds commits found nowhere else, such as on a remote or the current branch

You'll notice Improvements
JSON All of v2.1.327
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
WorktreesArea: what it touches
ImprovementsKind: in v2.1.327,
ImprovementsSection of the release

Unclear It is not clear what Claude Code does with this check, for example whether it removes empty worktrees automatically.

What

A worktree is an extra working copy of a git repository on its own branch. Claude Code can create one so work happens apart from your main copy.

Claude Code now checks whether a worktree's branch has any commits that are not already on the current branch or on a remote, which is a shared copy of the repository such as one on GitHub. The check reports the branch as having nothing of its own only when no such commits exist. It never reports that for a worktree that was set up through a hook.

Why

This could let Claude Code clean up worktrees that hold no unique work without risking commits that exist nowhere else.

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 Claude Code does with this check, for example whether it removes empty worktrees automatically.

See this entry in the whole of v2.1.327 →

Feedback