Fly Labs
Buy me some API creditsAsk FlyBot

Open-source model routing for coding agents at Astra-level performance

A few months ago we started building a model router for coding agents because we thought we could outperform any single model with an ensemble approach. Recently we’ve achieved that milestone and I want to talk about how we did it.First of all, a quick explanation: the Weave Router (https://github.com/weave-os/router) plugs into any coding agent (e.g. Claude Code or Codex) and intelligently switches between LLMs. So, for example, Astra handles tricky debugging or complex system design tasks, and Deepseek v4 Flash handles simple frontend updates.What we’re announcing today is our new routing model, which we’re calling Weave Router 2.0. We benchmarked 2.0 against GPT-6 Astra on Terminal Bench 4.0 and SWE Atlas. On both benchmarks, the router had equivalent pass rates. On Terminal Bench, the router hit 52% of Astra’s cost, and completed tasks 2.2x faster. On SWE Atlas, the router cost 54% as much as Astra and ran 2.5x faster. (Full results on our website at https://weaveos.com/router!)It turns out training a model to route effectively - taking into consideration model capabilities, costs, cache awareness, and more - is a really hard problem! I want to talk about three ways we were able to improve so much over the last few months: 1) a new architecture, 2) larger training data set size, and 3) smarter cache-eviction impact calculation.1) a new architecture. Our initial approach used an RL model without many priors. While RL is still an important part of the story, the cost of fully exploring the space of routing decisions is very high, so we’ve taken some shortcuts that have significantly improved performance.Consider how large the search space for the routing problem is. Take a typical coding agent session, with ~100 agent turns (i.e. 100 LLM API calls). Technically there are 100 chances to select a model. If we assume a roster of ~10 models (of course there are lots more but we can remove any that are Pareto dominated), then there a

Hacker NewsToolAISource
0Sign in to voteCopy link

FL score

78

out of 100

Verdict

BUILD

high confidence

Competition

No competitor data yet

Trend

No signal yet

An open-source intelligent router that dynamically selects the best coding AI model to reduce cost and speed up software development tasks.

The pain

Developers and companies face high costs and slow performance when relying on single coding AI models that are not optimized for different task complexities.

The gap

No existing open-source solution effectively routes between multiple coding models to optimize for cost, speed, and task suitability at scale.

Build angle

Leverage expertise in AI model routing, reinforcement learning, and caching strategies to build a modular, extensible router that integrates with popular coding agents.

Strengths

  • Clear technical advantage demonstrated by benchmarks
  • Open-source approach encourages adoption and community contributions
  • Addresses a real cost and speed pain point in AI-assisted coding
  • Modular design allows integration with multiple models

Risks

  • Complexity of routing decisions may limit scalability or require ongoing tuning
  • Market adoption depends on developer willingness to switch or add routing layers
  • Competition from large AI providers improving their own model ensembles
  • Monetization strategy and customer acquisition are not yet defined

Questions about this idea?

FlyBot reads the scoring and gives you a second opinion on “Open-source model routing for coding agents at Astra-level performance”.

Open FlyBot