Agent Teams
From managing engineers to managing agents
What is an agent?
An agent is a loop. That's it.
A function runs once and returns. An agent keeps going until it decides it's finished.
When you give Claude Code a task and it reads files, edits code, runs tests, fixes errors, and tries again -- that's this loop.
The key word: termination condition
"Tests pass" is a termination condition. "I've been going for 50 iterations" is a termination condition. Without one, the agent keeps running forever.
This is the equivalent of an engineer who never ships -- they keep polishing forever.
What is a DAG?
A directed acyclic graph. Or: a project plan drawn as a diagram.
Directed means data flows one way (Alice to Bob, not Bob to Alice). Acyclic means no circles -- nobody waiting on someone who's waiting on them.
Meeting model vs Workspace model
Two ways agents share work. One works. One mostly doesn't.
Meeting Model
chaoticWorkspace Model
cleanThe two reasons to split
If neither applies, keep it in one agent.
Context Protection
LLMs get worse as context fills with irrelevant content. Not a cliff -- a gradual degradation. The model "loses the thread."
One Agent
Bloated context, degrading output
Two Agents
Focused contexts, clean output
Parallelism
Independent tasks run at the same time. But the subtler benefit: it avoids path dependence.
Sequential (slow, anchored)
Each anchored by previous result
Parallel (fast, independent)
Independent evaluation, no anchoring
The Filter
Before splitting any task across agents, ask: "Am I buying context protection, parallelism, or neither?" If neither, you've added complexity for nothing.
Six knobs per agent
Every agent has exactly six things you configure. When something goes wrong, it's almost always one of these.
Four patterns
Almost every multi-agent system is one of these, or a combination.
A -> B -> C. Each stage does one thing, passes output to the next.
Example: Research -> Implement -> Test. Simple, linear, easy to debug. Use when each step genuinely needs different context or tools.
One coordinator splits work to N workers, results get merged. This is map-reduce.
Example: "Research 5 competitors" -> 5 agents each research one -> coordinator synthesizes. parallel section highlighted.
Multiple waves of fan-out/fan-in. Each wave's output shapes the next. The most powerful pattern.
Example: Classify notes (parallel) -> Cross-reference per category (parallel) -> Write articles (parallel) -> Editorial review.
After every write, an independent agent checks the work. If pass, next step. If fail, back to writer.
Equivalent of requiring code review before merge. Cheap and catches most regressions.
A Real Setup
20+ agents. 4 scopes. You're the orchestrator -- and you can't see the system you're orchestrating.
Agent Scopes
The Instruction Stack
Every time an agent runs, it inherits layers of context. This is what you can't see:
The gap
You're managing a team where you can't see anyone's calendar, don't know what tools they have, and can't check what instructions they were given. The gap isn't better agents -- it's visibility into the system you're already orchestrating.
The Test
Look at a system and name its parts. Three scenarios, increasing difficulty.
You understand multi-agent systems when you can name these six things on sight for any system.