Claude Code v2.1.319 tightens auto mode and moves MCP tasks to the background

With telemetry or feature flags off, including behind LLM gateways, auto mode now asks or denies calls it cannot verify. The release also adds a latency-optimize command for the API.

November 5, 2026

Claude Code v2.1.319, released on November 6, changes how auto mode behaves when telemetry or feature flags are off, including behind LLM gateways. Calls it cannot verify are now asked about or denied, with no classifier fallback. Setting CLAUDE_CODE_AUTO_MODE_SERVER=0 keeps auto mode on, and Bedrock, Vertex and Foundry are unchanged.

MCP tasks now move to the background, which CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND turns off. New settings and commands include permissions.denyInsteadOfPrompting, /claude-api latency-optimize and CLAUDE_CODE_DISABLE_FEATURE_FLAGS, while /usage now shows spend for developers on gateways.

One fix matters for scripts: claude -p used to exit 0 when auto mode refused a request, and this has been corrected.

Source: Claude Code release notes.