Friday 30 October 2026 Claude Code v2.1.314 blocks agent writes outside the working directoryPlus: memory files can steer agents into insecure code, written rules beat code precedent, and opencode runs on your Claude login. FIVE BULLETS THE ONE THING Claude Code can keep file writes inside your working directory Claude Code v2.1.314 added a setting called permissions.blockWritesOutsideWorkingDirectories. With it on, Write, Edit and NotebookEdit refuse paths outside the working directories. That holds in every permission mode, including the permissive ones. The release also adds idle compaction to VS Code and the Code tab in Claude Desktop. A conversation over 200K tokens that sits idle gets summarized. The Claude Agent SDK v0.2.175 bundles the same CLI version. Permission modes loosen as you trust a session more. This setting draws a line that stays put when the mode changes. The notes name three file tools only, so test shell commands before relying on it. The skill that grows is setting your agent's blast radius in config, not in the prompt. Turn the setting on in any repo where you let the agent run with fewer approvals. TRY THIS · 15 MINUTES See where Claude Code stops writing outside your project | 1. | Update Claude Code to v2.1.314, or the Agent SDK to v0.2.175. | | 2. | Enable permissions.blockWritesOutsideWorkingDirectories in your Claude Code settings. | | 3. | Ask Claude to create a scratch file in a folder outside the working directory. | | 4. | Confirm Write refuses the path. Then repeat the request in your most permissive mode. |
STORIES SAFE TO IGNORE FROM THE FIELD Tier Your AI Agent's Production Authority by Task Risk John's post argues that agent safety comes from permission tiers, not better prompts. A write boundary that holds in every mode is one such tier. 53 sources read. 102 items. 13 shortlisted. 5 bullets. |