Skip to content
BENIBIX Learn

CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING

AI⌨️ Claude CodeConfiguration

Also known as CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING=1

Set to 1, it gives two old models a fixed thinking budget.

Think of it like

It is like you give a set time for each sum. You do not give more if it is hard.

Example

Jack wants every step on Sonnet 4.6 to think the same amount, for a fair test. He turns adaptive thinking off and sets a fixed budget.

Why it matters

A fixed budget makes cost and speed easy to guess on the models that allow it.

Definition

CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING set to 1 turns off adaptive thinking on Opus 4.6 and Sonnet 4.6. With it on, the model picks how much to think at each step. With it off, the model uses the fixed budget in MAX_THINKING_TOKENS. New models always pick for themselves. So it does nothing there.

Example code

bash
export CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING=1
export MAX_THINKING_TOKENS=8000
claude --model claude-sonnet-4-6
Give Sonnet 4.6 a fixed budget.

Common mistake

Setting it for Opus 4.7 or later. Those always think adaptively, so nothing changes.

Key takeaways

  1. 1
    Two models only. Opus and Sonnet 4.6.
  2. 2
    Fixed budget. From MAX_THINKING_TOKENS.
  3. 3
    Newer models ignore it. Always adaptive.