Fill in the order of magnitude cost formula for a supervisor and workers run
Total tokens equals hop_count times supervisor cost per hop plus the sum of worker costs per hop; downsizing the supervisor model is the single biggest cost lever.
Imagine a restaurant where every order goes through a manager who reads it, picks a chef, hands it off, and reviews the plate before it goes out. Total kitchen cost is manager time plus chef time, multiplied across every order. The manager is doing simple work (which chef is free, who handles dessert) compared to the chef who actually cooks. If the manager were also a head chef on a head-chef salary, the bill would be silly. The fix is to put a fast, cheap dispatcher in the manager slot and reserve the expensive chefs for actual cooking. In multi-agent terms, the supervisor routes and the workers reason; sizing them the same way is the most common money-waster.
Concept explanation~2 min read
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Concept explanation~2 min read
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Cost in a supervisor and workers system is almost always under-attributed. Teams look at the monthly bill, divide by request count, and call that the cost per task. What they miss is that the bill has two structurally different components: routing decisions made by the supervisor and actual work done by the workers. Sized correctly, the supervisor should be a small share of total spend; sized badly, it can be the majority.
This walkthrough derives the two-term cost formula, shows where the supervisor share typically lands in chatty workflows, names the three cost levers in priority order, and explains why per-role span attribution is the diagnostic discipline that makes any of it actionable.
Mental model: the supervisor classifies, the workers reason. Pay classification prices for classification work and reasoning prices for reasoning work. Doing it backwards is the single most common money-waster in multi-agent systems.
The two-term cost formula
The formula
Where:
- is the number of supervisor-routing decisions in one task.
- is the per-hop token cost of one supervisor call (context plus output).
- is the per-hop token cost of the worker chosen at hop .
Why two terms, not one
The supervisor runs every hop; the worker that runs each hop varies but each one runs exactly once per hop in the simple shape. If you collapse them into one number, you lose the ability to optimize either independently.
Walked example
6 hops, 1 supervisor, 4 workers. Supervisor uses 3K context plus 0.5K output per call. Workers use 4K context plus 1K output per call.
- Supervisor: $6 \times 3.5\text{K} = 21\text{K}$ tokens.
- Workers: $6 \times 5\text{K} = 30\text{K}$ tokens.
- Total: 51K tokens, of which 21K (41 percent) is supervisor.
That 41 percent is the canonical 'chatty supervisor' shape: 30 to 60 percent of total spend on routing decisions, in a system where every routing decision is structurally classification.
Situations where this technique stops working.
2–4 min · Everything important, quickly.
Real products, models, and research that use this idea.
- LangGraph's `create_supervisor` prebuilt explicitly supports passing a different (smaller) model to the supervisor than to the workers; the docs call out the cost reason.
- Claude Haiku 4.5 and GPT-5.5-mini are the canonical 2026 supervisor-tier models behind flagship-tier workers like Claude Opus 4.7 or GPT-5.5.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow would you measure that downsizing the supervisor did not regress routing quality?
Build an eval set of (input, correct worker choice) pairs. Run the flagship supervisor and the small supervisor on it. Compare routing accuracy. If small-model accuracy is within 1 to 2 percent of flagship, downsize. If it drops noticeably, the routing logic is harder than classification and the supervisor is doing real reasoning.
Red flags & common mistakes
The phrases that signal junior thinking. Click to expand.
Red flags & common mistakes
The phrases that signal junior thinking. Click to expand.
Running the supervisor on the same flagship model as the workers, so 30 to 60 percent of the bill goes to routing decisions a small model could make for a tenth the cost.
60 second bullets to scan on the way to the call.
The two-term cost formula for supervisor and workers
Why the supervisor's job is classification-shaped, not reasoning-shaped
Primary sources. Browse if you want the original framing.
Same topic, related formats. Practice these next.