Follow Discord
Sweep 25 Sep 2026 · 19:33Z Build v2.1.283 504 read Stable v2.1.274 Latest v2.1.283 Next v2.1.283 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 Entry
JSON All of v2.1.281
EntryKind: in v2.1.281,
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