Skip to content

Claude Code 2.1.314 adds a working-directory write boundary

Updated Claude Code

Summary

A new write restriction and group-scoped gateway routing accompany idle compaction and startup fixes.

Date
Pricing
Not stated in the sources we cited.

Claude Code 2.1.314 introduces permissions.blockWritesOutsideWorkingDirectories. When configured, Write, Edit and NotebookEdit refuse paths outside the working directories in every permission mode. The note names those tools; it should not be read as a blanket guarantee about every command or external integration.

Gateway and long-session changes

Claude apps gateway upstreams can carry an optional IdP groups list, restricting which developers are sent to that upstream, including during failover. Bedrock upstreams can log the guardrail filter that fired without including the matched text.

VS Code and Desktop's Code tab gain idle compaction for conversations above 200K tokens. A summary is used on the next message if the prompt cache has expired; this does not establish a measured latency or cost improvement.

Automation behavior to check

Headless startup failures now produce an error and exit code 1 instead of silently returning success. The release also corrects sandbox handling when resuming into a worktree and clarifies displays for blocked calls that did not execute. Operators should test their own permission configuration and startup-error handling after upgrading.

See the claude-code hub.

More from Claude Code

View all

Questions

What is Claude Code?

The repository describes it as an agentic coding tool that lives in your terminal, understands your codebase, and handles routine tasks and git workflows through natural language commands.

Is Claude Code open source?

Not stated in the cited sources. The GitHub API does not report a recognized license for the repository.

Does Claude Code support MCP?

The docs overview lists connecting your tools with MCP, and the v2.1.295 release notes include MCP fixes.

Filed on Agent Radar. Claims in this note are limited to the sources above.