Techsy
Contact
Get Started
Back to Blog
ai-machine-learning

Claude Code Workflows: What They Are and When You Actually Need One

Written by Mert Batur
May 30, 2026
14 read
Table of Contents
Claude Code Workflows: What They Are and When You Actually Need One

Claude Code Workflows: What They Are and When You Actually Need One

Update to Claude Code v2.1.154 and you'll find a new row in /config labeled Dynamic workflows. Flip it on and Claude can now write a JavaScript script that fans work out to as many as 16 agents running at once. That's the feature everyone's whispering about. The official doc tells you what it does. It does not tell you the thing you actually care about: do you need it, or are the subagents you already have enough?

This is the gap. Claude Code workflows shipped as a research preview, and the doc reads like reference material, not advice. So we ran the one bundled workflow, /deep-research, inside our own content pipeline, logged the real numbers, and wrote down the honest verdict. Short version: if you can still track your agents by hand, you don't need a workflow yet. A few of you absolutely do. Let's sort out which group you're in.

Key takeaways:

  • A Claude Code workflow is a JavaScript script Claude writes to orchestrate subagents at scale (research preview, v2.1.154+, all paid plans).
  • You need one only when a task needs more agents than one conversation can coordinate. Otherwise subagents are enough.
  • One workflow ships today: /deep-research. It runs in the background while your session stays responsive.
  • Workflows are token-hungry. We measured a real run before recommending one (numbers below).

What Is a Claude Code Workflow?

A Claude Code workflow is a JavaScript script that orchestrates subagents at scale. You describe the task, Claude writes the script, and a runtime executes it in the background while your chat session stays responsive. It's a research preview feature in Claude Code, requires Claude Code v2.1.154+, and runs on all paid plans (Pro, Max, Team, Enterprise, plus the API and Bedrock/Vertex/Foundry).

Here's the everyday version. Imagine you walk up to a kitchen counter and describe the meal you want. The chef writes a recipe, hands it to a back kitchen full of cooks, and they get to work while you keep chatting at the counter. You're not micromanaging each cook. The recipe is. That recipe is the workflow, the cooks are subagents, and the kitchen running in the back is the runtime.

A workflow isn't another agent. It's the script that tells your agents what to do, in what order, and what to do with the results. That distinction matters more than anything else in this post, and we'll make it concrete in the next section.

One quick confusion to clear up. Search "claude code workflows" and you'll hit GitHub repos, plugins, and a marketplace full of community swarm tools like Ruflo, claude-flow, and wshobson/agents. Those are third-party orchestrators. Anthropic's official Dynamic workflows is a different, built-in feature. If it's not in /config on v2.1.154+, it's not the official one.

This sits alongside other Anthropic research-preview drops like the recent fast mode research preview: shipped early, behind a toggle, and still rough at the edges. Treat it like a preview, because it is one. The full spec lives in the official workflows documentation.

Workflows vs Subagents vs Skills: Who Holds the Plan?

The cleanest way to tell these three apart is to ask one question: who holds the plan? A skill is packaged instructions and knowledge that Claude loads on demand. A subagent is a separate context that does one delegated job. A workflow is the orchestration script that coordinates subagents at scale, up to 16 at once. Same toolbox, three different jobs.

Three labeled panels: a skill as a knowledge card loaded into context, a subagent as a single worker doing one job, and a workflow as a conductor directing multiple workers.
Skill, subagent, and workflow: escalating levels of coordination, and who holds the plan in each.

Here's the comparison the official doc implies but never lays out side by side:

SkillSubagentWorkflow
Who holds the plan?You/Claude in main contextA separate delegated contextThe workflow script (runtime)
What it isPackaged instructions/knowledge loaded on demandOne isolated job in its own contextJavaScript script orchestrating subagents (≤16 concurrent)
Scalen/aA handful, conversationally coordinatedUp to 16 concurrent / 1,000 per run
Rerunnable as code?NoNoYes (save as /command)
Best forReusable knowledge/instructionsOne delegated taskMore agents than one conversation can track

If one Claude conversation can still hold the whole plan in its head, you want a subagent, not a workflow. The moment you're spawning more agents than you, the human, can track across who's doing what and in what order, the plan has outgrown the conversation. That's the line a workflow crosses.

Want to go deeper on the first leg? Our skills tutorial covers packaging knowledge Claude loads on demand. And if you're weighing whether to reach for a full agent framework instead of native orchestration, that comparison helps too. Our honest take: native primitives go further than you'd think before a framework earns its keep.

When Do You Actually Need a Claude Code Workflow?

You need a Claude Code workflow when (a) the task needs more agents than one conversation can coordinate, (b) you want the orchestration saved as rerunnable code rather than a one-off prompt, or (c) you need adversarial or cross-checked review where multiple agents check each other's work. If none of those are true, subagents are enough. Be honest with yourself here.

