{"version":"2.1.139","anchor":"configurable-max-turns-environment-variable","canonical_anchor":"configurable-max-turns-environment-variable","heading":"Configurable Max Turns Environment Variable","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.139\/e\/configurable-max-turns-environment-variable","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.139","markdown":"### Configurable Max Turns Environment Variable\n\nClaude Code now reads `CLAUDE_CODE_MAX_TURNS` as a default max-turn override when max turns are not otherwise supplied.\n\n**Usage**\n\n`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\"`)"}