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

Safer cleanup and resume of agent worktrees

Old agent worktrees are no longer cleaned up in untrusted repositories, and resuming a worktree is more careful with links

You'll notice Bug Fixes
JSON All of v2.1.333
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
Bug FixesKind: in v2.1.333,
Bug FixesSection of the release

Unclear It is not clear whether these changes are switched on for everyone by default.

What

A worktree is a separate working copy of a git repository, which Claude Code can create so an agent works without touching your main folder. Three changes:

  • Cleanup of old agent worktrees is skipped when you have not trusted the repository's root folder.
  • When a worktree is resumed, it keeps its old starting point if moving it would change its symbolic links (shortcuts to other files).
  • If resetting a worktree fails, the links it added are now removed. Before, it was resumed unchanged.
Why

Claude Code does less to worktrees in folders you have not trusted, and a failed resume no longer leaves stray links behind.

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 clear whether these changes are switched on for everyone by default.

See this entry in the whole of v2.1.333 →

Feedback