Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.336 ·

Discarding a worktree warns you when work would be lost

Approving ExitWorktree with discard_changes now shows a warning when the discard would lose something

You'll notice Improvements
JSON All of v2.1.336
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.336,
ImprovementsSection of the release
What

ExitWorktree is the tool Claude uses to leave a worktree, a separate working copy of a git repository. When Claude asks to leave and delete one with discard_changes, the permission prompt now includes a warning if the discard would lose something. Before, the prompt only gave its type and reason.

A new message also covers the case where the worktree is not removed because the session is still in it and it no longer reads clean.

Why

The warning makes it harder to approve throwing away work by accident.

Read from
Names in the bundleExitWorktreediscard_changes

See this entry in the whole of v2.1.336 →

Feedback