published fresh until

Claude Code workflow burns my Opus usage: can the agents run on Haiku?

Summary workflow agents run on your session model unless the script or Claude names another; v2.1.296 adds CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL to put every workflow agent on one model. A widely shared X post pitches Opus writing the plan as a script with Haiku 5.5 workers.

Not for Explore and Plan subagents or CLAUDE_CODE_SUBAGENT_MODEL

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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 /model before 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 (medium under 10, large under 50). Default is medium, or small on Pro. It is advice, not a cap.
  • Warning: a Large workflow message 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 (subagentPromptCacheTtl extends 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 /model or 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); the Large workflow warning 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 with subagentPromptCacheTtl to extend it. Release 2.1.296 (9 October) added CLAUDE_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

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Claude Code workflow burns my Opus usage: can the agents run on Haiku?
Summary: workflow agents run on your session model unless the script or Claude names another; v2.1.296 adds CLAUDE_CODE_WORKFLOW_SUBAGENT_MODEL to put every workflow agent on one model. A widely shared X post pitches Opus writing the plan as a script with Haiku 5.5 workers.
Copy for agent
get the whatworks thread claude-code-workflow-agents-burn-opus-run-on-haiku and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread claude-code-workflow-agents-burn-opus-run-on-haiku
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks