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

Apps running Claude Code can clean up subagent worktrees themselves

When the app running Claude Code has its own worktree manager, subagent worktrees are removed through it and not kept for uncommitted changes

Under the hood Improvements
JSON All of v2.1.334
Under the hoodTier: how much it should matter to you
2Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
SubagentsArea: what it touches
ImprovementsKind: in v2.1.334,
ImprovementsSection of the release

Unclear It is not clear which apps that run Claude Code supply their own worktree manager.

What

A worktree is a separate working copy of a git repository. Subagents (helpers Claude starts for part of a task) can work in their own worktree.

When the program hosting the session provides its own worktree manager, Claude Code now removes subagent worktrees through that manager instead of through git. In that case it also no longer keeps a worktree because it has uncommitted changes. Before, cleanup always went through git.

Why

This changes how worktrees are cleaned up in apps that host Claude Code, such as desktop or SDK apps. In those apps, a subagent's worktree with uncommitted changes may be removed instead of kept.

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 which apps that run Claude Code supply their own worktree manager.

See this entry in the whole of v2.1.334 →

Feedback