HackerTrans
TopNewTrendsCommentsPastAskShowJobs

adchurch

no profile record

Submissions

Show HN: Smart model routing directly in Claude, Codex and Cursor

github.com
216 points·by adchurch·18 giorni fa·113 comments

Show HN: Optimal model routing directly in Claude, Codex and Cursor

github.com
4 points·by adchurch·21 giorni fa·0 comments

Show HN: Weave - actually measure engineering productivity

app.workweave.ai
22 points·by adchurch·2 anni fa·39 comments

Show HN: WorkWeave, a tool to make every engineer a 10x engineer

app.workweave.ai
17 points·by adchurch·2 anni fa·8 comments

comments

adchurch
·15 giorni fa·discuss
Effectively yes (based on cost though, not raw token count)
adchurch
·17 giorni fa·discuss
We trained a model to select which LLM to call at any given turn, based on lots of agent traces
adchurch
·17 giorni fa·discuss
Yes the open source models are very good, that’s a big part of what makes this router save so much money in practice! There definitely are some things they still don’t handle well though where you do want a frontier model
adchurch
·17 giorni fa·discuss
Yes we can route to Gemini models too and we handle all the translation complexity there!
adchurch
·17 giorni fa·discuss
We welcome the competition :)
adchurch
·17 giorni fa·discuss
Yep exactly
adchurch
·18 giorni fa·discuss
Yes because it's a model explicitly trained to make model selections! Opus probably doesn't have a great idea of when to send a task to DeepSeek vs. to Sonnet, for example.
adchurch
·18 giorni fa·discuss
We haven't experimented with routing to local LLMs much. Technically they benefit from the cache too although it's more a question of latency than cost. But tbh I haven't seen great results in the wild from working with local LLMs for coding - curious if you've had any success with them?
adchurch
·18 giorni fa·discuss
I think the key detail here is that we use embeddings of the prompt + previous context in order to decide where to route the request, and if one model is getting stuck we can course correct and move to a different model.

So: we can reasonably cluster similar problems together and learn how models handle them, and the entire system doesn't fail if the initial decision is off.
adchurch
·18 giorni fa·discuss
We consider the cost of missing the cache when making each routing decision after the initial one. Discussed in a bit more depth here: https://news.ycombinator.com/item?id=48689448
adchurch
·18 giorni fa·discuss
Good questions. From what I can tell, vLLM semantic router is more optimized for one-off prompt/response workflows rather than agentic coding (I don't think it's cache aware).

As another commenter (https://news.ycombinator.com/item?id=48689994) pointed out, for one-off requests, I think it makes more sense to lock to one model whose behavior you understand very well. For dynamic requests like the ones going to a coding agent I think dynamic routing makes more sense but it does need to be cache aware.
adchurch
·18 giorni fa·discuss
Cool, interested to see your approach when you do launch! I think it's a really interesting problem
adchurch
·18 giorni fa·discuss
Great question! Our main product quantifies engineering productivity & quality so I think we're uniquely qualified to answer this - our velocity has only gone up and our quality (bugs introduced, code turnover) has not budged per our own analysis.
adchurch
·18 giorni fa·discuss
Oh interesting, didn't know Cursor did that! Totally makes sense though, routing subagents is def the easiest win, no need to have any cache awareness.
adchurch
·18 giorni fa·discuss
If you have a Claude sub with subsidized usage we use that. If not you pay API prices.
adchurch
·18 giorni fa·discuss
Really appreciate the thoughtful feedback!

1. Agree it's important, fwiw the proxy model doesn't blow this up though - only incurs a 1 time cost when switching models and we're aware of that when making routing decisions

2. The agents are model aware yes but they are not incentivized to optimize too heavily here (in particular they don't use OS models even when they would be better). I think that's where this router comes in and brings genuine improvement.

3. Two parts here: 1 is continuing to grow our golden dataset over time, 2 is using reward signals from production traffic (on a per-customer basis or, if allowed, across all users)

4. Yes we have these internally, great callout that we should publish! Will do + will link from the repo soon. (Fwiw I think these benchmarks are useful but don't fully capture vibes - you should try it out yourself for that!)
adchurch
·18 giorni fa·discuss
Appreciate the kind words! Lmk if you have any feedback on it from using!
adchurch
·18 giorni fa·discuss
I would argue they do not have a good incentive to build this and make it better. Why would Anthropic route Claude Code traffic to DeepSeek (at 20% of the cost)?
adchurch
·18 giorni fa·discuss
Very important consideration, addressed it in another thread (https://news.ycombinator.com/item?id=48689448). tl;dr we built this to be cache aware for exactly this reason
adchurch
·18 giorni fa·discuss
When we started building this we did it as an experiment and we thought the same thing might be true (cache misses would make the whole thing pointless). This turned out not to be true! I think there are 3 reasons intuitively:

1. Small models can carry out a good number of requests e2e 2. Small model for part of a request + cache miss < big model for entire request in many cases 3. Subagents

For our own usage we've saved 40% so far (that is of course including costs of uncached requests when switching models)