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.275 ·

$.model.complete maxTokens is now validated against the actual model's output ceiling, not a fixed global cap

$.model.complete's maxTokens limit now matches each model's real output ceiling instead of one fixed number

Use it now Notable Improvements
JSON All of v2.1.275
Use it nowTier: how much it should matter to you
3Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
Plugin APIArea: what it touches
ImprovementsKind: in v2.1.275,
What probably matters to youSection of the release
What

The hook API's $.model.complete previously rejected any maxTokens value above a single hardcoded limit of 8192, regardless of which model was being used. It now looks up the actual output ceiling for the specific model being called (still capped globally at a larger number) and rejects requests that exceed it with 'maxTokens ${s} is past what ${w} can produce in one reply (${O})'.

Why

Models that can produce longer replies than 8192 tokens are no longer artificially capped, while models with smaller limits are still protected from requesting more than they can actually return.

Read from
Names in the bundlemaxTokens
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.

Added since A small documentation edit on java touched a line naming maxTokens after this was published. Avoid setting a large `maxTokens` value without using streaming. Some networks may drop idle connections after a certain period of time, which can cause the request to fail or [time out](https://platform.claude.com/docs/en/cli-sdks-librari… cli-sdks-libraries/sdks/java see the edit
Confirmed since Anthropic's documentation has since written up maxTokens, on preserved-thinking. .maxTokens(16000L) build-with-claude/preserved-thinking 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 maxTokens, on preserved-thinking.

See this entry in the whole of v2.1.275 →

Feedback