CLAUDE_CODE_CCR_FOLD_FIRST_TURN_RESCAN
Updated by Alex Sorokoletov
CLAUDE_CODE_CCR_FOLD_FIRST_TURN_RESCAN is a Claude Code environment variable. Added in v2.1.287 and still present in v2.1.295. It is not in the official reference.
| Status | Present in v2.1.295 |
|---|---|
| Added | Added in v2.1.287 |
| Category | Other |
| Official docs | Not listed |
How to set it
For one session, export it in the shell that starts Claude Code:
export CLAUDE_CODE_CCR_FOLD_FIRST_TURN_RESCAN=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"CLAUDE_CODE_CCR_FOLD_FIRST_TURN_RESCAN": "<value>"
}
}Related variables
CLAUDE_CODE_EXIT_AFTER_FIRST_RENDER: Exit after first UI render (testing).CLAUDE_CODE_INVESTIGATE_FIRST: Instructs the agent to read and investigate before acting — enforcing "read before write." Converts an agent that might immediately start editing into one that first gathers context.CLAUDE_CODE_USE_CCR_V2: Use Claude Code Router v2 for cowork sessions.CLAUDE_SLOW_FIRST_BYTE_MS: Default 30,000ms.CLAUDE_CODE_CCR_EARLY_HYDRATE_PREFETCHCLAUDE_CODE_CCR_SURFACECLAUDE_CODE_PER_TURN_TIMINGCLAUDE_CODE_SILENT_TURN_REMINDER
Frequently asked questions
Which Claude Code version has CLAUDE_CODE_CCR_FOLD_FIRST_TURN_RESCAN?
Added in v2.1.287 and still present in v2.1.295.
How do I set CLAUDE_CODE_CCR_FOLD_FIRST_TURN_RESCAN?
Export it before starting Claude Code (export CLAUDE_CODE_CCR_FOLD_FIRST_TURN_RESCAN=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.