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.271,
ImprovementsSection of the release
What
Before running git worktree prune to clean up stale git worktrees (linked working directories for a repo), Claude Code now vets the repository first. It refuses to prune when the repo can't be verified as legitimate, for example if it lacks a real .git directory or bare root, has a commondir file, or has an unlistable .git/worktrees folder, and it reports a specific refusal reason for each worktree path instead of pruning blindly.
Why
This prevents Claude Code from running worktree cleanup against a repository structure it can't confidently recognize, avoiding unsafe or mistaken pruning.