Follow Discord
Sweep 23 Nov 2026 · 19:13Z Build v2.1.331 548 read Stable v2.1.323 Latest v2.1.330 Next v2.1.331 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.331 ·

Cleanup of old agent worktrees can now be skipped

Claude Code's cleanup of leftover agent worktrees now stops early in some situations instead of always running

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

Unclear Which settings and conditions make the cleanup skip is not known.

What

Claude Code clears out old worktrees (separate working copies of your repository) that its agents left behind. This cleanup used to run every time. It now stops early when certain settings and conditions are met.

Why

Old agent worktrees may stay on disk in more cases than before.

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 doubtWhich settings and conditions make the cleanup skip is not known.

See this entry in the whole of v2.1.331 →

Feedback