Follow Discord
Sweep 06 Nov 2026 · 01:32Z Build v2.1.319 537 read Stable v2.1.311 Latest v2.1.318 Next v2.1.319 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.271 ·

New auto-mode guard: subshells and multi-directory-change commands can't bypass the read block

With blockReadsOutsideWorkingDirectories on, Bash subshells and multi-cd commands are now refused instead of evaluated

You'll notice Improvements
JSON All of v2.1.271
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
PermissionsArea: what it touches
ImprovementsKind: in v2.1.271,
ImprovementsSection of the release
What

When the permissions.blockReadsOutsideWorkingDirectories setting is turned on (which makes file tools refuse reads outside your designated working directories), Bash commands containing a subshell, or that change directory more than once, are now refused outright with a "cannot be checked against the read block" message. Previously these were evaluated and could potentially be auto-approved. An exception still applies under a specific worktree/sandbox condition.

Why

Subshells and multiple directory changes make it hard to reliably tell what directory a command will actually read from, so this closes a possible way to bypass the read-location restriction.

Read from
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 How Claude remembers your project touched a line naming blockReadsOutsideWorkingDirectories after this was published. When you set it in a project's `.claude/settings.json` or `.claude/settings.local.json`, Claude Code honors it under the same [workspace trust rule as hooks in settings files](/docs/en/permissions#what-runs-before-you-trust-a-folder). Whil… memory see the edit
Confirmed since Anthropic's documentation has since written up blockReadsOutsideWorkingDirectories, on Claude Code changelog. * Fixed Bash commands the permission checker cannot fully analyze skipping the prompt under `permissions.blockReadsOutsideWorkingDirectories`, and a subshell hiding a dangerous `rm` in bypass mode changelog see the edit
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up blockReadsOutsideWorkingDirectories, on Claude Code changelog.
Anthropic's release notes agreeFixed Bash commands with two directory changes, a subshell, or a cd+git chain skipping the prompt under…

See this entry in the whole of v2.1.271 →

Feedback