Claude CodeRelease

Claude Code 2.1.326 enables Code Mode with agent teams and tightens sandbox permissions

Claude Code 2.1.326 lets you turn on Code Mode while agent teams are enabled; sessions with teams on now start in Code Mode if it was already enabled. Terminal and VS Code sessions with no mode set start in auto mode when the organization policy has not loaded, and organizations with the Claude Code + Cowork HIPAA configuration also default to auto mode, which disableAutoMode turns off. Sandbox and permission behavior tightens in several places: sandboxed commands on macOS, Linux and WSL no longer write to some sensitive home folders by default, file tools refuse writes to sign-in files such as .credentials.json, subagents isolated in a worktree refuse git commands that can rewrite shared branches, and a hook's block decision holds in more cases.

  • Code Mode can be enabled with agent teams on; already-enabled setups start team sessions in Code Mode.
  • Sessions with no mode set default to auto when org policy has not loaded; HIPAA-configured orgs default to auto, disableAutoMode turns it off.
  • Sandboxed commands on macOS, Linux and WSL no longer write to some sensitive home folders by default; sandbox.filesystem.allowWrite can allow them.
  • File tools refuse writes to sign-in files such as .credentials.json; some cp and mv commands ask first.
  • Worktree-isolated subagents refuse git commands that can rewrite shared branches; ExitWorktree refuses removal while background work may still run.
  • A hook's "decision": "block" holds in more cases; adds OTEL_RESOURCE_INCLUDE_HOST and the VS Code claudeCode.promptSuggestions setting.
New featureCritical fixCompatibility

Original evidence · 2026-11-16 14h

Claude Code Releases ↗Based on original text

Why it matters

Default permission and sandbox changes directly affect existing sessions and automation, while Code Mode with teams expands multi-agent usage.