You'll notice
Used and maximum token counts are now computed and pushed out as context usage whenever they change, feeding live usage indicators.
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.
Names in the bundlecontext_usage
Documented inclaude-code/agent-sdk/typescript