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.328 ·

Changes to worktree cleanup and resuming with --worktree

Claude Code now clears two stored worktree details before cleanup, and can resume a worktree as it is under some conditions

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

Unclear It is not known when a worktree is now kept or removed, or when resuming it as it is applies.

What

A worktree is a separate working copy of a git repository that Claude Code can work in, started with --worktree. Two changes affect it:

  • Cleanup now removes two stored details from the worktree's session record before it runs. One of them is checked for a value meaning the worktree may go.
  • Creating a worktree can now ask to resume it as it is, under two conditions.
Why

This may change when a worktree is kept or removed as a session ends.

Read from
Names in the bundle--worktree
Since it was published

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.

Confirmed since Anthropic's documentation has since written up --worktree, on Run parallel sessions with worktrees. Pass `--worktree` or `-w` with a name to create a worktree and start Claude in it. By default, the worktree is created under `.claude/worktrees/<name>/` at your repository root, on a new branch named `worktree-<name>`: worktrees see 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 known when a worktree is now kept or removed, or when resuming it as it is applies.
Anthropic's documentation agreesAnthropic's documentation has since written up --worktree, on Run parallel sessions with worktrees.

See this entry in the whole of v2.1.328 →

Feedback