Open SWE router cuts coding agent cost 64% versus always-GPT-6
router lives in the harness, not a gateway, bc the harness knows the task blog: https://t.co/k9b306...
Placing routing logic inside the agent harness — which knows the task — beat gateway-level routing on cost without hurting merge quality. Teams running coding agents can replicate the tiered setup and measure merge rate, not just cost, before rolling out. LangChain itself flags the caveats: the control was the most expensive model and the router is still a proof of concept.
LangChain tested a router in Open SWE, its open-source coding agent, across three model tiers on 973 threads.
Half the threads were routed to the cheapest capable model, half always ran on GPT-6 Astra.Median cost per thread was US$0.
94 routed versus US$2.61, a 64% reduction.
Merge rates were statistically indistinguishable (29.2% routed vs 27.
3%, p-value 0.49).
The router sent 56% of threads to the balanced model, 34% to the fast model and 10% to the performance model.
router lives in the harness, not a gateway, bc the harness knows the task blog: https://t.co/k9b306...
router lives in the harness, not a gateway, bc the harness knows the task blog: langchain.com/blog/how-to-bu… x.com/neil_xbt/statu… NeilXbt @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? 🔗 View Quoted Tweet📊 11 ⚡
This report is categorized under AITOP's "Papers" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include LangChain, Open SWE, GPT-6 Astra, agents.
Source attribution: curated from Harrison Chase (@hwchase17). Cross-source corroboration: 11 independent sources have covered this development (including rohanpaul_ai, Artificial Analysis, Paul Couvert), confirming industry-wide signal strength.