{"version":"2.1.336","anchor":"claude-code-extra-body-can-no-longer-override-auto-mode-fiel","canonical_anchor":"claude-code-extra-body-can-no-longer-override-auto-mode-fiel","heading":"CLAUDE_CODE_EXTRA_BODY can't override fields auto mode's server check needs","tier":"notice","area":"Auto Mode","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336\/e\/claude-code-extra-body-can-no-longer-override-auto-mode-fiel","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336","markdown":"### CLAUDE_CODE_EXTRA_BODY can't override fields auto mode's server check needs\n\nWhen auto mode's server check is in use, Claude Code drops safeguards, messages, tools and tool_choice from CLAUDE_CODE_EXTRA_BODY\n\n**What**\n\n`CLAUDE_CODE_EXTRA_BODY` is an environment variable holding JSON that Claude Code merges into every request it sends to the API. When auto mode's server check is in use, Claude Code now leaves these fields out of it:\n\n- `safeguards`\n\n- `messages`\n\n- `tools`\n\n- `tool_choice`\n\nIt logs a warning naming the fields it left out.\n\n**Why**\n\nAuto mode's server check reads or depends on these fields. Leaving them out stops a value in the variable from breaking the safety check's requests. If you set any of these fields through the variable, they will not take effect in those requests.\n\n- Area: Auto Mode\n- Names: `CLAUDE_CODE_EXTRA_BODY`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: yes"}