Guide · Claude Code for a team
What are Claude Code dynamic workflows, and what do they cost?
A Claude Code dynamic workflow is a JavaScript script Claude writes that runs many subagents at once, in the background, while your session stays free. The script holds the plan and the intermediate results, so only the final answer reaches Claude's context. Every agent sends its own requests, so a run can use far more tokens than the same task done in conversation. Through Selan, each agent runs on the company's own accounts.
What is a dynamic workflow in Claude Code?
Subagents, agent teams and workflows can all run a multi-step task. The difference is who holds the plan.
| Subagents | Agent teams | Workflows | |
|---|---|---|---|
| Who decides what runs next | Claude, turn by turn | The lead, turn by turn | The script |
| Where results live | Claude's context window | A shared task list | Script variables |
| Scale | A few tasks per turn | A handful of peers | Dozens to hundreds of agents per run |
| Interrupted | Restarts the turn | Teammates keep running | Resumable in the same session |
Anthropic's examples are a codebase-wide bug sweep, a 500-file migration, research whose
sources are cross-checked, and a plan drafted from several angles. Workflows run in the CLI,
Desktop, the IDE extensions, claude -p and the Agent SDK. On a Pro plan they are
off until you turn on the Dynamic workflows row in /config.
How do you start a workflow in Claude Code?
- Run a bundled one.
/deep-researchfollowed by a question fans out web searches, cross-checks the sources and returns a cited report. - Ask for one. Put the keyword
ultracodein your prompt, or write "use a workflow". The keyword works only in a prompt you type, not with-p, a scheduled task or a relayed comment. - Let Claude decide.
/effort ultracodehas Claude plan a workflow for every substantive task in the session.claude --effort ultracodealso sets the effort level toxhigh. - Save one. In
/workflows, pressson a run. A script saved to.claude/workflows/is shared with everyone who clones the repository and runs as/<name>.
Claude Code asks before a run: every time in manual mode, unless you chose not to be asked
again for that saved workflow, on the first launch only in auto mode, and never in bypass
permissions mode. In -p and the Agent SDK a run needs a
Workflow allow rule, auto mode or a hook. The agents use your permission rules.
How many tokens does a Claude Code workflow use?
Anthropic publishes no rate for a run. Each agent sends its own requests on top of the main conversation's, and runs count toward your plan's usage and rate limits.
- The runtime caps a run at 16 agents at once by default and 1,000 agents in total.
- A
Large workflowwarning appears once a run schedules more than 25 agents or its projected total passes 1.5 million tokens. It does not stop the run. - Ultracode makes every request bigger. One request can become several workflows in a row, and the warning does not appear while it is on.
- Each agent picks its model in the order subagents use. A model the script names for a stage counts as the model passed for that call; otherwise the agent runs on your session's model.
- Agents share a cache. Agents with the same model, effort, type, tools, schema and directory read the first one's cached prefix. A workflow agent's cache lasts five minutes by default, on a subscription too.
Anthropic's advice is to run a workflow on a small slice first, watch each agent's tokens in
/workflows and stop the run there. Asking for a smaller model for simple stages
also helps: Claude Sonnet 5.5 lists at $2 input and $10 output per million tokens, half of
Opus 5.5's $4 and $20.
A workflow's cost is its agents: every one sends its own requests.
autoContinueAtUsageLimit on. Anywhere else, an agent refused at a limit fails.
Relaunching after the reset runs the failed agents again; on v2.1.318 and later, agents that
had finished return their saved results.
How does a company control workflows for every developer?
Put the settings in managed settings, which a project or a developer cannot undo:
{
"workflowSizeGuideline": "small",
"maxEffortLevel": "high"
}
workflowSizeGuidelineis advice, not a cap.smallasks for fewer than 5 agents,mediumfewer than 10 andlargefewer than 50. The default ismedium, orsmallon Pro."disableWorkflows": trueturns workflows off for everyone, ultracode included. The Claude Code admin settings page has the same toggle. A run already going keeps going.- No managed setting turns off ultracode alone. An effort cap such as
maxEffortLevellowers the level a session runs at, but leaves ultracode on. - An
availableModelsallowlist covers workflow agents. A blocked model moves to a substitute by the same rules as for subagents.
None of this shows a company what a run spent, or stops one developer's run from spending too much.
What does Selan do with a workflow's requests?
Selan is a hosted gateway that runs Claude Code and Codex on the accounts your company already pays for. A workflow runs behind it as the steps above describe, and every agent's requests go through it.
- Logs mark each workflow agent's request as Workflow under Request, as they mark the main conversation, subagents and compaction, with the model it ran on.
selanturns on Claude Code's gateway hint headers for this. - Each alias runs on a model your company has switched on. A stage the script puts on
sonnetruns on Claude Sonnet 5.5; a model switched off is unreachable, whichever agent names it. - Every agent counts toward one person's spend limit. The session and its agents are the same developer, so a run cannot spend past that developer's limit.
- The effort limit an owner sets per model maker applies to every agent, so an agent asking for
xhighruns at the cap. - Workflow agents get the five-minute cache, as subagents do; how Selan keeps a team's cache warm has the rest.
The model switches are listed in what an owner sets, and the models each provider serves are in providers. What a repository's sessions cost is in usage practices, and a limit per person is on spend limits per developer.
Free for up to three seats, and the Free plan needs no card.
When is Claude Code's own setting the better answer?
For running a workflow, always: it is Claude Code that writes the script, starts the agents and chooses their models, through a gateway or not. A size guideline, an effort cap and the off switch in managed settings cost nothing.
A gateway adds what Claude Code does not keep for a company: which agent spent what, one list of the models anyone may reach, and a limit per person that a run cannot pass. Which model a subagent runs on covers the model order workflow agents follow, and Claude Code agent teams covers the other way to run many sessions at once.
The short version
- A dynamic workflow is a script Claude writes that runs many subagents in the background and returns one answer.
- Start one with
/deep-research, theultracodekeyword or/effort ultracode. - Each agent sends its own requests; a run is capped at 16 agents at once and 1,000 in total.
workflowSizeGuidelineis advice;disableWorkflowsin managed settings, or its toggle on the admin settings page, turns workflows off for everyone.- Through Selan, every agent runs on a model your company switched on, shows in Logs and counts toward its developer's limit.
How dynamic workflows run, start, cost and are turned off are as Anthropic's workflows page, costs page, model configuration page and settings reference (code.claude.com/docs/en/workflows, /costs, /model-config and /settings-reference) stated them on 22 November 2026. Workflows change with nearly every Claude Code release: check the date before relying on them. The prices are Anthropic's list prices as Selan's model catalog held them on that date, and what Selan does is as its command line, gateway and control app stated it then.