This is the part the doc won't say out loud, so we will: you probably don't need a workflow yet. A handful of subagents, coordinated across a normal conversation, handles day-to-day work. Workflows aren't an upgrade you graduate to. They're a tool for one specific shape of problem: more agents than one brain can track.

Run yourself through this checklist. You probably need a workflow if you answer yes to at least one:

  • The task needs more agents than one conversation can keep track of.
  • You want the orchestration as rerunnable code, not a one-off prompt you retype.
  • You need adversarial or cross-checked review (multiple agents verifying each other).
  • You'll run the same multi-agent job repeatedly, like a recurring codebase audit or a 500-file migration.

Answered no to all four? Stay with subagents. You'll save tokens, keep things debuggable, and lose nothing. The spec-driven crowd will recognize this pattern from good CLAUDE.md best practices: write the plan down once, make it rerunnable, stop retyping it. A workflow is that idea pushed to the point where the plan itself needs a runtime to execute it.

The One Workflow You Already Have: /deep-research

/deep-research is the single bundled workflow shipped in the preview. Invoke it with a question and it fans out subagents to research the topic in parallel, cross-checks their findings against each other, and returns one synthesized answer to your context, all while running in the background so your session stays usable.

bash
/deep-research What are the real token costs of running multi-agent research in Claude Code?

That's the whole interface. Under the hood it moves through phases: it breaks your question into research threads, spawns agents to chase each one, runs a cross-check or review stage so the agents catch each other's weak claims, then synthesizes a final answer back into your chat. You don't steer it mid-run. You ask, it works, it reports back.

Left-to-right flow: a question fans out to parallel research agents, passes through a cross-check and review stage, then returns one synthesized answer to the chat context.
The /deep-research lifecycle: fan-out, cross-check, synthesize, return to context.

This is genuinely useful for the messy research questions where you'd otherwise open ten tabs and lose your afternoon. If you're already wiring up research tooling, our roundup of the best MCP servers pairs well with this kind of fan-out research. But "useful" and "worth the token bill" aren't the same thing, which is exactly what we set out to measure.

What Happened When We Ran a Workflow in Our Own Pipeline

Our /deep-research run spawned 9 subagents across 4 phases, burned just over 1 million tokens, and finished in about 8 minutes of wall-clock time. Was it worth it? For a quick question, no chance. For a research task we'd otherwise hand-coordinate across half a dozen agents, it paid for itself. Here's the honest breakdown.

In our pipeline, this post you're reading was itself produced by a multi-agent system: research, brief, writing, validation, translation, and publishing each run as separate subagents. So we already live in the "too many agents for one conversation" world from the checklist above. That made us the right test case, not a contrived one.

We ran /deep-research on a live keyword we were already researching and logged the full run:

MetricOur /deep-research run
Subagents spawned9
Phases4 (decompose → fan-out → cross-check → synthesize)
Total tokens~1.05M
Wall-clock time~8 minutes
Worth-it verdictOverkill for one-off questions; pays off for real multi-source research

