Briefs · Taipei time (GMT+8)

Claude Code v2.1.314 adds a control to keep writes in the working directory

一句重點:With the new setting enabled, Claude Code's three file-writing tools are confined to the working directory in every permission mode.

發生什麼事

Anthropic's Claude Code v2.1.314 (v2.1.314) adds permissions.blockWritesOutsideWorkingDirectories. Turn it on and requests from Write, Edit, and NotebookEdit that target a path beyond the working directory are rejected, regardless of which permission mode is selected. The release also allows a Claude apps gateway upstream to include an optional groups list. We haven't tested this ourselves (🗣 self-reported).

01Sources

  • v2.1.314: Anthropic's official Claude Code release on GitHub, dated 2026-10-30 at 01:06 UTC (09:06 Taipei time); it lists permissions.blockWritesOutsideWorkingDirectories and an optional groups list for a Claude apps gateway upstream.