Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.333 ·

Clearer error when managed settings block plugins from making a worktree

With --worktree, Claude Code now explains when your organization is not allowed by managed settings, instead of showing only a generic hook hint

You'll notice Improvements
JSON All of v2.1.333
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.

Read from
Names in the bundle--worktree
Since it was published

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 since A 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-codebases see the edit
Confirmed since Anthropic'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` changelog see 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.

See this entry in the whole of v2.1.333 →

Feedback