Claude Code Dynamic Workflows: Uses, Limits, Alternatives
When a big coding job needs many agents working in parallel, three questions come up: who will orchestrate the run, who joins the decision, and how the result reaches the next person. Claude Code dynamic workflows handle the first part inside Claude Code. A script fans out subagents, and you can pause, resume, save, and rerun the whole job. Other coding harnesses run similar parallel work with their own agents and tools. A shared room solves a different problem: passing results and decisions cleanly across people and runtimes.

What Claude Code dynamic workflows are for
Claude Code already has subagents, skills, and agent teams, where Claude coordinates the work turn by turn. A dynamic workflow moves the plan into a script instead. Loops, branches, and intermediate results live in script variables rather than filling up a single context window. Anthropic covers how to use them for audits, migrations, and cross-checked research in the workflows docs.
Putting the schedule in code avoids common failure modes from long single-window runs: stopping early on a big checklist, grading its own findings too generously, or drifting from the original goal after context compaction. Each subagent gets a clean, focused context while the script tracks the overall plan.
Use a workflow when the parallel work justifies the extra tokens, such as auditing dozens of files, running adversarial reviews on findings, or cross-checking research sources. For a small edit or a quick review, a normal chat or a single subagent is plenty. Workflows burn more tokens, so save them for jobs that genuinely need the scale.
Run a dynamic workflow: Claude Code steps
Dynamic workflows are available on all paid Claude plans, with Anthropic API access, and on Amazon Bedrock, Google Cloud's Agent Platform, and Microsoft Foundry. On Pro, turn them on from the Dynamic workflows row in /config.
You can start one in three ways:
- Ask in plain language (“run a workflow to…”) or include the keyword
ultracodein a human-typed prompt. - Run a bundled command such as
/deep-research. - Turn on session ultracode with
/effort ultracodeif you want Claude to plan workflows automatically for larger tasks (this uses more tokens). Confirmation rules differ in that mode, so follow your active permission mode instead of expecting the same approval prompt every time.
Run /workflows to check progress. The workflow keeps running in the background while you continue using the session, asking for confirmation based on your permission mode.
When a run works the way you want, press s in the workflow UI to save the script. Store it in .claude/workflows/ to share it through the repo, or in ~/.claude/workflows/ to keep it personal. Cross-team distribution goes through a plugin. Anthropic's harness blog post walks through saving and sharing reusable scripts as core parts of the workflow design.
Pause, background, and resume
Closing the workflow UI does not throw away an active run.
- Pause / resume in place: press
pinside/workflowsto pause or resume a run. - Background on exit: if you quit while a workflow is running and agent view is on, the exit dialog may offer “Move to background and exit” so the run keeps going. Choosing “Exit and stop tasks” (or exiting without a background option) stops the run along with the session.
- Same session later: Claude Code stores saved results under that session's directory in
~/.claude/projects/. Reopening that session withclaude --resumelets Claude replay those saved results when you ask to relaunch the workflow. - Fresh session: a brand-new session has no earlier run to resume, so the workflow starts fresh.
If Claude Code cannot find saved results during a relaunch, it returns a nothing to resume error instead of restarting silently. Ask for a new run explicitly when that happens. Keep in mind that paid plans and API accounts still count workflow tokens against your usage limits. Being available on all paid plans does not mean unlimited usage.
A concrete path: auth audit, then handoff
Here is an illustrative walkthrough (not a benchmark) of how an audit run and team handoff fit together:
- Ask for a workflow in Claude Code: audit
src/routes/for missing auth checks, fan out one agent per file, run an adversarial check on the findings, and return a merged report. - Watch
/workflowswhile it runs in the background, pausing if you need to. - Save the script if you want to rerun the same audit next week.
- Hand off for review: put the report somewhere others can open (a PR comment, a shared repo path with its commit SHA, or an uploaded file), then @mention the reviewer or their bot in a shared channel with that link. A person still makes the merge call.
Steps 1 through 3 run inside Claude Code. Step 4 crosses over to other people or harnesses. A local file path on your laptop is not a handoff, because teammates and bots on other machines cannot read it until you publish or upload it.

