Skip to content

An editorial team and a community building with AI

← All articles

News · Anthropic · 2 min read

Event date: · Published:

Claude Code 2.1.326 enables Code Mode by default, tightens sandbox security

Anthropic's November 16, 2026 release turns on Code Mode for agent team sessions, restricts sandboxed writes to sensitive home folders, and blocks file tools from touching credential files.

Anthropic released Claude Code 2.1.326 on November 16, 2026, turning on Code Mode by default for sessions with agent teams enabled and tightening sandbox and credential protections, according to the Claude Code changelog.

What changed in this release

  • Code Mode, Claude Code's JavaScript-based tool calling, now activates automatically whenever agent teams are turned on.
  • Sandboxed commands on macOS, Linux and WSL no longer write to some sensitive home-folder paths by default; the sandbox.filesystem.allowWrite setting can reopen access to those paths.
  • File tools now refuse writes to credential or sign-in files such as .credentials.json.
  • Plugin MCP bundles (.mcpb, .dxt) now unpack under the plugins directory instead of the former .mcpb-cache location.
  • Git commands run inside isolated worktrees face stricter PATH enforcement, and some git commands are now refused there.
  • The release notes list 59 improvements and 233 bug fixes.

What it means for people building with AI

The sandbox and credential-file hardening closes off real attack surface for Claude Code users running agent teams, since write access to sensitive home-folder paths and credential files is now blocked unless explicitly reopened. Default Code Mode activation changes how tool calls execute for a widely used coding agent, affecting anyone running multi-agent sessions. Teams relying on isolated worktrees for git operations should check the new PATH restrictions, and HIPAA-configured organizations now start in auto mode by default in terminal and VS Code sessions. Full details are in the v2.1.326 release notes on GitHub.


Sources

Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.

Claude Code 2.1.326 enables Code Mode by default, tightens sandbox security | vibecoding.inc