Agentic Engineering from First Principles All chaptersLecturesLabDownload the book
Part IV · Agents Working Together

Chapter 18: Supervisor and Workers

Central questionWhen does a coordinator improve a team of specialist agents, and when does another management layer merely add overhead and information loss?

Lecture

Chapter principle

Coordination must earn its layer. A supervisor is valuable only when decomposition, assignment, monitoring, or integration are real problems. A hierarchy is valuable only when reducing coordination complexity outweighs the extra hops and the information loss.

Key takeaways

Experiments

Every experiment in the book is small, runnable and printed with its real output. In the Lab you can replay a recorded real run of each one, with no programming, and watch what the model and the agent do.

Experiment 32: Supervisor and workers

What goes wrong when a team runs its workers in the wrong order?

A supervisor coordinates three workers to compare products A and B: a researcher gathers the evidence, an analyst compares it, and a writer writes one sentence. A real model plays the supervisor and plans the order; it also does the analyst's and the writer's work. Then a bad plan, written by hand, puts the writer first. It runs once with a naive supervisor, and once with a supervisor that checks each worker has its inputs before starting it. This is a recorded run. The model's wording will differ in a new run.

Experiment 33: Hierarchy

What gets lost when reports pass through a manager?

Four workers report to a root decision-maker. One report carries a caveat: “Option A is cheaper. Caveat: source confidence is low.” In the flat layout the root reads all four reports. In the hierarchy, two team leads each summarise their workers' reports within a word limit: once with 10 words, then three times with 6. A real model plays each lead. Last, a structured lead also passes caveats in a separate field that code fills in. This is a recorded run. Whether a 6-word lead keeps the caveat varies from run to run.

All the code for this chapter: github.com/agentic-engineering-book/code

This is Chapter 18 of Agentic Engineering from First Principles: thirty chapters, a case study and fifty-nine executable experiments, from a single model call to controlled, self-improving agents.
Download the bookBrowse all chapters
← Chapter 17: An Agent Is Just Another ToolChapter 19: Debate and Voting →