Prefer reading instead? The full article is available here. The podcast is also available on Spotify and Apple Podcasts. Subscribe to keep up with the latest drops. LLMs excel at individual tasks. But most valuable work isn’t a single task, it’s a coordinated process. Writing a research report, reviewing a large codebase, or evaluating conflicting evidence requires multiple stages of analysis, validation, and synthesis without losing rigor along the way. In this episode, we explore Claude Dynamic Workflows, the multi-agent orchestration framework Anthropic released on May 28, 2026. Rather than forcing everything through a single conversation, Claude generates a JavaScript workflow that defines the phases of work, determines what can run in parallel, and routes information between stages. You’ll learn: * Where dynamic workflows fit on the coordination ladder: why single agents often struggle with laziness, self-preferential reasoning, and goal drift, and when a workflow outperforms a skill, a subagent, or a full agent team. * What happens under the hood: how Claude transforms a prompt into an inspectable execution script, how isolated agents fan out to investigate different aspects of a problem, and how six recurring workflow patterns power most real-world use cases. * What a real workflow looks like in practice: through the example of a deep-research workflow on developer productivity, we'll see how Claude spawned 27 agents, spent roughly $5, and used an independent verification phase to explain a genuine conflict in the literature instead of averaging it away. If you’d rather read than listen, the full article (with diagrams, code examples, and implementation details) is available on Substack: 👉 Enjoyed this episode? Subscribe to The AI Practitioner to get future articles and podcasts delivered straight to your inbox: aipractitioner.substack.com Get full access to The AI Practitioner at aipractitioner.substack.com/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_00Welcome back to the AI Practitioner. I'm Lina Faik, ML Engineer, Consultant and Lecturer in Advanced Machine Learning at Sorbonne University. I help companies turn their data into real outcomes with AI and this is where I share what I learned from actual projects. The deep technical write-ups live on Substack at AIpractitioner.substack.com and these conversations are the audio companion. With me today is Mark who builds developer tooling and has been poking at agent systems for a while but hasn't gone deep on this particular feature yet.
SPEAKER_00Mark, glad to have you.
SPEAKER_01Happy to be here. So what's on the table today?
SPEAKER_00Dynamic Workflows in Cloud Code. But let me start with the thing that pushed me into them. A few weeks ago I wanted to answer a question that sounds simple. Do AI coding assistants actually make developers more productive? Not vibes, actual evidence. So I did the obvious thing. I asked Cloud to go find the studies and write me a report.
SPEAKER_01And it did, presumably.
SPEAKER_00It did. And the report was confident and clean and I didn't trust a word of it.
SPEAKER_01Why not?
SPEAKER_00Because it had clearly stopped early. It found a handful of papers, found a story they agreed on, and declared victory. There's a name for this. Agentic laziness. The agent gathers just enough to build a plausible answer, then stops, even though half the search space is untouched.
SPEAKER_01Hold on, though. Isn't that just a weak prompt? Tell it to try harder, search more, be thorough.
SPEAKER_00That was my first instinct, too. But it's not really a prompt problem. There are three failure modes that show up over and over, and they're structural. Laziness is one. The second is self-preferential bias. The same agent that writes the summary is the one judging whether the summary is good, and it tends to find its own work persuasive.
SPEAKER_01Right. It's grading its own homework.
SPEAKER_00Exactly. And the third is goal drift. On a long task, you summarize, you compact context, you reason in steps, and somewhere along the way the requirements you stated at the very beginning quietly fade out. None of those three get fixed by a better sentence in the prompt. They come from the shape of the work.
SPEAKER_01Okay, so if prompting won't fix it, what's the move?
SPEAKER_00Coordination. And Cloud Code actually gives you a ladder of ways to coordinate from cheap to heavy. The trick is knowing which rung you're on.
SPEAKER_01Walk me up the ladder.
SPEAKER_00Bottom rung, just ask. One prompt. If the whole task fits comfortably in one context window, you're done. Don't overthink it. Next rung up, skills. That's reusable expertise, your standards and procedures packaged so they apply the same way every time. Above that, subagents. You hand a focused chunk of work to a worker, it goes off, does it, comes back with the result, and your main context stays clean.
SPEAKER_01So far, that's all still one brain in charge.
SPEAKER_00It is. Then agent teams. Now a lead agent supervises several long-running peers, assigns them work, manages the collaboration, and at the top, workflows.
SPEAKER_01And what makes the top of the ladder different? More agents? That's the thing, it's not about the number of agents, it's about where the plan lives.
SPEAKER_00With skills, sub-agents, even agent teams, the plan stays inside Claude's head, in the context window. An agent is deciding what to do next and folding every result back into its own reasoning. A workflow takes the plan out of the conversation and puts it into code.
SPEAKER_01Into code how, like it writes a script?
SPEAKER_00Literally. The first thing a workflow produces isn't a report, it's a program. Cloud writes a JavaScript program that says here are the phases, here's what runs in parallel, here's where we verify, here's how we combine the results. That script becomes the source of truth for the run.
SPEAKER_01And the agents?
SPEAKER_00The agents do the actual work, the script just orchestrates them. And here's the part I find elegant. The intermediate results live in the workflow's runtime, not in the conversation. Only what a later phase actually needs or the final answer comes back to Claude's context. So you're not stuffing everything into one window anymore.
SPEAKER_01That's the goal drift problem, isn't it? If the plan is in code, it can't quietly forget the requirements.
SPEAKER_00Right. The code doesn't get tired. It doesn't summarize away your instructions on round 7.
SPEAKER_01So how do you even kick one of these off? Is it a special command?
SPEAKER_00Two ways. You can just say the word workflow in your prompt, which is what I did for the research question, or you turn on UltraCode through the slash dash effort menu, and then Claude decides on its own when a task is big enough to deserve a workflow. And before it goes off and spends my money, do I get to see what it's about to do? You do, and this matters. Before anything runs, you get an approval card. It shows the phases it's planning, it warns you about token usage, and there's a view raw script option so you can read the actual JavaScript before
SPEAKER_00you say go.
SPEAKER_01Good, because I was about to ask about cost. These things sound expensive.
SPEAKER_00They can be, and we'll get to the bill. But let me clear up one confusion first because people mix this up. There's a difference between a static workflow and a dynamic one.
SPEAKER_01I'm guessing static is the predefined kind.
SPEAKER_00Exactly. A static workflow has a fixed structure you build ahead of time. Think Langraph, Crew AI, the agent SDK. Same steps, same branching reused across tasks. A dynamic workflow gets generated for the task in front of you. Claude doesn't pick from a shelf of templates it writes one specifically for this problem.
SPEAKER_01So for my research question, a static one would always run the same search-analyze-synthesize steps. A dynamic one decides how many search agents to launch and whether it needs extra verification.
SPEAKER_00That's it, exactly. And there are two more commands people confuse with workflows, slash-dead-all and slash-loop, the clean way to hold them apart. A workflow is how the work is organized, slash-dead-all is when it's considered done, your definition of done, and slash-loop is when it should run again.
SPEAKER_01So they're not competitors, they stack.
SPEAKER_00They stack beautifully. A workflow coordinates the research agents, a goal can require agreement across sources before it's done, and a loop can rerun the whole thing next month as new studies appear.
SPEAKER_01Okay, you said dynamic workflows are written fresh each time. But surely they're not totally improvised. There must be a structure underneath.
SPEAKER_00There is, and this is genuinely useful to know because once you can name the shape, you can ask for it directly. There are six patterns that power most workflows. Let me give you the intuition for each. Fast. One, classify and act. A lightweight agent looks at each item and routes it to the right handler. Think an inbox that tags every ticket as a bug, a refund, an upgrade or spam, then sends it to a specialist.
SPEAKER_01Triage.
SPEAKER_00Two, fan out and synthesize. Split the task into independent pieces, one agent per piece in its own context, then a synthesis step combines them. That's the one my research round leans on hardest. 3. Adversarial Verification One set of agents produces results, another set tries to tear them down against a rubric. Basically. 4. Generate and filter. Make a lot of candidates then narrow down with the generator and the evaluator kept as separate agents. 5.
SPEAKER_00Tournament. Candidates compete head-to-head in pairwise comparisons instead of each getting an independent score. Good for ranking thousands of resumes or proposals without the bias creeping in. 6. Loop until done. Repeat until you actually stop learning anything new, not until some fixed number of iterations.
SPEAKER_01That last one's interesting. Stop when it's genuinely exhausted, not when a counter hits 10.
SPEAKER_00Right, like chasing a flaky test. Generate a hypothesis, test it in an isolated work tree, keep going until a couple of passes turn up nothing. And here's the thing. Real workflows mix these. Mine used Fan Out and Synthesize to gather evidence, adversarial verification to challenge it, and filtering to decide which studies even mattered.
SPEAKER_01So let's actually open up your research run. What did it build?
SPEAKER_00Four phases Search, Fetch, Verify, Synthesize The search phase fanned out into seven agents running in parallel, each chasing a different angle on the evidence, each in its own context so they couldn't contaminate each other. Then Fetch narrowed the pile down to the most relevant studies and pulled out structured evidence, methodology, sample size, effect sizes, limitations, funding. Verify brought in an independent reviewer and Synthesize wrote the final report.
SPEAKER_01How big did this get? Give me the numbers.
SPEAKER_0027 agents total, around 807,000 sub-agent tokens, 463 tool calls, about 25 minutes wall clock, and on Sonnet 4.6, that's roughly $5 in sub-agent costs.
SPEAKER_01$5 for one report. I want to push on that. That's a lot more than just asking once. What did all that machinery actually buy you?
SPEAKER_00Go on. First, a real conflict in the literature. One study, Becker and colleagues, looked at experienced developers in mature codebases and found a 19% slowdown from AI assistants.
Another, Peng and colleagues, looked at a simpler coding task and found a 56% speedup.
SPEAKER_01Those don't just disagree, they point in opposite directions.
SPEAKER_00They do. And a lazy synthesis would average them into some mushy results or mixed line. The workflow didn't. It treated the gap as the thing to explain and traced it to task complexity, developer experience, and study design.
SPEAKER_01What was the second thing?
SPEAKER_00A funding pattern. The strongest positive results tended to come from vendor-affiliated studies. The independent ones more often found mixed, null, or even negative effects for experienced developers. The report surfaced that pattern without dismissing either side.
SPEAKER_01Ouch. And the third?
SPEAKER_00This is my favorite. In the Becker study, the developers believed they'd gotten faster. They were actually slower, measured. The gap between what they felt and what the stopwatch said became a headline finding instead of a detail that got summarized away.
SPEAKER_01That's wild. And it's exactly the kind of thing a single confident agent would flatten.
SPEAKER_00Completely. And none of those three emerge unless one agent's explicit job is to attack the conclusions the others produced.
SPEAKER_01Okay, I'm sold on the value, but be honest with me about the limits. What should I not believe about a report like this?
SPEAKER_00Three caveats, and I'd put them right on the cover. One, the sources were retrieved, not curated. It can only analyze what it manages to find. Two, structured outputs improve reliability, not correctness. Forcing the findings into a JSON schema stops drift, but it does not guarantee the agent read the paper right. And three, it's a snapshot. Run it next month, it finds different studies, it might reach a different conclusion.
SPEAKER_01So the workflow isn't magic, it's discipline.
SPEAKER_00That's a good way to put it. And here's the real lesson, which is honestly less about coding assistance and more about workflow design. This worked because the question was contested. Evidence had to be compared, challenged, synthesized. For a simple factual lookup, all that machinery just adds cost and gives you nothing, which loops right back to the ladder. Workflows sit at the top not because they're always the best tool but because they add the most coordination overhead. You climb to them only when the hard part is coordinating the work,
not producing the answer.
SPEAKER_01That's the part I'll remember. The default shouldn't be the workflow. The default should be just ask and you earn your way up.
SPEAKER_00Exactly. Spend the coordination only where the task demands it. So suppose I'm at my desk Monday morning and I want to try one of these on my own data.
SPEAKER_01Where do I actually start? What's the first move?
SPEAKER_00Start small and honest. Take a task you already know is too big for one prompt, something parallel or adversarial by nature, and just put the word workflow in your prompt. Then, before you approve anything, open the raw script and read it. That single habit, reading the generated JavaScript before you run it, will teach you more about how these things think than anything else. And watch it live in the slash workflows view so you can see the agents fan out.
SPEAKER_01And for the math, the full setup, the actual run artifacts?
SPEAKER_00All of that is in the article. The phase-by-phase breakdown, the source funnel, the run on GitHub, the references for those studies. I'll skip the deep mechanics on mic. They're laid out properly in the write-up. The full piece is on Substack at AIpractitioner.substack.com and the links in the caption.
SPEAKER_01I'll be reading that one.
SPEAKER_00One last thought before we go. The thing that changed for me wasn't that cloud could spawn 27 agents. It's that the coordination became something I could read, inspect, and trust. The report got more honest because the process got more honest. That's the part worth taking with you.
Prefer reading instead? The full article is available here. The podcast is also available on Spotify and Apple Podcasts. Subscribe to keep up with the latest drops. What if AI agents could learn from every interaction...
Prefer reading instead? The full article is available here. The podcast is also available on Spotify and Apple Podcasts. Subscribe to keep up with the latest drops. What if AI agents could continuously improve their...
Prefer reading instead? The full article is available here. The podcast is also available on Spotify and Apple Podcasts. Subscribe to keep up with the latest drops. What if AI agents could improve their own prompts...
Prefer reading instead? The full article is available here. The podcast is also available on Spotify and Apple Podcasts. Subscribe to keep up with the latest drops. What if the key to better AI agents isn’t writing...
Prefer reading instead? The full article is available here. The podcast is also available on Spotify and Apple Podcasts. Subscribe to keep up with the latest drops. What if improving an AI agent’s performance had less...