Follow Discord
Sweep 30 Oct 2026 · 01:02Z Build v2.1.314 532 read Stable v2.1.308 Latest v2.1.314 Next v2.1.314 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.314 ·

New setting blocks file writes outside the working directories

blockWritesOutsideWorkingDirectories stops Claude's file tools writing outside your working folders and protects settings files, but is not sent to remote runs

Group of 3 Use it now Notable New Features
JSON All of v2.1.314
Use it nowTier: how much it should matter to you
5Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
PermissionsArea: what it touches
New FeaturesKind: in v2.1.314,
What probably matters to youSection of the release

Unclear Only the new messages are confirmed, so it is unclear whether this setting itself is new or already worked before.

What

A new permissions setting, blockWritesOutsideWorkingDirectories (in full, permissions.blockWritesOutsideWorkingDirectories), stops Claude Code from writing files outside the working directories. The working directories are the folders the session has been given to work in. The setting mirrors the existing blockReadsOutsideWorkingDirectories, which does the same for reading.

  • Refuses writes by the file tools Write, Edit and NotebookEdit outside the working directories, in every permission mode.
  • Refuses writes to Claude Code's own settings files while it is on.
  • Removes the EnterWorktree and ExitWorktree tools from the tools Claude is offered.
  • Does not limit shell commands, MCP tools (tools supplied by outside servers) or hooks (your own scripts that Claude Code runs at set moments).
  • When a write is refused, the message tells you to add the folder with /add-dir or remove the setting.
  • The description of blockReadsOutsideWorkingDirectories now says that no allow rule lifts it.
  • For remote execution, the sandbox settings now drop blockWritesOutsideWorkingDirectories as well as blockReadsOutsideWorkingDirectories before the settings are forwarded. Before, only the read setting was dropped.

Why

This gives a firm limit on where Claude's file tools can write. Two things to watch: shell commands, MCP tools and hooks can still write elsewhere, and the setting is not passed on to remote runs, so a remote session will not enforce it.

Read from
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtOnly the new messages are confirmed, so it is unclear whether this setting itself is new or already worked before.
Anthropic's release notes agreeAdded permissions.blockWritesOutsideWorkingDirectories: Write, Edit and NotebookEdit refuse paths outside the working directories in every…

See this entry in the whole of v2.1.314 →

Feedback