CLAUDE_CODE_THINKING_RESUMPTION
Updated by Alex Sorokoletov
CLAUDE_CODE_THINKING_RESUMPTION is a Claude Code environment variable. Added between v2.1.326 and v2.1.331 and still present in v2.1.332. It is not in the official reference.
| Status | Present in v2.1.332 |
|---|---|
| Added | Added between v2.1.326 and v2.1.331 |
| Category | Models and thinking |
| Official docs | Not listed |
How to set it
For one session, export it in the shell that starts Claude Code:
export CLAUDE_CODE_THINKING_RESUMPTION=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"CLAUDE_CODE_THINKING_RESUMPTION": "<value>"
}
}Related variables
CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING: Disable adaptive thinking mode.CLAUDE_CODE_DISABLE_THINKING: Completely disable extended thinking.CLAUDE_CODE_FIRST_CALL_THINKING_TITLES: Set it to allow a thinking title on the session's first human turn, used only when thinking summaries are not already shown; otherwise this is off, and when on it is reported with the request.CLAUDE_CODE_THINKING_DISPLAY_UPDATES: Overrides whether Claude's in-progress thinking and connector text render during a turn.DISABLE_INTERLEAVED_THINKING: Interleaved thinking beta.MAX_THINKING_TOKENS: Likely controlled via API settings now.ANTHROPIC_CUSTOM_MODEL_OPTIONANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION
Frequently asked questions
Which Claude Code version has CLAUDE_CODE_THINKING_RESUMPTION?
Added between v2.1.326 and v2.1.331 and still present in v2.1.332.
How do I set CLAUDE_CODE_THINKING_RESUMPTION?
Export it before starting Claude Code (export CLAUDE_CODE_THINKING_RESUMPTION=value), or add it to the "env" object in ~/.claude/settings.json to apply it to every session.
All variables, searchable: Claude Code environment variables.