Unclear What sets this variable, and what the fallback does when the classifier refuses, is not shown.
In auto mode, a classifier (an automatic checker) decides whether an action is safe instead of asking you. Claude Code now reads the environment variable CLAUDE_CODE_USER_DELEGATED_SESSION_DIRECT_API, meant for sessions using a user-delegated credential on a direct API. An environment variable is a named value set outside Claude Code before it starts. When this one is set:
- The classifier uses its default model rather than choosing one.
- The classifier's third-party role is switched off for the session.
- The classifier uses its default severity thresholds, the levels at which it treats an action as risky.
- A fallback runs when the classifier is unavailable or refuses to answer.
- Allowed MCP tools that change things are always included in what the classifier checks. MCP tools come from separate servers that add abilities to Claude Code.
Without the variable, whether those MCP write tools are included is still decided by a server-side setting that is off by default in the code. In readings taken before this release, that setting came back on for this site's account and for an anonymous check.
Sessions run with a user-delegated direct API credential get their own auto mode behaviour, including a set fallback when the classifier cannot give an answer.
tengu_cowork_auto_mode_include_allowed_write_mcp Off by default, switched on for this accountThe shipped code defaults this off, and the flag server returned on for the one account this site reads on this version. That is the reading that makes the entry above worth a second look, and it still says nothing about your account.
This account: on · anonymous baseline: on · compiled default in v2.1.321: off
These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.
Read once, for one account on one subscription tier, against v2.1.321. It isn't a statement about your account. What a flag value here can and cannot tell you
What sets this variable, and what the fallback does when the classifier refuses, is not shown.
New in this build: CLAUDE_CODE_USER_DELEGATED_SESSION_DIRECT_API