DEV Community

Cover image for Why Routing Every Coding Session to One Model Is Becoming a Costly Mistake
Entelligence AI for Entelligence AI

Posted on

Why Routing Every Coding Session to One Model Is Becoming a Costly Mistake

Most coding agents don't spend the majority of their time doing hard reasoning.

After looking through hundreds of coding agent traces, we found that frontier models like Claude Opus, GPT-5.5, and GLM-5.2 were often handling routine work such as searching files, rerunning tests, updating imports, and reading logs. Those steps are necessary, but they rarely need the strongest model available.

The problem is that most agents pick one model at the beginning of a session and stick with it until the task is finished.
Architecture diagram showing a coding agent sending requests through a model router, which selects between standard, strong, and frontier model tiers before returning the response.

Whether the agent is designing a new feature or fixing a missing import, every turn goes through the same expensive model.

Instead, we explored routing at the turn level rather than the session level. Simpler steps stay on cheaper models, while difficult reasoning automatically escalates to stronger ones before dropping back down when the work becomes routine again.

Here's an example of how a single turn is classified before selecting the model tier.
Example of a single coding agent turn being classified from its execution trace before the router selects the appropriate model tier instead of using a frontier model by default.

This shifts the optimization goal from cost per token to cost per solved task. In real coding workflows, not every interaction deserves frontier-level reasoning, so treating every turn the same ends up wasting both latency and money.

Our benchmarks showed that per-turn routing can maintain frontier-level coding performance while significantly reducing provider costs.
Benchmark comparing cost versus Terminal Bench score for Eco, Balanced, Opus 4.8, Sonnet 4.6, and OpenRouter Auto, showing the balanced router matches frontier performance at significantly lower cost.

If you're interested in the routing strategy, benchmarks, execution traces, and implementation details, we published the full engineering write-up here:

Frontier-quality coding agents at half the cost

Entelligence Model ROuter : Frontier Models at half the cost.

favicon entelligence.ai

Top comments (0)