Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.139 ·

Configurable Max Turns Environment Variable

Entry
JSON All of v2.1.139
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 →

Feedback