Skip to content
← Back to release · 2.1.282
Improvements / v2.1.282

Server-side auto mode classifier by default

CHANGELOG · original

Changed auto mode to use the server-side classifier by default on a direct Anthropic API connection when telemetry is off (CLAUDE_CODE_AUTO_MODE_SERVER=0 opts out)
Open official changelog ↗

Documentation

Documentation excerpt

Server-side classifier review

In auto mode, Claude Code can ask the server to check the actions that the decision order sends for review, as part of the session's model requests, in place of sending its own classifier requests. These sessions ask:

  • A direct connection to the Anthropic API: in interactive terminal sessions and in -p, Agent SDK, VS Code extension, and desktop app sessions, whatever your plan or account type, as Anthropic rolls it out. Check your session type against these minimum Claude Code versions:
    • In interactive terminal sessions, asking the server requires Claude Code v2.1.271 or later on Pro, Max, Ultra, and Team plans. On Enterprise plans and Claude API accounts, those sessions require v2.1.278 or later.
    • In -p and VS Code extension sessions, asking the server requires Claude Code v2.1.278 or later
    • In Agent SDK and desktop app sessions, asking the server requires Claude Code v2.1.281 or later
    • From v2.1.282, a session that doesn't fetch feature flags, for example because you turned telemetry off, asks the server by default in any kind of session
  • A cloud provider, or an LLM gateway or proxy: on Claude Platform on AWS, Amazon Bedrock, Google Cloud's Agent Platform, and Microsoft Foundry, and whenever you point ANTHROPIC_BASE_URL at an LLM gateway or proxy, whatever your plan. Asking by default requires Claude Code v2.1.278 or later.
  • A signed-in Claude apps gateway session: requires Claude Code v2.1.280 or later
  • A cloud session in an Anthropic-hosted environment: whatever your plan, when you start it from the web, the mobile app, or the desktop app with Cloud selected. Sessions started by a cloud scheduled task ask the server as Anthropic rolls it out.

Where the server reviews the actions, its verdicts decide them. Two other outcomes are possible:

  • The server doesn't review the session: a response completes with no review results, or the server answers that it doesn't review this session. The most common causes are an LLM gateway or proxy that drops the request for review or the results, and a platform, region, or credential that doesn't have server-side checks yet. Claude Code falls back to its own classifier requests. Once that fallback holds for the rest of the session, it shows a notice about classifier request charges on accounts where those requests are billed.

  • The server gives no verdict for an action: Claude Code denies the action rather than run it unreviewed. On any connection, this happens when the response ends before the review results arrive or the results arrive in a form Claude Code can't read. An LLM gateway or proxy that cuts responses short or rewrites the results can cause either. On a direct connection to the Anthropic API, it also happens when the server's check fails for the action, for example by timing out. The server returned no safety verdict covers the denial message, what happens when denials repeat, and what to do.

    If a hook or mod changes an action's input after the server's review, Claude Code can deny the action with no verdict. In interactive terminal and VS Code sessions on a direct connection to the Anthropic API, the denial's text includes a hook changed this call's input after auto mode reviewed it. Its error entry covers what to do.

To skip asking the server and always use Claude Code's own classifier requests, set CLAUDE_CODE_AUTO_MODE_SERVER=0. On a direct connection to the Anthropic API, the variable requires Claude Code v2.1.281 or later. Setting it to 1 there turns server review on in a session that doesn't have it yet, unless you've also set CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1. If you set CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1 and leave CLAUDE_CODE_AUTO_MODE_SERVER unset, Claude Code also stops asking the server, except as Disable pre-release capabilities describes.

Documentation snapshot · 2026-11-20

Change details