TL;DR
This paper introduces Agentic Routing, a paradigm shift that moves model selection from a simple per-query trick to a core systems problem integrated into an agent's execution harness. By routing at each step based on the full execution state, the authors create a "harness-native data flywheel" where agent trajectories automatically generate high-quality training data to improve both routers and specialist models.
What Problem Does This Paper Address?
Traditional AI agents are often viewed as a single foundation model wrapped in a "harness" (tools, memory, and control logic). However, as LLMs become increasingly specialized—some excelling at coding, others at long-context retrieval or low-latency reasoning—no single model is optimal for every step of a complex task.
Existing routing methods typically optimize for single-turn chat completions, ignoring the "harness state": the history of tool failures, context pressure, and verification signals that define an agent's progress. The authors argue that routing should be a meta-decision conditioned on the entire execution trajectory, treating cost, quality, and recovery risk as coupled dimensions.
Methods
The authors propose a Harness-Native approach, implemented in a framework called OpenSquilla. The system operates in two distinct regimes:
- Singleton Routing (Cost-Effective): The router selects the cheapest single model capable of handling the current step. It treats this as a "capability matching" problem, pricing the risk that a cheap model's failure might lead to expensive downstream recovery.
- Multi-Model Ensemble (High-Accuracy): The router selects a set of complementary models and an aggregator (e.g., a judge or verifier) to fuse their outputs. This uses a "complementarity regularizer" to ensure the chosen models fail in decorrelated ways, maximizing the benefit of the ensemble.
The routing stack itself is four-layered: a token-complexity filter, a task-type classifier, a context-aware refiner, and finally a LightGBM ranker that makes the final selection. Crucially, every decision is logged as an "arena record," containing the query, state, model choice, execution trace, and environment-supplied outcome (success/failure and cost).
Datasets
The researchers evaluated their approach on two primary benchmarks:
- PinchBench (v1.2.1): A benchmark for OpenClaw-style agents performing real-world tasks, measuring success rate, execution time, and cost.
- DRACO: A cross-domain deep-research benchmark that evaluates factual accuracy, completeness, and citation quality.
Key Insights and Ideas
- The Flywheel Effect: Routing isn't just about saving money today; it's a data engine. Because the environment (the harness) provides the labels—like whether a tool call succeeded or a unit test passed—the system avoids the "self-poisoning" common in synthetic data loops.
- Routing as Systems Engineering: The paper reframes routing from a linguistic task to a systems optimization problem. A model isn't "strong" or "weak" in a vacuum; its utility depends on the specific harness state (e.g., how much context is currently in the buffer).
- Architectural Comparison: Unlike rule-based or simple LLM-based routers, agentic routing is reward-driven and long-horizon, optimizing over multiple turns rather than single decisions.
Key Results
The experiments demonstrate that agentic routing can significantly shift the Pareto frontier of cost and quality:
- Massive Cost Savings: On PinchBench, the singleton router achieved 90% cost reduction while retaining 99.77% of the quality of a fixed Claude 3.5 Opus baseline.
- Breaking the Quality Ceiling: On the DRACO research benchmark, the multi-model ensemble didn't just save money—it actually outperformed the strongest single-model baselines (like Fable 5) while still costing 68.9% less.
- Efficiency: The LightGBM-based router proved to be a "cold-start" seed that could be progressively improved into stronger policies as the arena records accumulated.
Limitations and Future Work
The authors acknowledge that routing adds its own latency and cost overhead, which must be kept below the savings generated by better model allocation. While the LightGBM router is a strong starting point, the "final" router model is intended to be an iterated policy learned from the data flywheel.
Future directions include:
- Edge-side routing: Moving the decision logic closer to the user for privacy and latency gains.
- Cache-aware routing: Optimizing model selection to preserve Key-Value (KV) cache locality.
- Token-level composition: Exploring even finer-grained routing that interacts with speculative decoding.
Summary updated