Training an Agentic Router for Optimal Cost-Performance on SWE Tasks | Applied Compute
On most enterprise tasks, model quality is not a scalar. One model is better at long-horizon repository exploration. Another is better at small, surgical patches. A third has stronger general reasoning but higher latency or cost. The right model depends on the task, the environment, and the failure mode that matters. This is especially apparent in agentic software engineering, where every task unfolds as a trajectory. The model reads files, searches the repository, forms a hypothesis, edits code, runs tests, and decides when to stop. The best model for one issue may be the wrong model for the next one. Routing each task to the model best suited to solve it captures the strengths of specialized models and routes around their weaknesses, instead of settling for one model's compromises across the board. But this only works with a router that picks the model most likely to solve a given task, at the lowest cost, using the local evidence available before the rollout begins. Many of our work
On most enterprise tasks, model quality is not a scalar. One model is better at long-horizon repository exploration. Another is better at small, surgical patches. A third has stronger general reasoning but higher latency or cost. The right model depends on the task, the environment, and the failure mode that matters. This is especially apparent in agentic software engineering, where every task unfolds as a trajectory. The model reads files, searches the repository, forms a hypothesis, edits code, runs tests, and decides when to stop. The best model for one issue may be the wrong model for the
saved by
related reading
- Unlocking Real-Time Bug Detection at Cognition | Applied Computeappliedcompute.com
- Training a State-of-the-Art Legal Agent with Harvey | Applied Computeappliedcompute.com
- [2607.00053] SWE-Router: Routing in Multi-turn Agentic Software Engineering Tasksarxiv.org
- Agent swarms and the new model economics · Cursorcursor.com
- Building Effective AI Agents \ Anthropicanthropic.com
- Composer2.pdfcursor.com
- Router by Ramprouter.com
- SWE-1.7: Frontier Intelligence at a Fraction of the Costcognition.com
- AI Model & API Providers Analysis | Artificial Analysisartificialanalysis.ai
- Introducing SWE-2: Pushing the Pareto Frontiercognition.com
- RouteLLM: An Open-Source Framework for Cost-Effective LLM Routing - LMSYS Orglmsys.org
- Compare AI Models: Pricing, Context & Benchmarks | OpenRouteropenrouter.ai