Claude Code's file tools can refuse edits outside your working directories

A new setting makes Write, Edit, and NotebookEdit refuse paths outside your working directories, in every permission mode.

Share

Claude Code's Write, Edit, and NotebookEdit tools can now refuse paths outside your working directories, in every permission mode. Set permissions.blockWritesOutsideWorkingDirectories and those three tools stay inside the project. Shell commands, MCP tools, and hooks aren't covered. Use sandboxing to limit where shell commands write.

Reads already have a matching setting. You'll need Claude Code 2.1.314 or later, and an organization can deploy it in managed settings.

Earlier updates

Oct 30, 2026
Oct 29, 2026
Oct 28, 2026
All updates