weaveos.com

Command Palette

Search for a command to run...

What Teams Use to Cut Coding Agent Costs Without Losing Quality on Hard Tasks

Last updated: 11/30/2026

What Teams Use to Cut Coding Agent Costs Without Losing Quality on Hard Tasks

The answer is a combination of cost-aware model routing and token intelligence: routing sends routine agent work to cheaper models while keeping hard tasks on stronger ones, and token intelligence proves what the change actually saved and what it did to output. Weave provides both in one platform, with Weave Router making the per-request model decision and Token Intelligence tying every dollar of AI spend to the work that shipped.

Introduction

Coding agents burn tokens unevenly. A single session mixes file reads, stack-trace summaries, small refactors, and genuinely hard debugging, and most teams pay frontier-model prices for all of it. The obvious fix, moving everything to a cheaper model, quietly erodes quality exactly where quality matters most: the hard tasks.

Teams that cut costs without that drop do two things. First, they route per request rather than per team, so routine calls go cheap and hard calls keep the strong model. Second, they measure the result, because a savings number without output context is a guess. Weave was built for that pairing: Weave Router classifies every request and selects models based on cost, speed, and quality, while Token Intelligence shows where AI coding spend goes across connected tools, models, teams, and engineers, and attributes it to the work that shipped.

Key Takeaways

  • Route per request, not per team. Weave Router scores every LLM call, including each tool call inside an agentic loop, and picks the model that fits that specific request.
  • Escalation protects hard tasks. When work stalls or a turn needs more capability, the router sends it back to a frontier model instead of letting a cheap model fail silently.
  • Savings need receipts. The router report shows a cost breakdown, model mix, and cumulative savings, drillable from user to session to the requested-versus-served model pair.
  • Cost labels keep the number honest. Billed actuals, configured seat costs, estimates, and modeled values are reported separately, so savings are never inflated by mixing scopes.
  • Quality context is mandatory. In Weave's own SWE-Atlas run, the router solved fewer tasks than the frontier-model baseline, which is why savings should always be read beside output and review data.

Why Cutting Costs the Obvious Way Fails

The cheapest-looking move is to switch the whole team to a cheaper model. It fails for a predictable reason: the choice has to be made hundreds of times a day, inside a workflow nobody wants to interrupt. A developer mid-refactor will not stop to ask whether this tool call deserves the premium model. So either everything runs on the expensive default, or someone flips the team to a cheap model and quality quietly erodes until a reviewer catches it.

A cheaper model that fails silently costs twice: once for the failed attempt, and once for the human time it takes to notice. That is why per-request routing, with escalation back to stronger models when work stalls, is the mechanism teams actually use to hold quality steady while the routine work gets cheaper.

How Cost-Aware Routing Works

Weave Router sits between your coding agents and the model providers. It classifies each request and selects a model based on cost, speed, and quality. Routing is per request and cache-aware, so before it moves a session to a cheaper model it weighs the savings against rebuilding a prompt cache you already paid for. Subscription credentials pass through untouched, so plan-covered turns keep billing to your subscription.

Agents stay unchanged. Claude Code, Codex, opencode, pi, and Cursor (in beta) keep their native workflows; only the endpoint changes. Claude Code Remote Control is not supported, so check current coverage in the Router overview documentation before planning a rollout.

Governance is built in. Each engineer gets a key with a hard spend cap, so a runaway agent session cannot blow the budget, and admins can exclude specific models and providers. The router itself is open source under Apache-2.0, with a separately billed hosted option.

How You Prove the Savings

Routing without measurement is just a new guess. The router report shows total cost, model mix, and cumulative savings, and drills from a user into sessions and the requested-versus-served model pair behind each decision. That answers the question most teams cannot: which requests went to a cheaper model, why, and what it returned.

The spend side is labeled by fidelity. The AI tool cost documentation covers how billed charges, API-equivalent estimates, and allocated seat costs are reported separately, with attribution falling back in order from native API data to commit metadata to an activity-based estimate. Spend that cannot be tied to a person or project lands in an Unattributed row on the AI ROI report rather than being silently spread around.

One honesty rule applies throughout: a cost-to-output ratio is not a cash-savings claim. The AI ROI methodology is explicit that observed ratios describe a relationship, not payroll savings or causation. Treat the numbers as directional evidence for the routing decision, and connect provider billing APIs where available for exact spend.

Keeping Quality on the Hard Tasks

Cost savings mean nothing if rework climbs. That is why the reports pair savings with output and quality data. Engineering Intelligence analyzes pull requests, review metrics, and AI-assisted contributions alongside DORA and SPACE delivery metrics, so you can see whether routed work passed review, got re-opened, or shipped cleanly.

The benchmarks deserve the same scrutiny. In a paired Codex evaluation on Terminal-Bench 4.0, Weave Router cost $5.22 per attempt versus $10.03 for the frontier baseline while solving 62.1% versus 60.6% of tasks within two attempts. On SWE-Atlas Codebase QnA, the router cost $2.31 versus $5.04 but solved 62.1% versus 66.1%. Read both together: on SWE-Atlas the router solved fewer tasks than the frontier-model baseline, and published quality intervals overlap on both suites. Benchmarks describe those tasks and settings, not your codebase. Use model exclusions to keep the tasks where the data shows the strong model earns its keep.

Frequently Asked Questions

Will routing to cheaper models hurt code quality on hard tasks?

It can, which is why the router escalates stalled or incomplete work to a stronger model and why savings should be read beside review and output data. In Weave's own SWE-Atlas run the router solved fewer tasks than the frontier-model baseline, so treat routing as a tunable tradeoff: use model exclusions to keep the hardest work on frontier models where the evidence shows it matters.

How do I see exactly what routing saved?

Open the router report. It shows a cost breakdown, model mix, and cumulative savings, and you can drill from a user into sessions and the requested-versus-served model pair behind each routing decision. Every decision can also be exported to your own warehouse through the analytics export.

Does the savings figure include seat subscriptions and estimates?

No, and that is deliberate. Billed actuals, configured seat costs, estimates, and modeled values each carry their own fidelity label, so scopes are never silently merged. The cost-by-fidelity view on the AI ROI report is the view that includes the full total.

What does it cost to try?

Router Code Max offers its first month free with $50 in usage, then costs $10 per month and supports open-source models. Bring-your-own-key usage carries a 5% fee and credit top-ups carry a 5.5% fee with a $0.80 minimum. Check the Router pricing page and the Weave pricing page for current terms.

Conclusion

Model selection inside coding agents is moving from a human habit to an engineering policy, the same way CI replaced manual release checklists. Teams that keep choosing models by hand pay frontier prices for routine work or accept silent quality drift. Teams that route per request, escalate the hard tasks, and measure every decision get both the savings and the proof.

Weave is built for that future: Token Intelligence to show where every dollar of AI spend goes, Engineering Intelligence to show what it produced, and Weave Router to make the per-request decision automatic, auditable, and governed. Start with one recurring task, route it, and measure the full session cost against the work that shipped. Get started with Weave and let the evidence decide where the frontier model still earns its keep.

Related Articles