flâneur

Building with extended thinking - Claude Docs

docs.claude.com · 1,439 words · saved by 1 readers

Example: Passing thinking blocks with tool results Tool use without interleaved thinking Tool use with interleaved thinking System prompt caching (preserved when thinking changes) Messages caching (invalidated when thinking changes) Example: Working with redacted thinking blocks

Configure manual extended thinking with a fixed budget_tokens budget on Claude models that support it, and migrate to adaptive thinking. Extended thinking in manual mode gives you direct control over how much Claude thinks. You set a thinking token budget on each request with thinking: {type: "enabled", budget_tokens: N}, and Claude thinks against that budget before it starts its final answer. Manual mode remains useful when your workload requires predictable latency or precise control over thinking costs. This page covers how to set and tune the budget, how manual mode interacts with…

related reading