Latest / AI Fire Daily / #574 Neil: AI Agent Workflow Runs Parallel Research in Claude Code
Transcript
- 0:00Most of us are stuck in a basic AI loop. Yeah,
- 0:03that endless hamster wheel. Exactly. You write
- 0:06a prompt, you get a bad result, and you just
- 0:08keep tweaking that same prompt. That is so frustrating.
- 0:12And notoriously slow. But there is a much more
- 0:14powerful way. Beat. Welcome to our deep dive
- 0:18for today. We are unpacking a workflow from Maestro's
- 0:22DayIA. They use Claude code and a tool called
- 0:25Ultracode. The mission here is running multiple
- 0:28AI agents all at once. Yeah, this workflow completely
- 0:32flips the standard script. We are moving way
- 0:35beyond basic prompt engineering today. Right.
- 0:37We're going to cover the foundational harness
- 0:39structure first. We'll look at these intense
- 0:41verification loops, and then we'll see true parallel
- 0:45processing in action. To break out of that simple
- 0:48prompt cycle, things must change. We have to
- 0:50change the environment the AI operates in. You
- 0:52can't just keep throwing tasks into a blank chat
- 0:54box. Right. Which brings us to a concept called
- 0:56the harness. Let's clearly define that technical
- 0:59term right now. A harness is a setup of rules
- 1:02and tools guiding an AI's specific job. That
- 1:05is a highly accurate way to frame it. You are
- 1:07giving the agent a very restricted workspace.
- 1:11You remove the chaos of an open -ended conversation
- 1:14completely. It is like hiring a brand new employee.
- 1:16You don't just yell a task at them in the hallway.
- 1:19Right, you'd never do that. You give them a full
- 1:21onboarding packet. You give them a dedicated
- 1:23desk and resources. Aaron Levy actually highlights
- 1:26this exact concept. Oh, yeah. He says an agent
- 1:29harness is crucial for complex work. Right. And
- 1:31without that structure, agents just get completely
- 1:34lost. They desperately need those rigid boundaries.
- 1:37Otherwise, the AI tries to be the researcher,
- 1:41writer, and editor simultaneously. I still wrestle
- 1:43with prompt drift myself. Yeah. Two -sec silence.
- 1:47I often start with a very clear goal. The AI
- 1:49gives me a decent draft, but I want one small
- 1:52change. I know where this is going. I ask it
- 1:55to adjust one specific paragraph. It fixes it,
- 1:58but somehow ruins all the formatting. Exactly.
- 2:00After three prompts, it has forgotten my very
- 2:02first instruction entirely. Breaking instructions
- 2:05into smaller, harnessed skills fixes this. And
- 2:09that focused environment leads right into the
- 2:11verification loop. The workflow does not just
- 2:13blindly accept the first answer. Right. Standard
- 2:16AI outputs text and just assumes it's finished.
- 2:19But this system adds a mandatory quality control
- 2:21checkpoint. Addy Osmani calls this loop engineering.
- 2:26OK, loop engineering. Yeah. Outputs are scored
- 2:28against very strict criteria. If the score is
- 2:31too low, the task simply runs again. So it actively
- 2:34refuses to move forward with bad data. Precisely.
- 2:37It keeps looping back until it passes the test.
- 2:40But wait, how does the workflow prevent an endless
- 2:42loop if the output keeps failing? It relies on
- 2:45highly specific checking criteria to eventually
- 2:48force a pass. The rubric asks binary yes or no
- 2:52questions to break the cycle. So strict grading
- 2:55rubrics force the agent to eventually hit the
- 2:57required target. Exactly. It creates a mathematically
- 3:00guaranteed baseline of quality. But this verification
- 3:02loop is only effective under certain conditions.
- 3:05The automated grader cannot be biased by the
- 3:08worker's messy process. This is exactly why fresh
- 3:10context is so incredibly important. The verifier
- 3:13agent is kept entirely separate from the worker
- 3:15agent. Right. It doesn't carry over any context
- 3:19from the initial work. It gets a completely wiped
- 3:22blank slate memory to work with. Two sec silence.
- 3:25That architectural separation makes a massive
- 3:28amount of sense. It is like having an independent
- 3:31auditor check a company's financials. Yeah. Perfect
- 3:34analogy. You don't ask the accountant who made
- 3:36the errors to double check their own math. You'd
- 3:38never trust that. Right. You bring in an external
- 3:41reviewer with a clean slate. Think about a quality
- 3:44control laser on an assembly line. The laser
- 3:47only scans the final car door for dents. It doesn't
- 3:51ask the welding robot how it feels about its
- 3:53job. Yeah, that makes sense. It objectively measures
- 3:55the physical product against the blueprints.
- 3:57This matches finder and verifier setups across
- 4:00all of AI. The verifier just objectively looks
- 4:03at the final output. The context window isn't
- 4:06cluttered with previous failed attempts. But
- 4:08this still raises an interesting architectural
- 4:10question. Why can't the original worker agent
- 4:13just be told to check its own work? Because the
- 4:16worker carries the heavy baggage of its past
- 4:18decisions, it naturally assumes its original
- 4:22internal logic is entirely correct. Because the
- 4:24worker's hidden assumptions would blind it to
- 4:26its own mistakes. Precisely. you desperately
- 4:29need a fresh pair of digital eyes. So we have
- 4:32this high quality verification system in place.
- 4:35Right. We have a worker and a fresh verifier
- 4:37checking it, but doing this sequentially is just
- 4:40far too slow. Oh, incredibly slow. Waiting for
- 4:42each step creates a massive operational bottleneck.
- 4:45We need to speed this complex process up significantly.
- 4:49This brings us to a concept called graph engineering.
- 4:52Yeah, this is the really exciting part. Let's
- 4:55define graph engineering clearly. It is splitting
- 4:58independent tasks into separate paths that run
- 5:00at the same time. This is where the Maestro's
- 5:02DIA workflow gets seriously impressive. Each
- 5:05independent task gets its very own branch. They
- 5:08don't have to wait in a slow line anymore. Let's
- 5:11look closely at the specific demo they ran. They
- 5:14used Claude code and Ultra code to build this
- 5:17structure. Just typing slash Ultra code and slash
- 5:21workflows into the command line. The primary
- 5:23mission was to research three different YouTube
- 5:26channels, OpenAI, Anthropic, and Google DeepMind.
- 5:30And they specifically wanted videos published
- 5:33in the last seven days. Think about doing this
- 5:35normally. You would wait for the OpenAI research
- 5:38to finish completely, then Anthropic would slowly
- 5:40take its turn. But here, three separate AI agents
- 5:44spin up and run simultaneously. Instead of waiting
- 5:47patiently, the system branches out immediately.
- 5:49It is like cooking a massive dinner for a large
- 5:51party. You don't wait for the chicken to finish
- 5:53before chopping carrots. Exactly. Akshay Pachar
- 5:56has actually demonstrated very similar subagent
- 5:59splits recently. Paul Huron also shows how context
- 6:02is isolated to its specific task. That isolation
- 6:05is the absolute magic of true parallel execution.
- 6:09And the strict verification loop still happens
- 6:11inside each branch. OK, so the verifier agents
- 6:14review outputs without talking to the other branches.
- 6:17Yeah, entirely separately. Once all branches
- 6:20are finished and verified, things finally merge.
- 6:23Claude Code brings everything into one final
- 6:25comparative PDF report, beat. But managing all
- 6:29these streams seems precarious. Does running
- 6:32these branches at the same time mix up their
- 6:34data? Not at all. The underlying system walls
- 6:38off the context for each branch entirely. They
- 6:40don't share any memory until the final merge.
- 6:43Got it. Each branch keeps its context strictly
- 6:45isolated until the final combination. That strict
- 6:48isolation makes the parallel processing so incredibly
- 6:50reliable. You don't get agents hallucinating
- 6:53details across different companies. We understand
- 6:55the theory behind this complex structure now.
- 6:57Yeah. But what exactly happened when they hit
- 7:00enter on this workflow? What did the real world
- 7:03execution actually look like? The initial demo
- 7:05results are honestly pretty mind blowing. It
- 7:08was incredibly fast. How fast? Each research
- 7:10session took only about 40 seconds to finish
- 7:12and used roughly 54 ,000 tokens to process the
- 7:16information. That is a truly massive amount of
- 7:18raw data. Processing 54 ,000 tokens is roughly
- 7:22equivalent to reading a short novel. And the
- 7:25system processed that in under a minute. Whoa,
- 7:28imagine scaling to a billion queries. The sheer
- 7:31volume of automated processing is completely
- 7:34staggering. Two -sec silence. Let's talk about
- 7:37the verification mechanics in action. What exactly
- 7:40did these independent verifier agents catch?
- 7:43They caught some very critical timeline errors
- 7:45immediately. None of the five initial videos
- 7:48were actually published recently. We know them.
- 7:50Nope. They fell way outside the strict seven
- 7:52-day window. So the initial worker agents just
- 7:55completely hallucinated the publication dates.
- 7:58Exactly. Language models are notoriously bad
- 8:00at strictly tracking chronological time, but
- 8:03the fresh verifiers caught that instantly. They
- 8:05also flagged a highly specific Google DeepMind
- 8:08video. It could not be confirmed on the official
- 8:10channel at all. So the verification loop actively
- 8:13stopped bad data, but they also confirmed plenty
- 8:15of good data during this. Oh, absolutely. The
- 8:18verifications confirmed six videos with zero
- 8:21discrepancies whatsoever. It really showcases
- 8:23the rigorous nature of this setup. They validate
- 8:26the good data while catching the subtle errors.
- 8:29all clearly displayed in the final PDF. There
- 8:32is almost always a hidden catch with these powerful
- 8:35systems. I have to note the very real operational
- 8:38trade -off here. Yeah, the costs. Adding separate
- 8:40workers and verifiers burns through tokens incredibly
- 8:43fast. You are essentially paying for three or
- 8:46four API calls instead of one. It is definitively
- 8:49a much more expensive way to operate. For an
- 8:51enterprise company, that token cost is a rounding
- 8:54error. But for an individual developer, it really
- 8:57adds up. Which brings up a very practical concern.
- 9:00With such high token usage, is this setup actually
- 9:03practical for everyday tasks? It is strictly
- 9:06for large tasks where accuracy is completely
- 9:09non -negotiable. You wouldn't use this heavy
- 9:11framework to draft a casual email. More tokens
- 9:14mean higher costs, but you get guaranteed quality
- 9:17in return. That is the ultimate trade -off you
- 9:20have to weigh. You are buying structural peace
- 9:22of mind. Let's step back for a moment and summarize
- 9:24the core lesson. Let's recap. An AI workflow
- 9:27is vastly stronger when each agent has a clear
- 9:30role. Tasks run in parallel branches, and outputs
- 9:34are checked by an independent verifier with fresh
- 9:36context. It totally redefines how we should interact
- 9:39with language models. We're moving from being
- 9:42prompt writers to actual system architects. But
- 9:46understanding this does leave me with a slightly
- 9:48provocative thought. If we are building systems
- 9:51where AI independently verifies other AI, what
- 9:56happens when these agents begin writing their
- 9:58own strict grading criteria? Who verifies the
- 10:01verifier when the entire system becomes fully
- 10:03autonomous? That is a deeply fascinating problem
- 10:06for the very near future. Thank you for taking
- 10:09this deep dive with us today. We highly encourage
- 10:11you to experiment with workflow branching yourself.
- 10:13Stop tweaking the exact same basic prompt over
- 10:16and over, build a strict harness, add a clean
- 10:18verifier, and run it all in parallel. Out to
- 10:20your own music.