{"name":"CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL","slug":"claude-code-workflow-subagent-model","family":"env","title":"Environment variables","noun":"environment variable","description":"Setting `CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL` chooses which model subagents use during a workflow run, separately from other subagents","description_source":"entry","described_by":{"version":"2.1.296","anchor":"new-env-var-claude-code-workflow-subagent-model-overrides-th"},"presence":{"first_seen":"2.1.296","removed_in":null,"in_current_build":true,"newest_mined":"2.1.296","builds":1,"mined_builds":139,"first_cited":{"version":"2.1.296","released_at":"2026-10-09 16:58:10","spans":2}},"aliases":[],"entries":[{"version":"2.1.296","anchor":"new-env-var-claude-code-workflow-subagent-model-overrides-th","heading":"New CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL picks the model for workflow subagents","line":"Setting `CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL` chooses which model subagents use during a workflow run, separately from other subagents","released_at":"2026-10-09 16:58:10","reason":"found in this entry's text, named in this entry"}],"entries_total":1,"docs":[{"source":"claude-code","path":"changelog","title":"Claude Code changelog","documented":false}],"docs_total":1,"gates":[],"related":[{"name":"CLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTS","slug":"claude-code-workflow-max-concurrent-agents","description":"Workflow tool's concurrent-agent limit can now be overridden with an environment variable"},{"name":"CLAUDE_CODE_WORKFLOW_PREFIX_STAGGER_MS","slug":"claude-code-workflow-prefix-stagger-ms","description":"Parallel workflow agents stagger their first call to share cache; tune with an env var."},{"name":"CLAUDE_CODE_WORKFLOW_PROMPT_PROVENANCE","slug":"claude-code-workflow-prompt-provenance","description":"Workflow runs now label whether a person or a schedule triggered them, and quote the request."},{"name":"CLAUDE_CODE_WORKFLOW_SIZE_WARNING_AGENTS","slug":"claude-code-workflow-size-warning-agents","description":"Agent-count threshold for the `Large workflow` warning: it shows when a workflow schedules more agents than this. It takes precedence over a cap from the `workflowSizeGuideline` setting, the `tengu_ochre_gantry` flag's `agents` value and the default `25`; a value that is not a positive number is ignored. The warning is not computed while ultracode is active or when that flag has `enabled: false`, and it also fires on the separate token threshold."},{"name":"CLAUDE_CODE_WORKFLOW_SIZE_WARNING_TOKENS","slug":"claude-code-workflow-size-warning-tokens","description":"Token threshold for the `Large workflow` warning on a running workflow. The warning fires when the tokens used so far, or a projection of average tokens per started agent (`70000` before any agent has started) times the number of scheduled agents, exceeds it. Default is the `tokens` field of the `tengu_ochre_gantry` flag, else `1500000`; an unset, non-numeric or `0` value uses the default, and no warning is computed while ultracode is active or when that flag has `enabled: false`."},{"name":"CLAUDE_CODE_WORKFLOWS","slug":"claude-code-workflows","description":"Environment flags are now parsed centrally, so values are compared to explicit true or false."}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-workflow-subagent-model","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}