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

Context-usage telemetry callback added

Used and maximum token counts are now computed and pushed out as context usage whenever they change, feeding live usage indicators.

You'll notice Improvements
JSON All of v2.1.259
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
Context WindowArea: what it touches
ImprovementsKind: in v2.1.259,
ImprovementsSection of the release

A new helper computes used and max token counts from the current message history and model, and calls notifyMetadataChanged({ context_usage }) whenever the totals change. This feeds live context-window usage indicators, such as a status bar, rather than being purely internal bookkeeping.

Read from
Names in the bundlecontext_usage
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 context_usage, on Agent SDK reference - Python. async def get_context_usage(self) -> ContextUsageResponse agent-sdk/python 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 context_usage, on Agent SDK reference - Python.

See this entry in the whole of v2.1.259 →

Feedback