# LangChain's Open SWE router cut median thread cost 64% with no significant drop in merged PRs

> Original title: router lives in the harness, not a gateway, bc the harness knows the task

- Source: Harrison Chase
- Published: 2026-10-13T16:16:08.000Z
- Bad Influence: https://badinfluence.news/items/bxuen298vsywoszatzbhuw42u
- Original: https://x.com/hwchase17/status/2110041909284745578

## Summary

LangChain tested a model router in its open-source coding agent Open SWE across 973 threads, half routed and half always on GPT-6 Astra. Median cost per thread fell from $2.61 to $0.94, while the merged-PR rate was 29.2% routed against 27.3% on Astra, a gap LangChain reports with a p-value of 0.49. LangChain notes the control was its most expensive model and the router is a proof of concept.

## Post

router lives in the harness, not a gateway, bc the harness knows the task

blog: https://www.langchain.com/blog/how-to-build-a-model-router-in-the-harness

https://x.com/neil_xbt/status/2109979966859510156

## Quoted post @neil_xbt

> LangChain gave its coding agent three models and a router.
> 
> Open SWE, their open-source coding agent, now sends each thread to the cheapest model likely to finish the job.
> 
> they tested it on 973 threads, half routed and half always on GPT-6 Astra.
> 
> median cost per thread: $0.94 against $2.61. that's 64% lower.
> 
> threads ending in a merged PR: 29.2% routed, 27.3% on Astra. LangChain's p-value for that gap is 0.49.
> 
> the router sent 56% of threads to the balanced model, 34% to the fast one and 10% to the performance one.
> 
> they also tried always using the fast model. that test ended within a day, because engineers reported low output quality.
> 
> LangChain's own caveats: the control was the most expensive model, and the router is a proof of concept.
> 
> Which three models would you put in the tiers?

https://x.com/neil_xbt/status/2109979966859510156
