{"version":"2.1.336","anchor":"workflow-agent-cap-can-come-from-a-session-setting-agent-li","canonical_anchor":"workflow-agent-cap-can-come-from-a-session-setting-agent-li","heading":"Workflow agent limit can now come from the session, and the per-turn limit is gone","tier":"notice","area":"Workflows","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336\/e\/workflow-agent-cap-can-come-from-a-session-setting-agent-li","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336","markdown":"### Workflow agent limit can now come from the session, and the per-turn limit is gone\n\nThe limit on workflow agents running at once now checks a session value before the environment variable, and the per-turn limit error is gone\n\n**Unclear.** It is not clear what sets the session's own agent limit, so it is unsettled when the environment variable still decides.\n\n**What**\n\nA workflow is a task in which Claude runs several agents at the same time. To decide how many can run at once, Claude Code now first uses a limit set on the session itself. Only if there is none does it fall back to `CLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTS`.\n\nThe old error saying a session's workflows had started as many agents as they may until you write again has been removed. Going over the limit now produces its own error.\n\n**Why**\n\nThis changes how many workflow agents run and when new ones are refused.\n\n- Area: Workflows\n- Names: `CLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTS`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}