{"version":"2.1.337","anchor":"workflow-agent-model-override-can-be-intercepted-by-a-hand","canonical_anchor":"workflow-agent-model-override-can-be-intercepted-by-a-hand","heading":"Workflow agents can be handed to a handler instead of being started","tier":"internal","area":"Workflows","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/workflow-agent-model-override-can-be-intercepted-by-a-hand","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### Workflow agents can be handed to a handler instead of being started\n\nWhen a handler is present, a workflow's agent call goes to it instead of starting an agent, and the subagent model override is skipped\n\n**Unclear.** Where this handler comes from, and whether ordinary use ever has one, is not stated.\n\n**What**\n\nA workflow can start agents, helpers that each handle part of a task. Normally, if `CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL` or `CLAUDE_CODE_SUBAGENT_MODEL_FORCE` is set, Claude Code ignores any model the workflow asked for and always starts the agent.\n\nNow, when a handler is present, Claude Code skips that model override, passes the agent request and its phase to the handler, and uses what the handler returns instead of starting an agent.\n\n**Why**\n\nIt looks like a way to stand in for workflow agents, for example to test a workflow without running real agents.\n\n- Area: Workflows\n- Names: `CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL`, `CLAUDE_CODE_SUBAGENT_MODEL_FORCE`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}