Source Intelligence
Reading a new release v2.1.251 Analysing changes · 2/5 Deeper second pass · 4/5 agents 427 findings $12.75 so far

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.0.1 Home All releases olderv2.0.0 v2.0.2newer
Claude Code v2.0.1

Extended Thinking Detection for API Calls

What: Added automatic detection of extended thinking content in conversation history to ensure accurate token counting and proper API parameter configuration.

How it works: When Claude Code needs to count tokens for API calls, it now scans through the message history to detect if any assistant responses contain thinking or redacted_thinking blocks. If detected, it automatically includes the appropriate thinking parameters in the API call.

Details:

  • Detects both thinking and redacted_thinking content types
  • Automatically adjusts token counting for conversations with extended thinking
  • Ensures API calls include proper thinking budget parameters (1024 tokens)
  • Improves accuracy when estimating costs for conversations using extended thinking
  • Evidence: uS2() at line 376194 (new detection function), enhanced TZ1() at line 376212 and dS2() at line 376234

See this entry in the whole of v2.0.1 →