Illustrative workflow: not a product screenshot or a performance claim.
Looking for an OpenCode dynamic workflow?
If you want similar parallel orchestration in OpenCode, start with what OpenCode ships out of the box. Claude Code has a built-in dynamic-workflow runtime with /workflows, pause/resume, and savable scripts. OpenCode uses native agents and subagents for multi-step work on that host. Its ecosystem docs also list extensions for workflows, scheduling, and context, while community plugins like opencode-dynamic-workflows run parallel or sequential worker sessions from JSON workflow definitions. Those are separate community installs rather than Claude's workflow runtime.
- Claude Code dynamic workflows: first-party script orchestration built into Claude Code.
- OpenCode path: native agents and subagents, plus optional community runners. Running multi-step work there does not require a chat room. Pi has a similar third-party extension (pi-dynamic-workflows), though it is not built in; its README describes a prototype without persisted runs or resume, and this article did not install or benchmark it.
Stick with OpenCode when the whole job fits on that host. Bring in a shared room only when people and bots on different machines need a persistent thread.
What about Codex or Cursor workflows?
Other harnesses handle related parallel orchestration in their own ways rather than copying Claude Code's JavaScript workflow engine.
Codex: OpenAI documents native subagent workflows that split work in parallel and roll up the results (subagents docs), along with the Codex SDK for scripting task orchestration in code.
Cursor: Cursor provides parallel and background subagents, plus Automations that trigger Cloud Agents on a schedule or event (subagents, Automations). Together, these tools cover parallel execution and scheduled jobs inside Cursor.
For everyday editing tradeoffs, see Cursor vs Claude Code: editing workflows and costs.
How to choose
Compare the three setups by who runs the job, who joins decisions, how results get handed off, and where permissions live.
Claude Code dynamic workflows
- Who orchestrates execution? The first-party JS workflow script and
/workflows. - Who joins decisions? Mostly you in that Claude Code session.
- Cross-runtime? One Claude Code session and its subagents.
- How do results hand off? In-session report; save and share the script for reruns.
- Where do permissions apply? Claude Code tool permissions, sandbox, and run confirmations.
- Usage limits: plan or API token quotas (separate from permission to act).
Other harness path (OpenCode, Codex, Cursor)
- Who orchestrates execution? That tool's agents, subagents, SDK, Automations, or community runners.
- Who joins decisions? Whoever uses that harness setup.
- Cross-runtime? Usually one host product unless you add bridges.
- How do results hand off? That harness's logs, exports, or cloud-agent outputs.
- Where do permissions apply? That harness's tool permissions, sandbox, and confirmations.
- Usage limits: that product's plan or API quotas, if any.
Shared room (for example Alook)
- Who orchestrates execution? People and bots decide next steps in messages; each harness still runs its own tools.
- Who joins decisions? Several humans and bots can address each other.
- Cross-runtime? Yes: Claude Code, Codex, Cursor CLI, and OpenCode seats can share a channel.
- How do results hand off? Durable threads, @mentions, shared links, and clear next owners.
- Where do permissions apply? Conversation access in the room; tool authority stays on each bot's host.
From audit report to release decision
An audit finishes when it outputs a report, but shipping still takes a reviewer and a decision. Share the report and commit, name the reviewer, and write down what happens next. In Alook, that handoff stays in a channel thread: a Codex bot can check the findings, a person decides whether to merge, and the next session can pick up from the same record.
Each bot keeps its own identity on a local runtime. You choose a computer and a healthy runtime on that machine (Claude Code, Codex, Cursor CLI, or OpenCode where supported). Server, channel, and thread rules control who can read the conversation, while local files and tools stay under each owner's runtime. You can self-host the open-source server or sign up online with a connected local runtime. Rooms coordinate the handoff between people and agents; they do not replace the subagent scheduler inside Claude Code, Codex, Cursor, or OpenCode.
For running two runtimes under one owner, see Claude Code and Codex on the same team. For multi-owner rooms, see humans and AI agents in one room.
Claude Code dynamic workflows FAQ
What are Claude Code dynamic workflows?
They are Claude Code's first-party way to fan out many subagents from a JavaScript script you can pause, resume, save, and rerun. Use them when one chat cannot coordinate the parallel work, and you still want the orchestration inside Claude Code.
What is a Claude Code dynamic workflow good for?
Large parallel jobs inside one Claude Code session: codebase audits, big migrations, cross-checked research, and other tasks that need dozens of focused subagents. They use more tokens than a normal chat, so they fit complex, high-value work better than routine edits.
Can I resume a Claude Code dynamic workflow after I quit the terminal?
Yes, within the same session path. You can pause and resume from /workflows. If you exit while a run is going, you may move it to background or stop it. Saved results stay under that session; claude --resume can replay them when you relaunch. A brand-new session has no earlier run to resume and starts a fresh workflow.
Is there an OpenCode dynamic workflow like Claude Code?
OpenCode does not ship Claude's named JavaScript workflow engine. It does have native agents and subagents, plus community or third-party runners for multi-step work. That path covers similar jobs on OpenCode without requiring a chat room.
Is there a Codex dynamic workflow equivalent?
For a Codex dynamic workflow, use native subagents to split parallel work or the Codex SDK to orchestrate tasks programmatically. Claude Code's named JavaScript dynamic-workflow engine is a separate feature.
When is a shared room better than staying in Claude Code alone?
Stay in Claude Code dynamic workflows when the hard part is parallel execution inside one session. Move the conversation to a shared room when people and bots on different harnesses need a durable thread, a named receiver, and decisions that outlast that session. Rooms do not replace Claude's workflow engine.