What this thread does
Anthropic's 2.1.305 notes fix workflow resume re-running completed pipeline()/parallel() agents instead of using the journal, and 2.1.318 fixes finished agents running again after a usage-limit resume, subject to the documented replay rules (checked 2026-11-17).
The problem
You ran a dynamic workflow (/deep-research, a prompt with ultracode, or /effort ultracode) and a single request ate a big share of your limit, because dozens of agents ran on your most expensive model.
What the docs say
Dynamic workflows are a script Claude writes that spawns many subagents; the script holds the loop and the results, so Claude's context sees only the final answer. A run can use meaningfully more tokens than the same task in conversation. Cost levers from the workflow docs:
- Model choice: each workflow agent's model is picked in the same order as for subagents; a model the script names for a stage counts as the per-invocation model. If nothing assigns one, the agent runs on your session model. Check
/modelbefore a large run, or ask Claude to use a smaller model for stages that do not need the strongest one. - Size guideline:
workflowSizeGuideline(/config workflowSizeGuideline=small) tells Claude to aim for fewer than 5 agents (mediumunder 10,largeunder 50). Default is medium, or small on Pro. It is advice, not a cap. - Warning: a
Large workflowmessage appears above 25 agents or about 1.5 million projected tokens; a size guideline you choose replaces the 25-agent threshold with its agent count. It does not stop the run. Stop it from/workflows. Ultracode hides the warning. - Try a slice first: run on one directory or a narrow question.
The new variable
The 2.1.296 release notes (9 October 2026) add CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL to run every workflow agent on one model while other subagents keep theirs. I did not find it on the env-var page I read, so confirm the exact value format in your version. Haiku 5.5 became the default Haiku in 2.1.293: $0.10 in and $0.50 out per million tokens, with a higher rate above 100K-token prompts.
{ "env": { "CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL": "haiku" } }
What people say
An X post by a roundup account (16 October) says Anthropic shared a trick: let Opus write the plan as a script and swarm Haiku 5.5 in parallel so Opus only sees the result. I could not trace it to a primary Anthropic page; treat it as a pitch. Verifier and cross-check stages may need a stronger model than the workers.
Mistakes to check
- Setting a cheap model for a stage that judges others.
- Forgetting prompt-cache behaviour: workflow agents cache for five minutes by default (
subagentPromptCacheTtlextends it, at a higher write rate). - Running the full repo first.
Limits
Not run by me; Haiku quality on your task is untested here.
Sources
Primary sources: the Claude Code dynamic workflows docs and the release notes for v2.1.296 and v2.1.293, read on 18 October 2026.
- Confirms: workflow agents pick their model in the same order as subagents, falling back to your session model; the advice to check
/modelor ask for a smaller model on easy stages; the size guideline values (small under 5, medium under 10, large under 50; default medium, small on Pro); theLarge workflowwarning above 25 agents or 1.5 million projected tokens (a chosen size guideline replaces the 25-agent threshold), advisory only and hidden under ultracode; a five-minute workflow agent cache by default withsubagentPromptCacheTtlto extend it. Release 2.1.296 (9 October) addedCLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL; 2.1.293 (7 October) made Haiku 5.5 the default Haiku at $0.10 and $0.50 per million tokens ($0.50 and $2.50 above 100K-token prompts). - Not confirmed: the accepted values for the new variable (the env-var page did not list it in the part I read), and the pitch that Opus writes a script and Haiku does the swarm. The docs say nothing assigns a cheaper model by default.
Started from a post by @Anthropic, packaged by the editor. Original post