Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.281 ·

Keeping a worktree now always counts its changed files and commits

Leaving a worktree with keep now always counts its changed files and commits, hook-based worktrees included

Group of 2 Under the hood Internal Changes
JSON All of v2.1.281
Under the hoodTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
WorktreesArea: what it touches
Internal ChangesKind: in v2.1.281,
Internal ChangesSection of the release

What

A worktree is a separate working copy of your repository that Claude Code can work in. When you leave one and choose to keep it, Claude Code now always counts the files that changed and the commits that were made.

Before, this count was skipped for hook-based worktrees that had an original changeset recorded. A hook-based worktree is one created by a hook, which is a script you configure to run at certain moments, rather than by git. The skip condition was n.action === "keep" && r.hookBased === !0 && r.originalChangeset !== void 0. It is now r.action === "keep" && !1, which is always false, so the counting step xo(h, n) always runs.

Why

Hook-based worktrees now get the same count of changed files and commits as git worktrees when you keep them. The count feeds the record Claude Code makes when a worktree is kept, so nothing changes in how you keep or remove a worktree.

See this entry in the whole of v2.1.281 →

Feedback