Zenaique

Why the supervisor agent is often the dominant cost line in a supervisor topology

Flashcard·Medium·4.0 · 0·~30s·Asked atCognizantNeptune AiSnowflake
Attempt it
TL;DR

The supervisor runs every hop and reads a growing message log; its per-call cost compounds. Fix by tiering down the model, bounding input via summaries and structured payloads, or routing rule-based for common cases.

Memory aid
Sign in to see the mnemonic that makes this stick.
Easy to grasp

Imagine a manager who walks into every meeting having read every email from the entire project so far. On day one that is one email. On day twenty that is five hundred emails per meeting. Even though their job (decide who picks up the next task) is short, the reading time piles up enormously. Multi-agent supervisors work the same way: they run every turn and read all prior turns to decide. If you do not give them a shorter inbox (summaries, structured updates) or a faster reader (smaller model), their cost grows quietly until it dominates the bill.

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.

Multi-agent cost dynamics surprise teams who carry single-agent intuition into hierarchical workflows. Single-agent cost is roughly per-call input times call count, with both factors bounded by task design. Multi-agent supervisor cost compounds: the supervisor runs every hop, and each call reads a growing message log. Both factors scale with workflow length, and the product dominates the worker cost on anything past a few hops.

The cost dominance is invisible if you look only at per-call cost, the supervisor's calls look reasonable in isolation. It is glaring if you look at aggregate spend with a per-agent breakdown. Production teams that ship multi-agent systems without per-agent observability discover this pattern only when the monthly bill arrives.

This section walks through the compounding mechanism, the four-layer optimisation strategy (model tiering, input bounding via summarisation, structured-payload handoffs, hybrid rule-plus-LLM routing), the prompt-caching interaction, and the observability discipline required to catch this pattern before it ships.

The compounding cost mechanism

Every supervisor call reads three components.

Routing system prompt. The instruction set for the supervisor: how to decide which worker handles the next task, what format the routing decision takes, what edge cases to escalate. Typically 500-1000 tokens. Constant per hop.

Agent roster description. A list of available workers with role names, capabilities, and any per-worker constraints. Typically 200-500 tokens. Constant per hop.

Message log so far. Every prior worker output, often the user's original input, occasionally intermediate planner reasoning. This grows by 500-2000 tokens per hop as workers add outputs to the shared log.

The first two are bounded. The third compounds. By hop 10 in a moderate-complexity workflow, the supervisor's per-call input is 10,000-20,000 tokens. Per-call cost at frontier-tier pricing (around $15 per million input tokens for Claude Opus 4.5 or GPT-5) is around $0.15-0.30. Per workflow with 10 supervisor calls: $1.50-3.00 just for the supervisor.

Meanwhile each worker call has a bounded input (the worker's specific task plus relevant context, typically 1000-3000 tokens). Per-call worker cost at frontier-tier: $0.015-0.045. Each worker is invoked 1-2 times per workflow. Total worker cost across 4 workers: roughly $0.10-0.30.

The supervisor outspends all the workers combined by a factor of 5-15x. This is the inverse of what teams intuitively expect, the workers do the real work, so they should dominate the bill. The structural shape of the supervisor's compounding input flips the ratio.

Worker output spend. Routing decisions are short outputs (50-200 tokens), so output spend on the supervisor is small. Worker outputs are longer (500-2000 tokens) but worker invocation count is bounded. Output spend matters less than input spend on modern pricing where input is 5-10x cheaper per token than output but input volumes are 10x larger; the input side dominates.

Layer 1: model tiering
Layer 2 and Layer 3: bounding input growth
Layer 4: hybrid routing and the prompt-caching interaction
Sign in to unlock the full deep dive.

Situations where this technique stops working.

Sign in to see when this approach fails.

2–4 min · Everything important, quickly.

Sign in to see the quick scan of the deep dive.

Real products, models, and research that use this idea.

  • LangChain published in 2024 that their internal multi-agent benchmarks saw supervisor cost dominate workflow cost on runs past 8 hops, motivating per-node model tiering recommendations.
  • CrewAI hierarchical crews in 2026 production deployments commonly run manager_llm on Haiku or gpt-4.1-mini with workers on Sonnet 4.5 or gpt-5.
Sign in to see more production examples.

What an interviewer would ask next. Try answering before peeking at the approach.

QHow would you set up a per-agent cost breakdown in production observability?
A

Tag every LLM call with an agent.name attribute (the speaker or node identifier). Configure the LLM observability backend (Langfuse, Datadog LLM Obs, Arize Phoenix) to group token-cost metrics by agent.name. Alert when any single agent exceeds a threshold percentage of total workflow cost. This surfaces supervisor dominance immediately.

2 more follow-ups an interviewer would ask next. Sign in to reveal them.

Red flags & common mistakes

The phrases that signal junior thinking. Click to expand.

Most common mistake

Looking at the supervisor's per-call cost and concluding it is cheap, missing that the per-call cost grows linearly with conversation length and the call count grows with workflow complexity. Both compound.

Sign in to see all red flags and common mistakes.

60 second bullets to scan on the way to the call.

  • Why supervisor cost compounds while worker cost stays bounded

  • The three components of every supervisor call (routing prompt, agent roster, message log)

Sign in to unlock the revision sheet.

Primary sources. Browse if you want the original framing.

Similar questions

Same topic, related formats. Practice these next.

4 curated
Next question
Why AutoGen 0.4 makes TerminationCondition a first class primitive instead of leaving it to convention
Flashcard·Medium