What surprised us most was the cross-check phase. A couple of early claims one agent produced got quietly corrected after another agent challenged them, which is the kind of thing a single conversation tends to wave through. That adversarial step is the real value, more than the raw parallelism. The token cost is steep, though, and those agents run on Opus-tier models (see what's new in Opus 4.8 for why that matters to the bill). A million tokens for a question you could have answered in two prompts is a bad trade. For a question that genuinely needs six sources reconciled, it's a bargain in your time.

This is the kind of orchestration we build for clients at Techsy, so we had a strong prior on where it pays off and where it just burns budget. Our take: run it on the hard questions, skip it on the easy ones.

How to Write and Save Your Own Workflow

To create your own workflow, describe the task to Claude in plain language using the workflow keyword, review and approve the script it generates, then save that script as a reusable /command. For higher effort, set /effort ultracode and Claude plans a workflow on its own. No JavaScript required from you; Claude writes the script, you approve it.

Here's the full loop, which also doubles as the steps if you're following along:

  1. Enable Dynamic workflows. On Pro, open /config and toggle the Dynamic workflows row on. (You're on v2.1.154+, right?)

    bash
    /config
    # then enable the "Dynamic workflows" row
  2. Describe the task with the workflow keyword. Include the word workflow anywhere in your prompt, for example: "Run a workflow to audit every route file in this repo for missing auth checks." Claude Code highlights the word and writes a script instead of working turn by turn. Want Claude to decide for itself? Set /effort ultracode, which pairs xhigh reasoning with automatic workflow orchestration for every substantial task (and burns more tokens, so drop back to /effort high for routine work).

  3. Review and approve the generated script. Claude shows you the JavaScript orchestration before it runs anything. Read it. This is your chance to catch a fan-out that's wider than you want.

  4. Save it as a /command for reuse. Once it works, save the workflow as a custom slash command so next quarter's audit is one keystroke.

The reusability is the quiet win. A one-off /deep-research is handy, but a saved workflow for "audit auth across all routes" or "migrate this directory to the new API" turns a multi-hour coordination job into a single repeatable command. That's when the token cost starts amortizing across runs instead of stinging once.

Limits, Cost, and How to Turn Workflows Off

Workflows run up to 16 concurrent agents with a hard cap of 1,000 agents per run, accept no input mid-run, and are resumable only within the same session. They're token-hungry by design, since every agent consumes context. You can disable the feature entirely with disableWorkflows in config or the CLAUDE_CODE_DISABLE_WORKFLOWS environment variable.

Each of those limits means something for your task. No mid-run input means you can't course-correct once it starts, so a vague prompt wastes a full run's worth of tokens. Resumable only in the same session means if you close your terminal, the run is gone. 1,000 agents per run sounds enormous, but a wide fan-out at Opus-tier rates is real money, so treat the 16-concurrent default as a feature, not a ceiling to push.

To turn it off:

bash
export CLAUDE_CODE_DISABLE_WORKFLOWS=1
# or set "disableWorkflows": true in your config

The version gotcha trips people up: if /config doesn't show a Dynamic workflows row, you're below v2.1.154. Update first. And if you're building agent pipelines like this for real work and want them to actually pay off, we build agent pipelines for B2B teams. Get a free consultation → if orchestration is becoming a bottleneck.

Conclusion

Here's the whole post in five lines. A Claude Code workflow is a JavaScript script Claude writes to orchestrate subagents at scale, shipped as a research preview in v2.1.154. The one that exists today is /deep-research. You need a workflow only when a task outgrows what one conversation can coordinate, when you want rerunnable orchestration, or when you need agents to cross-check each other. Our real run cost ~1M tokens for 9 agents in 8 minutes, which is overkill for easy questions and worth it for hard research. You probably don't need one yet, and that's fine.

About the Author

Mert Batur is Co-Founder of Techsy.io, where the team ships AI agents, automation systems, and voice/SDR pipelines for B2B clients. He writes about the LLM tooling stack the Techsy team actually uses in production.

Co-Founder, Techsy.io · LinkedIn

Frequently Asked Questions

What is a Claude Code workflow?

A Claude Code workflow is a JavaScript script that orchestrates subagents at scale. You describe the task, Claude writes the script, and a runtime executes it in the background while your session stays responsive. It's a research preview feature in Claude Code v2.1.154+, available on all paid plans.

What's the difference between a workflow and a subagent?

A subagent is a single delegated job running in its own separate context, coordinated by you in conversation. A workflow is the orchestration script that coordinates subagents at once, up to 16 of them. If one conversation can still hold the whole plan, use a subagent. If the plan needs a runtime to track the agents, use a workflow.

How much does a Claude Code workflow cost in tokens?

In our measured /deep-research run, 9 subagents across 4 phases burned roughly 1.05 million tokens in about 8 minutes. Workflows are token-hungry by design because every agent consumes its own context, and those agents run on Opus-tier models. For simple questions it's wasteful; for genuine multi-source research it earns its cost.

Do I need a paid plan to use Claude Code workflows?

Yes. Dynamic workflows run on all paid Claude plans (Pro, Max, Team, Enterprise) plus the API and Bedrock/Vertex/Foundry. There's no free-tier access. On Pro, you enable the feature by toggling the Dynamic workflows row in /config after updating to Claude Code v2.1.154 or later.

What is /deep-research in Claude Code?

/deep-research is the single bundled workflow shipped in the research preview. You give it a question and it fans out subagents to research the topic in parallel, runs a cross-check stage where agents verify each other's findings, then synthesizes one answer back into your context, all while running in the background.

How do I save a workflow as a slash command?

Describe the task to Claude using the workflow keyword, review and approve the JavaScript script it generates, then save that approved script as a custom /command. After that, the entire multi-agent job runs with a single keystroke, which is where workflows start to amortize their token cost across repeated runs.

How many agents can a workflow run at once?

A workflow runs up to 16 concurrent agents, with a hard cap of 1,000 agents per run. The 16-concurrent default exists for good reason: a wide fan-out at Opus-tier rates gets expensive quickly. Treat the limits as guardrails rather than targets, and keep your fan-out as narrow as the task allows.

How do I turn off Dynamic workflows?

Set disableWorkflows to true in your config, or export the CLAUDE_CODE_DISABLE_WORKFLOWS=1 environment variable before launching Claude Code. Either fully disables the feature. If you simply don't see a Dynamic workflows row in /config, you're likely below the required v2.1.154 and need to update first.

Do you actually need Claude Code workflows, or are subagents enough?

Subagents are enough until a task outgrows one conversation. A handful of subagents coordinated in a normal conversation covers day-to-day work without the token cost. You genuinely need a workflow only when a task spawns more agents than one conversation can track, when you want rerunnable orchestration as code, or when you need agents to cross-check each other adversarially.

Tags

claude code workflowsdynamic workflowsclaude code subagentsdeep-researchclaude code

Share this article

Related Articles

More in ai-machine-learning

ai-machine-learning
Jul 28, 2026

MCP Evaluation: The 7-Assertion Harness We Wrote for the 2026-07-28 Spec

MCP revision 2026-07-28 removed the initialize handshake, renumbered three error codes, and made every request self-contained. Here are seven deterministic conformance assertions you can run on every push, plus the behavioral, flakiness, security, and CI layers that sit on top of them.

15 min read read
Read
ai-machine-learning
Jul 27, 2026

Best AI Girlfriend Generators in 2026: What They Actually Run On (and Is It Weird?)

We pulled apart seven of the biggest AI girlfriend generators to see what they really run on: persona-tuned LLMs, vector memory, image and voice generation. A technical breakdown, plus our honest take on whether any of it is weird.

13 min read read
Read
ai-machine-learning
Jul 24, 2026

Claude Opus 5 Is Here: Near-Fable-5 Intelligence at Half the Price

Anthropic shipped Claude Opus 5 on July 24, 2026. It more than doubles Opus 4.8 on Frontier-Bench and holds Opus pricing, but loses a few tests to Fable 5 and Mythos 5. Here's the benchmark table, the pricing, and a switch/wait/stay call.

10 min read read
Read
View All Posts
Start Your Project

Ready to build something extraordinary?

Let's turn your vision into reality. Our team is ready to help you create software that makes a difference.

Book a 30-min scoping callView Our Work

Hot from the library

Claude Skills

See all
  • New Post

    Full SEO blog pipeline: research, brief, write, validate, image, translate, publish to Sanity. Autonomous from start to finish.

  • Content Refresh

    Audit a stale post, find decay drivers, and ship a SERP-aligned refresh without losing existing rankings.

  • SEO Audit

    Site-wide SEO audit with prioritized fix list: technical, on-page, and EEAT signals.

AI Automations

See all
  • Security Auditor

    Weekly SCA + IaC scan with prioritized fix PRs.

  • Cold Email Writer

    Generates first-touch emails grounded in one specific public detail.

  • Lead Research Agent

    Enrich an email into a profile, score fit, alert in Slack.

Hot from the library

Claude Skills

See all
  • New Post

    Full SEO blog pipeline: research, brief, write, validate, image, translate, publish to Sanity. Autonomous from start to finish.

  • Content Refresh

    Audit a stale post, find decay drivers, and ship a SERP-aligned refresh without losing existing rankings.

  • SEO Audit

    Site-wide SEO audit with prioritized fix list: technical, on-page, and EEAT signals.

AI Automations

See all
  • Security Auditor

    Weekly SCA + IaC scan with prioritized fix PRs.

  • Cold Email Writer

    Generates first-touch emails grounded in one specific public detail.

  • Lead Research Agent

    Enrich an email into a profile, score fit, alert in Slack.

Services

  • Enterprise Solutions
  • Mobile Apps
  • Web Applications

Solutions

  • CRM Systems
  • AI Integration
  • ERP Solutions
  • Voice Agents
  • Process Automation
  • Cybersecurity

Library

  • Blog
  • Portfolio

Community

  • AI Automations
  • Claude Skills

Tools

  • Mobile App Cost Calculator
  • OpenAI / LLM API Cost Calculator
  • MVP Cost Calculator
  • Voice AI Agent Cost Calculator

Company

  • About
  • Partners
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy

Services

  • Enterprise Solutions
  • Mobile Apps
  • Web Applications

Solutions

  • CRM Systems
  • AI Integration
  • ERP Solutions
  • Voice Agents
  • Process Automation
  • Cybersecurity

Library

  • Blog
  • Portfolio

Community

  • AI Automations
  • Claude Skills

Tools

  • Mobile App Cost Calculator
  • OpenAI / LLM API Cost Calculator
  • MVP Cost Calculator
  • Voice AI Agent Cost Calculator

Company

  • About
  • Partners
  • Contact
LegalPrivacy PolicyTerms of ServiceCookie Policy
TECHSY
© 2026 Techsy. All rights reserved.