
How to Build a Model Router in the Harness
LangChain6 October 2026Watch on YouTube
What you'll learn
- You learn what a model router does inside the harness of a coding agent like Open SWE.
- You see the four steps: mapping the task mix with LangSmith traces, picking models along the Pareto frontier, building the router in the harness and tracking outcomes.
- You learn that the router cut median cost per thread by 64% with no measurable change in quality.
- You hear why open models fit the fast tier and why the fast tier test was stopped after a day.
- You get a look at what is next: benchmarks, subagents and mid-thread rerouting.
Frequently asked questions
What did the model router in Open SWE do and what result did it deliver?
Which four steps does the episode give for building a model router?
Why were open models used for the fast tier?
Why did the team stop the fast tier test after a day?
Topics
In this video
Read next
World Summit AI keert in 2026 terug naar Amsterdam voor tiende editie
Op 7 en 8 oktober 2026 vindt in Amsterdam de tiende editie van de World Summit AI plaats, met meer dan 10.000 verwachte deelnemers, 300 sprekers en 100 exposanten. Het evenement wordt gehouden in Taets Art & Event Park en is onderdeel van de bredere World AI Week.
AI-agentframeworks winnen terrein nu modellen en platforms de markt rijper maken
Frameworks als LangChain, AutoGen en CrewAI worden steeds vaker ingezet voor complexe AI-workflows en multi-agentsystemen. Nieuwe modellen van Meta, Anthropic en het Chinese Meituan versterken die trend.
Een golf van nieuwe AI-agenttools kondigt zich aan rond begin september 2026
Rond 4 september 2026 werden meerdere nieuwe AI-agentframeworks en ontwikkelaarstools gelanceerd of bijgewerkt, van GitHub's multi-model orchestratiepreview HydraFusion tot gespecialiseerde tools voor locatiedata, beveiliging en gedeelde terminal-omgevingen.
World Summit AI keert na tien jaar terug naar Amsterdam met jubileumeditie
Op 7 en 8 oktober 2026 vindt in Amsterdam de tiende editie van World Summit AI plaats, met meer dan 10.000 verwachte bezoekers uit ruim 130 landen en meer dan 300 sprekers. Het evenement is het ankerpunt van World AI Week, die van 5 tot en met 9 oktober meer dan 100 nevenevenementen omvat.
Chinese AI-modellen winnen marktaandeel door lagere kosten
Chinese AI-modellen bereiken regelmatig 30 procent marktaandeel op OpenRouter omdat zij aanzienlijk goedkoper zijn dan westerse alternatieven.
Ramp lanceert Router, eigen AI-model routerservice
Ramp stelt een API-service beschikbaar waarmee gebruikers en bedrijven verschillende large language models kunnen selecteren en wisselen.
Description from the channel
Sydney Runkle, product manager for LangChain's open source team, walks through how the team built a model router into Open SWE, LangChain's open source coding agent. She covers the four steps: mapping the task mix from LangSmith traces, picking models along the Pareto frontier, building the router in the harness, and tracking outcomes. In an A/B test against always using the performance model, the router cut median cost per thread by 64% with no measurable change in quality. Chapters: 0:00 Frontier intelligence is expensive at scale 1:24 What a model router actually does 1:56 The result: 64% lower median cost per thread 2:10 Four steps to build a model router 2:40 Step 1: Map your agent's tasks with LangSmith traces 4:53 Step 2: Pick models along the Pareto frontier 5:59 Step 3: Build the router in the harness 6:49 Swapping the classifier to Jev 7:23 Why open models fit the fast tier 7:46 Step 4: Track outcomes with evals or an A/B test 8:49 Results: 64% lower median cost, no drop in merged PRs 10:14 Why we stopped the fast tier test after a day 10:45 What's next: benchmarks, subagents, mid thread rerouting 12:30 How to add a router to your own agent Resources: → Companion blog, How to Build a Model Router in the Harness: https://www.langchain.com/blog/how-to-build-a-model-router-in-the-harness → Building a Harness with Jev: https://www.langchain.com/blog/building-a-harness-with-jev → Open SWE: https://github.com/langchain-ai/open-swe → LangSmith: https://www.langchain.com/langsmith
