Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.269 ·

Worktree cleanup hardened against redirected/relinked paths

Worktree cleanup now checks for redirected symlinks before deleting anything, and refuses if it can't confirm safety

TierYou'll noticehow much it should matter to you
Useful3my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaGit Worktreeswhat it touches
KindBug Fixesin v2.1.269,
You'll notice

Worktree cleanup now checks for redirected symlinks before deleting anything, and refuses if it can't confirm safety

What

When Claude Code removes or cleans up a git worktree, it now performs extra safety checks first: it traces the full chain of paths involved and checks whether the worktree location has been redirected by a changed symlink. If it can't confirm the deletion target is actually contained where it should be, it now refuses to delete anything, warns you to manually check sensitive locations like .git/hooks first, and leaves the worktree's git registration in place.

Why

A symlink pointing a worktree path somewhere unexpected could otherwise cause cleanup to delete the wrong files, including files outside the intended worktree. Refusing to act when safety can't be confirmed, and calling out .git/hooks specifically, protects against deleting or exposing sensitive files.

See this entry in the whole of v2.1.269 →