selan.ai

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.

SubagentsAgent teamsWorkflows
Who decides what runs nextClaude, turn by turnThe lead, turn by turnThe script
Where results liveClaude's context windowA shared task listScript variables
ScaleA few tasks per turnA handful of peersDozens to hundreds of agents per run
InterruptedRestarts the turnTeammates keep runningResumable 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-research followed by a question fans out web searches, cross-checks the sources and returns a cited report.
  • Ask for one. Put the keyword ultracode in 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 ultracode has Claude plan a workflow for every substantive task in the session. claude --effort ultracode also sets the effort level to xhigh.
  • Save one. In /workflows, press s on 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 workflow warning 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.

Good to know: a run pauses at a usage limit and continues after the reset only in an interactive terminal or Desktop session signed in with a claude.ai subscription, with 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"
}
  • workflowSizeGuideline is advice, not a cap. small asks for fewer than 5 agents, medium fewer than 10 and large fewer than 50. The default is medium, or small on Pro.
  • "disableWorkflows": true turns 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 maxEffortLevel lowers the level a session runs at, but leaves ultracode on.
  • An availableModels allowlist 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. selan turns 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 sonnet runs 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 xhigh runs 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.

Start for free

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

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.