S1 · E10 · Beginner · Season 1: AI Agents & Tools

How do multi-agent teams work?

Explained with Pizza

A multi-agent team is a setup where a main agent splits a big job into parts and hands them to helper agents. Each helper works on its own part and reports back, and the main agent puts the results together.

In short

  • Think of a head pizza chef with a team of cooks: split, cook, report, serve.
  • Each helper works in its own context and sends back just a summary. The main agent puts it all together.
  • Real example: Claude Code subagents. Explore searches your code without changing it. Helpers can get limited tools, and simple jobs can go to a cheaper model.
  • OpenAI Agents SDK: agents as tools (a manager calls helpers and keeps control) or handoffs (a specialist takes over).
  • Each helper sends its own requests, so it costs tokens too. Use a team only for big jobs.

The head chef and the cooks

A busy pizzeria doesn't have one cook doing everything. The head chef takes the big order, hands out parts of it (dough, sauce, toppings) and checks the result before it goes out.

Multi-agent teams work the same way. A main agent gets a big job, splits it, and gives each part to a helper agent.

How it works

The summary step is the big win. A helper can read dozens of files or long logs, and the main agent only gets the short result, so its own context stays clean.

  • Split: the main agent breaks the job into parts.
  • Cook: each helper works on its part in its own context, with its own instructions and tools.
  • Report: each helper sends back just a summary, not every file it read.
  • Serve: the main agent puts the summaries together into one answer.

Real example: Claude Code subagents

Claude Code calls its helpers subagents. Each one runs in its own context window with its own system prompt, tool access and permissions, and returns only the result.

A built-in example is Explore: it searches and reads your code to answer a question, but it can't write or edit files. You can also create your own subagents, give each one only the tools it needs, and route simple jobs to a faster, lower-cost model.

Two patterns in the OpenAI Agents SDK

  • Agents as tools: a manager agent keeps control of the conversation and calls specialist agents like tools. The manager owns the final answer.
  • Handoffs: a triage agent routes the conversation to a specialist, and that specialist takes over and answers directly.

Tip: a team costs more

Every helper sends its own requests to the model, so each one uses tokens too. In Claude Code, subagents count toward the same usage limits as your main conversation.

So use a team for big jobs that really split into parts, like researching many files at once. For a small task, one agent is cheaper and simpler.

Test yourself

5 quick questions. Pick an answer to check it.

1. In a multi-agent team, what does the main agent do?
2. What does a helper send back to the main agent?
3. What can Claude Code's built-in Explore subagent do?
4. In the OpenAI Agents SDK, what is a handoff?
5. Why not use a team of agents for every small task?

Sources

Checked November 22, 2026.