WEBVTT

00:00:00.000 --> 00:00:04.893
An agent with a ReAct loop already
solves a lot, but there are

00:00:04.933 --> 00:00:09.464
problem classes where a single
agent just doesn't cut it.

00:00:09.504 --> 00:00:13.962
In this lesson we cover the three
architectural patterns

00:00:14.002 --> 00:00:17.880
that fix that, and when each
one becomes a trap.

00:00:18.833 --> 00:00:23.930
Before choosing a pattern, it's worth
knowing why you'd need one.

00:00:23.970 --> 00:00:29.934
There are three classic situations where a
single ReAct agent starts to fail:

00:00:29.974 --> 00:00:35.505
the task is too long for the context
window, the work requires parallel

00:00:35.545 --> 00:00:40.858
specialization, or the output needs
review before reaching the user.

00:00:40.898 --> 00:00:44.113
Each pattern solves one of these cases.

00:00:45.133 --> 00:00:48.690
The simplest pattern in the
catalog is Reflection,

00:00:48.730 --> 00:00:51.517
and therefore the most underestimated.

00:00:51.557 --> 00:00:56.077
After generating a response, the agent
makes a second pass with a

00:00:56.117 --> 00:01:00.831
critique prompt and decides if the
result is good or needs revision.

00:01:00.871 --> 00:01:06.162
It's like a dev who writes the code and
reads it again before opening the PR.

00:01:06.202 --> 00:01:10.209
The model doesn't change its
nature: it just receives the

00:01:10.249 --> 00:01:13.613
reviewer context instead of
the author context.

00:01:14.633 --> 00:01:20.702
In practice, Reflection works like this. You
generate the response normally.

00:01:20.742 --> 00:01:25.545
Then you pass that output back to
the model with a critique

00:01:25.585 --> 00:01:30.014
instruction, something like:
identify errors, gaps and

00:01:30.054 --> 00:01:35.155
inconsistencies; if correct, reply
APPROVED; otherwise rewrite.

00:01:35.195 --> 00:01:40.221
You iterate until you get APPROVED or
hit the iteration limit.

00:01:40.261 --> 00:01:44.616
And that limit is mandatory,
without it, a model that

00:01:44.656 --> 00:01:48.713
never converges will consume
tokens indefinitely.

00:01:49.733 --> 00:01:54.787
In standard ReAct, the agent decides
the next action at each

00:01:54.827 --> 00:01:59.496
step, greedy reasoning that works
well for short tasks.

00:01:59.536 --> 00:02:05.825
In long tasks, it can lose track, change
strategy mid-way or repeat context.

00:02:05.865 --> 00:02:10.842
Plan-and-Execute splits the work
into two phases: first the

00:02:10.882 --> 00:02:16.167
model produces a structured plan
without calling any tool; then

00:02:16.207 --> 00:02:20.644
each subtask is executed in
sequence or in parallel.

00:02:20.684 --> 00:02:25.275
The plan becomes an inspectable
artifact, you can log,

00:02:25.315 --> 00:02:29.983
validate and even show it to the
user before executing.

00:02:31.000 --> 00:02:35.777
Multi-agent is the pattern that
shows up most in demos and

00:02:35.817 --> 00:02:40.369
generates the most unnecessarily
complex architectures.

00:02:40.409 --> 00:02:42.702
There are three variants.

00:02:42.742 --> 00:02:48.197
The Supervisor is the most common and
controllable: a central agent

00:02:48.237 --> 00:02:53.240
delegates to specialized sub-agents
and consolidates results.

00:02:53.280 --> 00:02:58.659
The Hierarchical adds layers of
supervisors, useful for very large

00:02:58.699 --> 00:03:03.777
domains, but coordination cost grows
exponentially with depth.

00:03:03.817 --> 00:03:08.594
The Swarm puts agents as peers
collaborating via messages,

00:03:08.634 --> 00:03:12.960
the most flexible and, by far,
the hardest to debug.

00:03:13.967 --> 00:03:20.631
The most important warning in this lesson:
orchestration complexity has a real cost.

00:03:20.671 --> 00:03:24.802
Each extra agent is one more
failure surface, more

00:03:24.842 --> 00:03:28.378
latency, more tokens and harder debugging.

00:03:28.418 --> 00:03:32.996
In most projects that reach me, a
single well-configured

00:03:33.036 --> 00:03:36.646
agent with Reflection would
have solved it.

00:03:36.686 --> 00:03:42.457
Multi-agent is the right answer for a few
problems, not for all of them.

00:03:43.467 --> 00:03:49.515
Now you have the three patterns in your
pocket: Reflection to review its own

00:03:49.555 --> 00:03:54.861
output, Plan-and-Execute for long tasks
with a clear sequence, and

00:03:54.901 --> 00:04:00.653
Multi-agent when parallel specialization
truly justifies the complexity.

00:04:00.693 --> 00:04:05.108
In the next lesson we dive into
MCP, the protocol that

00:04:05.148 --> 00:04:10.157
standardizes how agents connect to
tools and external context.
