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.
