Routing AI Agents Through Multiple Models Cuts Costs Up to 90%
An open-source router that switches between AI models mid-task can preserve task quality while cutting inference costs by up to 90%.
- What they did — Built a four-layer routing system (OpenSquilla) that selects which LLM to call at each step of an AI agent's execution, conditioned on the full harness state — including tool history, verification signals, and recovery status — rather than just the user's initial query.
- Key result — The open LightGBM router preserved task quality while cutting realized cost by ~90% on PinchBench and ~43% on DRACO relative to always using a single strong model; multi-model routing pushed the DRACO quality frontier upward while often lowering cost.
- Why it matters — For teams running multi-step AI agents at scale, step-level routing could substantially reduce inference spend without sacrificing output quality — and the logged execution traces create training data for better future routing.

An open-source router that switches between AI models mid-task can preserve task quality while cutting inference costs by up to 90%.
The Problem
AI agents don't make a single model call — they execute multi-step workflows managed by a harness that handles observation, context, tool use, verification, and recovery [§1]. Meanwhile, frontier models are becoming structurally specialized: one model excels at code editing, another at long-context retrieval, another at mathematical reasoning, and yet another at fast, cheap responses [§1]. No single model dominates every axis.
This creates a routing problem. Existing model-routing systems mostly optimize single-turn cost-quality trade-offs — they look at a user's prompt and decide whether to send it to a cheap or expensive model [§2]. But agent execution is multi-step and stateful. A cheap model at step five might cause an expensive correction at step eight. A verification failure at one step changes what model should handle the next step. The router needs to see the full execution state, not just the original question [§1].
The paper frames this gap precisely: prior routers "do not directly model tool failures, context pressure, verifier feedback, recovery attempts, or the accumulated trajectory that determines whether a cheap model remains sufficient at the current step" [§2].
What They Did
The authors propose what they call harness-native agentic routing: at each decision point during agent execution, a router selects which model (or set of models) should act next, based on the full harness state — including the current observation, tool history, recovery status, and verification signals [§3.1].
The system operates in two user-selected modes [§1, Figure 1]. In cost-effective mode, the router picks a single best-fit model for each step — like choosing between a sports car and a minivan depending on whether you're on a highway or hauling groceries. In high-accuracy mode, it selects multiple complementary models whose outputs are combined through ensemble techniques such as voting, verification, or fallback policies.
The concrete implementation, called OpenSquilla, uses a four-layer routing stack [§1]. First, a token-complexity filter catches trivial requests and sends them to cheap models — think of it as a triage nurse directing minor cases away from the ER. Second, a task-type classifier separates requests into coding, reasoning, chat, and tool-use categories. Third, a context-aware refiner incorporates the current harness state. Fourth, a LightGBM ranker — a gradient-boosted decision tree model, open-sourced for cold-start use — selects the cheapest capable model from the remaining candidates.
The paper's central architectural insight is that routing is also a data-producing operation [§1]. Every step-level decision generates a structured record: the query, harness state, model choice, execution trace, outcome, and realized cost. Critically, the labels come from the environment — did the step succeed? what did it cost? — rather than from human annotators. This creates what the authors call a "harness-native data flywheel": better routing lowers cost, lower cost allows more tasks under the same budget, more tasks produce more traces, and more traces train better routers [§1].
The Results
The evaluation covers both routing modes on two agentic benchmarks: PinchBench and DRACO.
For singleton routing, the open LightGBM router preserves end-to-end task quality while cutting realized cost by roughly 90% on PinchBench and about 43% on DRACO, relative to a fixed strong-model baseline [§1]. For multi-model routing, selected complementary proposer sets with aggregation push the DRACO quality frontier upward while often lowering cost [§1].
These are aggregate deployed-policy frontier points rather than per-step breakdowns [§1]. The paper notes that logged arena records provide the basis for route-level decomposition of routing granularity, harness-state signals, and model-pool effects, but the published evaluation stays at the aggregate level [§1].
Several limitations deserve concrete attention. The evaluation covers only two agentic benchmarks — PinchBench and DRACO [§1]. Production agent deployments involve far more diverse task distributions, unpredictable tool environments, and mixed human-AI workflows. The gap between controlled benchmark routing and reliable production routing likely requires substantial additional validation, probably 1-2 years of deployment iteration for teams building on this approach. The paper also does not report the size of the model pool used or name specific models routed between, making it difficult to assess how the results generalize to different model combinations. Additionally, the data flywheel — the paper's central conceptual contribution — is described as a staged path rather than empirically validated end-to-end: the paper argues that traces train better routers but does not report iterative improvement metrics across flywheel cycles [§1].
The open-source boundary is also deliberate and worth noting: the LightGBM cold-start ranker is released, but accumulated arena records and later high-accuracy policy generations are served through the OpenSquilla API [§1]. This means the flywheel's most valuable output — the accumulated routing data — remains proprietary.
Why It Matters
For teams running multi-step AI agents at meaningful scale, inference cost is often the binding constraint on how many tasks can be attempted. A 43-90% cost reduction while preserving quality, if it holds beyond benchmarks, changes the economics of agent deployment directly [§1].
The deeper implication is architectural. The paper argues that routing should not be a thin serving layer but a "meta-decision across harness responsibilities" [§1] — one that also produces structured training data as a byproduct. This positions agentic routing as "not merely cost control, but a data engine for agent-native training" [Abstract]. This is a lab proof-of-concept with promising benchmark numbers, not a production-validated system. But for teams designing agent architectures today, the question of where routing logic lives — and whether it should be harness-aware and step-level rather than query-level — is worth answering now, before the architecture calcifies.