Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.277 ·

set_max_thinking_tokens gains a new thinking_display option and stricter validation

The set_max_thinking_tokens tool supports a new 'highlights' display mode and validates its inputs more strictly

Group of 2 Use it now Internal Changes
JSON All of v2.1.277
Use it nowTier: how much it should matter to you
4Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
Thinking DisplayArea: what it touches
Internal ChangesKind: in v2.1.277,
What probably matters to youSection of the release

Unclear The finding does not say what triggers this control or who sets these values.

What

  • The thinking_display parameter of the set_max_thinking_tokens tool now accepts a new mode, in addition to summarized and omitted, that shows one short title per stretch of thinking instead of a full prose summary. This mode only works for Claude Code sessions that Anthropic itself hosts; on any other client, the request still succeeds but silently falls back to omitted once the API rejects the value.
  • A tightened validation schema now requires max_thinking_tokens to be an integer or null, and thinking_display to be one of a fixed set of values or null, with a matching error message when the input doesn't fit.

Why

The new display mode gives a more scannable view of Claude's thinking on supported sessions, while the stricter validation makes sure invalid values for these settings produce a clear error instead of being silently accepted.

Read from
Names in the bundlemax_thinking_tokensthinking_display
What the documentation says
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 max_thinking_tokens, on Agent SDK reference - Python. | `max_thinking_tokens` | `int \| None` | `None` | *Deprecated* - Maximum tokens for thinking blocks. Use `thinking` instead | agent-sdk/python see the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtThe finding does not say what triggers this control or who sets these values.
Anthropic's documentation agreesAnthropic's documentation has since written up max_thinking_tokens, on Agent SDK reference - Python.

See this entry in the whole of v2.1.277 →

Feedback