Loading...
Loading...

Dynamic Workflows is the most ambitious feature in Opus 4.8 โ Claude writes its own orchestration script, spins up hundreds of parallel agents, has them adversarially verify each other, and returns only converged results. Here's how it actually works.
Most AI improvements are incremental โ 5% better at coding, slightly faster, slightly cheaper. Dynamic Workflows in Claude Opus 4.8 is not incremental. It's a different architecture for how AI solves problems.
Here's what it does: you describe a complex task. Claude writes a JavaScript orchestration script for it. A runtime executes that script in the background, spinning up up to 1,000 subagents โ 16 running concurrently at any moment โ that tackle the problem from independent angles, adversarially verify each other's outputs, and iterate until results converge. You get back only the verified answer.
That's not "Claude with more steps." That's Claude functioning like a small engineering team.
You: "Audit my entire codebase for security vulnerabilities"
Claude:
1. Plans the work โ breaks into subtasks
2. Writes a JS orchestration script
3. Runtime executes script in background:
โโโ Subagent 1: scan auth layer
โโโ Subagent 2: scan API routes
โโโ Subagent 3: scan database queries
โโโ ... (up to 16 concurrent)
โโโ Verifier agents: try to REFUTE each finding
โโโ Synthesis: converge on confirmed vulnerabilities
4. Returns: verified, deduplicated findingsThe adversarial verification step is what sets this apart. It's not just parallelism โ it's having one set of agents find issues and another set try to disprove them. Only findings that survive scrutiny reach you.
| Constraint | Limit |
|---|---|
| Max concurrent subagents | 16 |
| Max total subagents per run | 1,000 |
| Availability | Enterprise, Team, Max plans |
| Min Claude Code version | v2.1.154 |
| Platforms | CLI, Desktop, VS Code |
The orchestration script is plain JavaScript using the Claude Code workflow runtime primitives:
// Example of what Claude generates for a "find all bugs" task
export const meta = {
name: 'security-audit',
description: 'Full codebase security audit with adversarial verification',
}
phase('Discover')
const files = await agent('List all source files with potential security surface area')
phase('Scan')
const findings = await pipeline(
files,
file => agent(`Scan ${file} for security vulnerabilities`, { schema: FINDINGS_SCHEMA }),
)
phase('Verify')
const verified = await pipeline(
findings.flat().filter(Boolean),
finding => agent(`Try to REFUTE this finding: ${finding.title}`, { schema: VERDICT_SCHEMA })
.then(v => v.refuted ? null : finding)
)
return verified.filter(Boolean)You never write this script yourself โ Claude generates it from your natural language description. You just approve and it runs.
Large codebase analysis โ Security audits, architecture reviews, finding all usages of a deprecated pattern across 500+ files. One prompt, parallel scan, adversarial verification.
Comprehensive research โ "Research everything about X, find contradicting sources, synthesize a fact-checked report." Multiple finders, multiple verifiers, synthesis agent.
Batch migrations โ "Migrate all 200 components from Class components to hooks." Each component gets its own worktree-isolated agent, changes verified before committing.
Test generation โ "Write tests for every function in this module." Parallel agents per function, coverage verifier, consolidation.
Dynamic Workflows has overhead from planning, agent spawn, and verification. Don't use a sledgehammer for a thumbtack.
Here's how I'd use it for something practical โ auditing a large content site:
Prompt: "Audit all 200 blog posts in content/blog/ for:
- Technical accuracy (code examples that won't compile)
- Broken links
- Missing frontmatter fields
- Posts that reference deprecated APIs
Return a prioritized fix list."Without Dynamic Workflows: I'd need to either prompt Claude per-file (tedious) or dump everything into context (hitting limits, losing accuracy).
With Dynamic Workflows: Claude plans the audit, assigns groups of files to parallel subagents, has a second wave verify the findings, returns a clean ranked list. Probably takes 5-10 minutes instead of 2 hours of manual prompting.
Dynamic Workflows spawn many agents. Each agent costs tokens. A 1,000-subagent run on a large codebase could cost $50โ$200+ depending on file sizes and how many verification passes run.
This is not a feature for casual use. It's for:
Think of it like hiring contractors โ expensive, but you're paying for scale and quality you can't match alone.
claude update)/workflows viewThe feature is in research preview โ expect rough edges, occasional failures, and Anthropic iterating on it rapidly over the next few months.
Dynamic Workflows isn't just a feature โ it's Anthropic's answer to the question "what does AGI-adjacent work actually look like in practice?"
Not a single super-intelligent model that thinks for hours. But a coordinated swarm โ planner, executors, verifiers, synthesizer โ each doing what they're good at in parallel, with checks built into the architecture.
This is early. In 6 months, I expect this to be dramatically more capable, cheaper, and easier to use. Getting familiar with it now is worth the investment.
It's the most capable coding model I've used. It's also relentlessly proactive in ways that made me nervous about running it unsandboxed. A week of real usage, real costs, and one genuinely surprising outcome.
Everyone's talking about AI agents. Most tutorials are toy examples. Here's how to build production-ready agents with tool use, memory, and real decision-making.
Fable 5 is more than double Opus 4.8 on the hardest coding benchmarks. It's also 5x the output cost and comes with an export-control history. Here's how I actually decide which one gets the API key.