When a multi-agent system produces a $1,300 run one day and a $10,000 run the next, most finance teams reach for a usage policy. Most engineering teams should reach for an architecture diagram instead. The variance is rarely a consumption problem. It is a design problem, and it was locked in before the first token was generated. This article sets out a framework for treating cost predictability as a first-class engineering constraint, covering how task decomposition, model-role allocation, and orchestration topology each determine the cost envelope of a swarm before it touches production.
Why Architecture Determines Cost Before Execution Begins
The cost of a multi-agent run is not a runtime variable in any meaningful sense. It is the integral of decisions made at design time: how many agents are instantiated, which models they call, how many tokens each step consumes, and whether the graph terminates cleanly or loops.
Each of those decisions has a compounding effect. A single misconfigured orchestration layer that passes full conversation history to every downstream agent can multiply token consumption by an order of magnitude across a swarm of ten agents. The usage looks unpredictable. The cause is structural.
This is why cost governance conversations that focus on rate limits and spend alerts consistently underperform. They intervene after the architecture has already determined the outcome. The correct intervention point is the design review.
Decomposing Tasks Into Cost-Bounded Subtrees
The most reliable mechanism for bounding swarm cost is decomposing the top-level task into a tree structure where each node has an explicit context budget before orchestration begins.
Defining the Decomposition Unit
A well-formed decomposition unit is a subtask that can be completed with a bounded context window, a single model call or a small fixed number of calls, and a deterministic output schema. When a subtask requires open-ended retrieval, unbounded tool use, or free-form reasoning across an unknown number of steps, it is not a decomposition unit. It is a risk surface.
The practical discipline here is to refuse to route any task to an agent until it has been expressed as a specification with explicit input size, expected output size, and a maximum step count. This sounds bureaucratic. In practice it is the difference between a swarm that terminates and one that runs until a circuit breaker fires.
Tree Depth and Fan-Out as Cost Multipliers
Tree depth and fan-out are the two structural parameters that most directly drive cost. Each additional level of depth adds at least one model call per branch. Each unit of fan-out multiplies that cost across parallel paths.
A flat tree with high fan-out is often cheaper than a deep tree with moderate fan-out, because depth compounds while fan-out can be parallelised and pruned. Designing for minimum necessary depth before adding breadth is a useful heuristic when the task structure permits it.
Assigning Model Tiers to Roles
Not every node in a task tree requires a frontier model. Treating model selection as a per-role engineering decision rather than a system-wide default is one of the highest-leverage cost controls available.
The Role Taxonomy
A practical taxonomy for most enterprise swarms distinguishes three roles. Orchestrators coordinate subtask routing and synthesise outputs: they benefit from strong reasoning and justify frontier model costs. Executors perform bounded, well-specified work such as extraction, classification, or code generation within a defined schema: mid-tier models are typically sufficient. Validators check outputs against a rubric or schema: smaller, faster models handle this well and the cost savings at scale are significant.
The failure mode we see repeatedly is teams defaulting to a frontier model for every role because it simplifies the initial build. The simplification is real. The cost consequence at production scale is also real, and it compounds with every run.
Context Passing as a Hidden Cost Driver
Model tier selection is necessary but not sufficient. The other variable is how much context each agent receives. An executor running on a mid-tier model that receives the full orchestrator context, including all prior conversation history and retrieved documents, can easily cost more per call than a frontier model receiving a tight, scoped prompt.
Context discipline means each agent receives only what it needs to complete its specific subtask. This requires deliberate prompt engineering at the interface between agents, not just at the system boundary. We cover the routing mechanics of this in more detail in our published work on agent task routing architecture.
Companion piece to our broader work on multi-agent system design. See Agent Task Routing: Architecture Mistakes & Solutions for how competence-based routing and auction-style orchestration patterns affect task allocation and cost-quality trade-offs.
Orchestration Topology and Its Cost Implications
The topology of a swarm, meaning how agents are connected and how control flows between them, has a direct and often underestimated effect on total run cost.
Centralised vs. Distributed Orchestration
A centralised orchestrator that routes all tasks through a single coordinator is easier to reason about and easier to instrument. It also creates a single point of token accumulation, because the orchestrator must maintain enough context to make routing decisions across the full task graph.
Distributed orchestration, where subgraph coordinators manage local routing, reduces the context burden on any single agent. It introduces coordination overhead and makes cost attribution more complex. The right choice depends on task structure, but the cost implications of each topology should be modelled before the architecture is committed.
Loop Detection and Termination Guarantees
Unbounded loops are the primary cause of extreme cost outliers in production swarms. An agent that retries a failing tool call, escalates to a more capable model, and then retries again can consume an order of magnitude more tokens than a successful run, with no useful output.
Every agent in a production swarm should have an explicit maximum step count and a defined failure mode that terminates cleanly rather than escalating. This is not a monitoring concern. It is an architectural constraint that must be enforced at the agent definition layer before deployment.
Instrumenting for Cost Observability Before Production
Cost observability in multi-agent systems requires instrumentation at a finer granularity than most teams initially build. Per-run cost metrics are a starting point. They do not tell you which node in the task tree is the cost driver, which model tier is being over-used, or whether context passing is inflating token counts beyond the task requirement.
Useful instrumentation captures token consumption per agent per run, model tier utilised per role, step counts relative to the defined maximum, and context size at each agent boundary. With this data, cost variance becomes diagnosable rather than merely observable.
The operational value of this instrumentation extends beyond cost control. It provides the signal needed to validate whether the model-role allocation made at design time is holding under real task distributions. Production tasks rarely match the design-time assumptions exactly, and the instrumentation is what allows the architecture to be tuned rather than replaced.
Where Vector Labs Fits
We design and build production multi-agent systems with cost predictability treated as a first-class engineering constraint from the initial architecture review. Our work on agent task routing and orchestration design has helped enterprise teams move from unpredictable swarm spend to architectures where cost variance is bounded by design rather than managed after the fact. If you are scaling a multi-agent system and cost governance is becoming a blocker, we would welcome a direct conversation at vector-labs.ai/contacts.
FAQs
Cost architecture should be addressed at the task decomposition stage, before any model is selected and before any agent is implemented. The decisions made about tree structure, fan-out, and model-role allocation at that stage determine the cost envelope of the system. Retrofitting cost controls onto an existing architecture is possible but consistently more expensive in engineering time than designing for cost predictability from the start.
The decision should be driven by the complexity of the reasoning required for that specific role, not by a system-wide default. Orchestrators that must reason across ambiguous task structures justify frontier model costs. Executors performing bounded, schema-defined work typically do not. The practical approach is to define the output specification for each role first, then select the minimum model tier that reliably meets that specification at an acceptable quality threshold.
Unbounded loops and uncontrolled context accumulation are the two most common causes of extreme cost outliers. Loops occur when an agent retries a failing operation without a hard step limit, escalating through model tiers in the process. Context accumulation occurs when agents receive full conversation or retrieval history rather than a scoped prompt, multiplying token consumption at every node in the graph. Both are architectural issues with architectural solutions.
Neither topology is categorically cheaper. Centralised orchestration concentrates context in a single coordinator, which can inflate costs at scale but simplifies instrumentation. Distributed orchestration reduces per-agent context burden but adds coordination overhead and makes cost attribution more complex. The appropriate choice depends on the task graph structure, and the cost implications of each should be modelled explicitly before the architecture is committed.
At minimum, instrument token consumption per agent per run, model tier utilised per role, step counts relative to the defined maximum, and context size at each agent boundary. Per-run aggregate cost is a useful operational metric but insufficient for diagnosis. Without per-node instrumentation, cost variance is observable but not diagnosable, which means the engineering team cannot distinguish an architecture problem from a task distribution shift.
Tasks that resist clean decomposition are the highest-risk category for cost variance and should be treated as a design problem before they are treated as an implementation problem. The first step is to determine whether the task genuinely requires open-ended reasoning or whether the ambiguity is a symptom of an underspecified problem definition. Where open-ended reasoning is genuinely required, the architecture should isolate that agent, apply strict step and token limits, and define a termination condition that produces a partial output rather than an unbounded retry loop.

