{"name":"CLAUDE_CODE_AUTO_MODE_MODEL","slug":"claude-code-auto-mode-model","family":"env","title":"Environment variables","noun":"environment variable","description":"Claude Code now recognises `CLAUDE_CODE_MCP_SERVE_WORKSPACE_ROOT` alongside its other variables for running as an MCP server","description_source":"entry","described_by":{"version":"2.1.302","anchor":"new-env-var-claude-code-mcp-serve-workspace-root"},"presence":{"first_seen":"2.1.160","removed_in":null,"in_current_build":true,"newest_mined":"2.1.308","builds":129,"mined_builds":149,"first_cited":{"version":"2.1.302","released_at":"2026-10-16 16:48:28","spans":2}},"aliases":[],"entries":[{"version":"2.1.302","anchor":"new-env-var-claude-code-mcp-serve-workspace-root","heading":"New CLAUDE_CODE_MCP_SERVE_WORKSPACE_ROOT environment variable","line":"Claude Code now recognises `CLAUDE_CODE_MCP_SERVE_WORKSPACE_ROOT` alongside its other variables for running as an MCP server","released_at":"2026-10-16 16:48:28","reason":"found in this entry's text"},{"version":"2.1.302","anchor":"background-sessions-anthropic-base-url-not-forwarded-to-oth","heading":"Background sessions in another folder no longer inherit your API base URL","line":"A background session started in a different folder no longer receives `ANTHROPIC_BASE_URL`, and `CLAUDE_CODE_AUTO_MODE_MODEL` is now passed on","released_at":"2026-10-16 16:48:28","reason":"found in this entry's text"},{"version":"2.1.302","anchor":"auto-mode-classifier-model-resolution-with-server-override-a","heading":"CLAUDE_CODE_AUTO_MODE_MODEL can now be overridden by server settings or policy","line":"The model you pin with CLAUDE_CODE_AUTO_MODE_MODEL for auto mode's safety check is ignored, with a warning, when server or policy says otherwise","released_at":"2026-10-16 16:48:28","reason":"found in this entry's text, named in this entry"},{"version":"2.1.302","anchor":"claude-code-auto-mode-model-added-to-a-list-that-includes-cl","heading":"CLAUDE_CODE_AUTO_MODE_MODEL now sits on a list of environment variables","line":"Claude Code now lists `CLAUDE_CODE_AUTO_MODE_MODEL` with `PATH`, `CLAUDE_CODE_EXTRA_BODY` and `CLAUDE_CODE_HOST_CREDS_FILE`, and refers to it in more places","released_at":"2026-10-16 16:48:28","reason":"found in this entry's text, named in this entry"}],"entries_total":4,"docs":[{"source":"claude-code","path":"changelog","title":"Claude Code changelog","documented":false},{"source":"claude-code","path":"errors","title":"Error reference","documented":false},{"source":"claude-code","path":"model-config","title":"Model configuration","documented":false},{"source":"claude-code","path":"permission-modes","title":"Choose a permission mode","documented":false}],"docs_total":4,"gates":[],"related":[{"name":"CLAUDE_CODE_AUTO_MODE_ARTIFACT_CONSENT_RULE","slug":"claude-code-auto-mode-artifact-consent-rule","description":"The rule stopping Claude publishing artifacts you didn't ask for can now be removed remotely."},{"name":"CLAUDE_CODE_AUTO_MODE_CLASSIFY_ASK_USER_QUESTION","slug":"claude-code-auto-mode-classify-ask-user-question","description":"In auto mode, a question can be classified and handled instead of halting the run."},{"name":"CLAUDE_CODE_AUTO_MODE_EXTERNAL_PERMISSIONS","slug":"claude-code-auto-mode-external-permissions","description":null},{"name":"CLAUDE_CODE_AUTO_MODE_OUTCOME_CODES","slug":"claude-code-auto-mode-outcome-codes","description":"The switch controlling outcome codes in auto mode now runs through a wrapper with an empty branch."},{"name":"CLAUDE_CODE_AUTO_MODE_REPO_VISIBILITY","slug":"claude-code-auto-mode-repo-visibility","description":"Auto mode's awareness of whether your repo is public now has its own environment variable and config field."},{"name":"CLAUDE_CODE_AUTO_MODE_SERVER","slug":"claude-code-auto-mode-server","description":"Controls whether Claude Code asks the server to [review auto mode actions](\/docs\/en\/permission-modes#server-side-classifier-review). Set to `0` to use Claude Code's own classifier requests instead. On a direct connection to the Anthropic API, requires v2.1.281 or later. The linked section lists which sessions ask the server when the variable is unset, and from which version. Requires Claude Code v2.1.271 or later"},{"name":"CLAUDE_CODE_AUTO_MODE_TIER","slug":"claude-code-auto-mode-tier","description":"Setting `CLAUDE_CODE_AUTO_MODE_TIER` to any value, even \"full\", makes Claude Code use the \"strict\" auto mode tier"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-auto-mode-model","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}