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.331,
ImprovementsSection of the release
What
A worktree is a separate working copy of your git repository that Claude Code can create so work happens apart from your main checkout. Claude Code now refuses a worktree name if any part of it matches a protected config folder. It shows an error saying the name is a protected config folder. Refused names include:
.vscode
.idea
.claude
.husky
.cargo
other similar folders
A name reserved for the downloads folder is also refused.
The check sits behind a remote switch that is on when the server sends nothing.
Why
This stops a worktree from being created inside, or over, a folder that holds editor, tool or Claude Code configuration.