Under the hood
Token usage now records thinking tokens, already counted within output tokens, on turns from builds that log it.
The token-usage schema now records a thinkingTokens field, which is already counted inside outputTokens. This is only populated for turns run on CLI versions that record the field, so it may be partially populated for sessions resumed from older versions.
Names in the bundlethinkingTokens
Documented inclaude-code/agent-sdk/python