Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.292 ·

SDK errors can now say your own plan usage limit was reached

SDK error messages gain a usage_limit_reached kind for refusals caused by your plan limit or usage-credit spend cap, with which limit and when it resets

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

The Agent SDK lets programs run Claude Code. The kinds of error its messages can report in api_error now include usage_limit_reached. It means the request was refused because of your account's own limit:

  • a plan limit, whether per session, per week or per model
  • a spend cap on usage credits

When this happens, api_error_params.rate_limit_info says which limit was hit and when it resets.

If the SDK receives an error kind it does not recognise, it now treats the field as empty instead of failing to read the message.

Why

Programs using the SDK can tell that a plan limit was hit, rather than a rule set by an organization, the server slowing requests down, or a rate limit on an API key, without having to read the error text. An unfamiliar error kind no longer breaks reading the whole message.

Read from
Names in the bundleusage_limit_reachedapi_error
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 api_error, on Configure a custom OpenTelemetry collector. | `office_agent.api_error` | Each model call that is refused, fails, is cut off, or that the user stops | office-agents/opentelemetry 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 api_error, on Configure a custom OpenTelemetry collector.

See this entry in the whole of v2.1.292 →

Feedback