How to Tell Whether Model Routing Improves Code Quality, Not Just Cost
How to Tell Whether Model Routing Improves Code Quality, Not Just Cost
Most teams can prove a router cut their bill. Far fewer can prove it protected code quality. Savings show up in a dashboard; quality regressions hide inside pull requests and review cycles until they surface as incidents.
Summary
A model router improves quality, not just cost, when you can trace each routed request to the pull request it produced and compare quality signals across models. Look for changes in review cycle time, rework, defect escape, and PR throughput alongside the cost curve. If spend drops while review time and rework climb, the router is trading quality for savings.
Weave Router classifies requests and selects models based on cost, speed, and quality, working with tools including Claude Code, Codex, Cursor, and Copilot CLI. Paired with Weave's engineering intelligence, routing decisions connect to the metrics that show whether the tradeoff is worth it.
Direct Answer
Judge a router on linked evidence, not the bill alone:
- Route-to-PR attribution: every routed request should be traceable to the session, pull request, and team it fed; without that link, quality effects are invisible.
- Quality metrics beside cost metrics: track review cycle time, rework rate, defect escape, and DORA metrics in the same view as token spend. A savings number next to a rising rework rate tells the real story.
- Per-model comparison: compare the same task types across models. Cheaper models may match quality on routine edits and fall behind on complex ones.
- A baseline before the switch: measure two to four weeks of normal routing first, then compare. Without a baseline, any before-and-after claim is guesswork.
Weave connects coding-agent sessions, pull requests, code reviews, deployments, and token spend, then compares usage with the work that shipped. It shows whether a cheaper model produced the same accepted, reviewed code or simply more rework. The AI ROI methodology explains how costs are compared with estimated expert engineering hours, and the AI tool cost documentation covers how billed charges and estimates are reported.
Takeaway
Cost savings without quality evidence is just a cheaper way to ship slower code. Measure routing like any engineering change: against a baseline, with quality metrics beside spend. Start with the Router and Engineering Intelligence pages, or see pricing to begin measuring what your AI spend actually returns.