Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.267 ·

CLAUDE_CODE_EXTRA_BODY can no longer inject the 'afk-mode' anthropic-beta

CLAUDE_CODE_EXTRA_BODY can no longer be used to inject the afk-mode beta header; only auto mode itself can send it

TierYou'll noticehow much it should matter to you
Useful1my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaElsewherewhat it touches
KindBug Fixesin v2.1.267,
You'll notice

CLAUDE_CODE_EXTRA_BODY can no longer be used to inject the afk-mode beta header; only auto mode itself can send it

What

Claude Code now strips any afk-mode value out of the beta-feature list in a custom CLAUDE_CODE_EXTRA_BODY (an environment variable that merges extra fields into every API request). If you had set that beta yourself, it's now removed automatically with a warning, because only Claude Code's own auto mode is allowed to send it.

Why

This stops a custom request body from turning on behavior meant only for auto mode, which sends its own afk-mode beta header through the normal request path rather than through CLAUDE_CODE_EXTRA_BODY.

Read from
Names in the bundleCLAUDE_CODE_EXTRA_BODY
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up CLAUDE_CODE_EXTRA_BODY, on Claude Code changelog. * Changed `/bug` and `/feedback` reports to include only model-behavior params (model, system prompt, tools) from the last API request, omitting request metadata and `CLAUDE_CODE_EXTRA_BODY` fields changelog see the edit
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up CLAUDE_CODE_EXTRA_BODY, on Claude Code changelog.

See this entry in the whole of v2.1.267 →