mlsanityData to 14 Oct 2026

SWE-Router: Routing in Multi-turn Agentic Software Engineering Tasks

arXiv 2607.00053 ↗First posted 30 Jun 2026cs.SE cs.AIcited by 11

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

Large language models (LLMs) embedded in multi-turn agentic harnesses are reshaping software engineering (SWE), but routing every task to a frontier model is wasteful when many issues admit cheap fixes. Existing LLM routers operate on the task description alone, which inherits an information-theoretic Bayes-error floor in agentic settings: a similar issue can hide either a localized typo or a multi-module refactor, and the prompt does not separate the two. We introduce SWE-Router, a value-based temporal approach that lets a cheap model run for a few exploratory turns and reads the resulting partial trajectory before deciding whether to continue cheaply or to escalate to an expensive model. We provide a Bayes-optimality theorem showing that conditioning on the partial trajectory never harms routing and is strictly better whenever exploration is informative. Across the LLM pairs of weak and strong models spanning the contemporary cost--capability frontier, we show that SWE-Router greatly improves the cost efficiency of SWE tasks, while maintaining the majority of the performances of the stronger model. We additionally release a multi-LLM trajectory dataset which allows reproduction of our trajectory-level routing.

Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 47 of its 55 references that are in the map. First posted on arXiv 30 Jun 2026.

Builds on

47 of 55 references.

Closest ancestors · 6

Same direction, newest first

  1. 2025SWE-RM: Execution-free Feedback For Software Engineering Agents26 Dec
  2. 2025SWE-smith: Scaling Data for Software Engineering Agents30 Apr
  3. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
  4. 2024Agentless: Demystifying LLM-based Software Engineering Agents1 Jul
  5. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May
  6. 2024Executable Code Actions Elicit Better LLM Agents1 Feb

Other references · 41

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  3. 2021Program Synthesis with Large Language Modelscited by 3,637
  4. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
  5. 2021Measuring Coding Challenge Competence With APPScited by 902
  6. 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 853
  7. 2024RouteLLM: Learning to Route LLMs with Preference Datacited by 682
  8. 2023LLM-Blender: Ensembling Large Language Models with Pairwise Ranking and Generative Fusioncited by 564
  9. 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
  10. 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 353
  11. 2025SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks?cited by 279
  12. 2024RouterBench: A Benchmark for Multi-LLM Routing Systemcited by 238
29 more
  1. 2024SWE-bench Multimodal: Do AI Systems Generalize to Visual Software Domains?cited by 203
  2. 2024A Careful Examination of Large Language Model Performance on Grade School Arithmeticcited by 191
  3. 2025Reasoning Models Can Be Effective Without Thinkingcited by 187
  4. 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 183
  5. 2025Multi-SWE-bench: A Multilingual Benchmark for Issue Resolvingcited by 171
  6. 2024GraphRouter: A Graph-based Router for LLM Selectionscited by 165
  7. 2024Benchmark Data Contamination of Large Language Models: A Surveycited by 147
  8. 2023Large Language Model Cascades with Mixture of Thoughts Representations for Cost-efficient Reasoningcited by 143
  9. 2023CodePlan: Repository-level Coding using LLMs and Planningcited by 140
  10. 2023Investigating Data Contamination in Modern Benchmarks for Large Language Modelscited by 138
  11. 2023AutoMix: Automatically Mixing Language Modelscited by 125
  12. 2024SWE-Bench+: Enhanced Coding Benchmark for LLMscited by 99
  13. 2023Fly-Swat or Cannon? Cost-Effective Language Model Choice via Meta-Modelingcited by 95
  14. 2025Universal Model Routing for Efficient LLM Inferencecited by 86
  15. 2025SWE-bench Goes Live!cited by 80
  16. 2025Router-R1: Teaching LLMs Multi-Round Routing and Aggregation via Reinforcement Learningcited by 72
  17. 2025RouterEval: A Comprehensive Benchmark for Routing LLMs to Explore Model-level Scaling Up in LLMscited by 61
  18. 2024EmbedLLM: Learning Compact Representations of Large Language Modelscited by 48
  19. 2025IRT-Router: Effective and Interpretable Multi-LLM Routing via Item Response Theorycited by 40
  20. 2025CARROT: A Cost Aware Rate Optimal Routercited by 39
  21. 2025SWE-Perf: Can Language Models Optimize Code Performance on Real-World Repositories?cited by 36
  22. 2025OmniRouter: Budget and Performance Controllable Multi-LLM Routingcited by 35
  23. 2025Route to Reason: Adaptive Routing for LLM and Reasoning Strategy Selectioncited by 23
  24. 2025RouterArena: An Open Platform for Comprehensive Comparison of LLM Routerscited by 22
  25. 2025Cost-Aware Contrastive Routing for LLMscited by 16
  26. 2025Route-and-Reason: Scaling Large Language Model Reasoning with Reinforced Model Routercited by 13
  27. 2025When to Reason: Semantic Router for vLLMcited by 12
  28. 2025IPR: Intelligent Prompt Routing with User-Controlled Quality-Cost Trade-offscited by 5
  29. 2026Think When Needed: Model-Aware Reasoning Routing for LLM-based Rankingcited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 11.

11 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025SWE-Compass: Towards Unified Evaluation of Agentic Coding Abilities for Large Language Models
  2. 2026Open-SWE-Traces: Advancing Dual-Mode Multilingual Distillation for Software Engineering Agents
  3. 2025When Agents go Astray: Course-Correcting SWE Agents with PRMs
  4. 2024SWE-Search: Enhancing Software Agents with Monte Carlo Tree Search and Iterative Refinement
  5. 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic System
  6. 2026The Evolution of Tool Use in LLM Agents: From Single-Tool Call to Multi-Tool Orchestration
  7. 2025LoCoBench-Agent: An Interactive Benchmark for LLM Agents in Long-Context Software Engineering
  8. 2026SWE-Replay: Efficient Test-Time Scaling for Software Engineering Agents