🧩thinking Option
Also known as ThinkingConfig, Agent SDK thinking, maxThinkingTokens, Claude Agent SDK thinking
The option that says if Claude thinks before it speaks, and for how long.
Think of it like
It is like telling a kid to think first, or to just say it.
Example
Ben's agent plans hard database moves. He keeps thinking on adaptive, so Claude thinks hard on the tricky steps and moves fast on easy ones.
Why it matters
Thinking costs tokens and time. This option is how you trade them for better answers.
Definition
Example code
typescript
thinking: { type: "adaptive" }Common mistake
Key takeaways
- 1Adaptive. The model decides.
- 2Enabled. A fixed token budget.
- 3Disabled. No thinking, where allowed.