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.285,
ImprovementsSection of the release
What
A git worktree is an extra working folder attached to the same repository. Claude Code can clean these up.
It used to run git worktree remove --force directly. It now points git at a checked --git-dir when listing and removing worktrees. If it cannot confirm that git directory, it does not run git and says so. Git's records of worktrees whose folders no longer exist are now removed separately.
Why
This stops cleanup from acting on the wrong repository's worktrees.