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.333,
ImprovementsSection of the release
What
When you start Claude Code with --worktree and it can first check whether worktree setup is refused, it now does that check before registering plugin worktree hooks. A worktree hook is a command a plugin runs to create the separate working copy. If the check refuses, those hooks are not registered.
If the folder is then not a git repository, the error now says: "The organization you're signed in to isn't allowed by this computer's managed settings, so plugins can't make a worktree here. Use a login from an allowed organization." Before, it only suggested configuring a WorktreeCreate hook.
Why
On a computer with managed settings, the settings an administrator controls, a worktree failure used to show a generic message. It now names the real cause and tells you to sign in with an allowed organization.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Added sinceA small documentation edit on Set up Claude Code in a monorepo or large codebase touched a line naming --worktree after this was published.The `--worktree` flag starts a session in a new git worktree so changes stay isolated from your main checkout. By default it checks out the entire repository. In a large repository, the `worktree.sparsePaths` setting uses git sparse-checko…large-codebasessee the edit
Confirmed sinceAnthropic's documentation has since written up --worktree, on Claude Code changelog.* Fixed worktrees starting from the wrong branch or local HEAD after Claude moved into another repository, and with `--worktree` in some bare repositories whose default branch isn't `main`changelogsee the edit
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up --worktree, on Claude Code changelog.