{"version":"2.1.333","anchor":"restricted-blocks-worktree-creation-in-untrusted-folders","canonical_anchor":"restricted-blocks-worktree-creation-in-untrusted-folders","heading":"Worktrees are refused in untrusted folders under --restricted","tier":"notice","area":"Worktrees","scope":"both","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/restricted-blocks-worktree-creation-in-untrusted-folders","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Worktrees are refused in untrusted folders under --restricted\n\nClaude Code now refuses to create a worktree under --restricted in an untrusted folder, or when the repository isn't trusted\n\n**What**\n\nA worktree is a separate working copy of a git repository that Claude Code can create so work happens apart from your main checkout. Claude Code now refuses to create one in two cases:\n\n- Under `--restricted` when the folder is not trusted. The message reads: \"No worktree made: --restricted needs a trusted folder. Run `claude` here to trust it, or run without a worktree.\" This check is on unless it is switched off remotely.\n\n- When the repository itself is not trusted. The message begins: \"No worktree made: this repository isn't trusted...\" This check sits behind a separate remote switch.\n\nTo get past the first refusal, run `claude` in that folder once and accept the trust prompt, or run without a worktree.\n\n**Why**\n\nIt stops Claude Code from setting up a working copy of a repository you have not marked as trusted, which hardens `--restricted` sessions and other untrusted setups.\n\n- Flag `tengu_humming_marble`: Not enough to say (read for one account on one subscription tier against v2.1.333; this account: no value returned, anonymous baseline: no value returned, compiled default: on) These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.\n- Area: Worktrees\n- Names: `--restricted`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: both\n- Heads-up: yes"}