Claude Code v2.1.139 ·
Configurable Max Turns Environment Variable
EntryKind: in v2.1.139,
ChangesSection of the release
Claude Code now reads CLAUDE_CODE_MAX_TURNS as a default max-turn override when max turns are not otherwise supplied.
Usage
CLAUDE_CODE_MAX_TURNS=50 claude
Details
- The value must be a positive integer.
- Invalid values fail early with a clear error.
Evidence
Max-turn environment parsing (search for "CLAUDE_CODE_MAX_TURNS must be a positive integer")
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
See this entry in the whole of v2.1.139 →