Testing a local model as coding agent router: 0 of 48 decisions confident enough to switch

projectEscape · reddit · 2026-10-15

The author tried using a small local model (Llama-class open-source Laya) as a per-turn router for coding agents: cheap model for easy turns, expensive for hard ones. A local proxy sits between agent and provider; each new user turn Laya picks fast/balanced/strong/hold, doing nothing below 0.8 confidence.

Results were poor: across five prompt variants, agreement with hand labels peaked at 23/48, and zero decisions were confident enough to trigger a switch (best answerconfidence was 0.64). The router leaned to the middle tier (10 of 14 hard prompts got "balanced"); renaming options flipped 13/48 decisions; adding "hold if unsure" made it hold 44/48.

A telling side note: on 10 small gradable questions with thinking off, DeepSeek Flash scored 10/10 vs Pro's 8/10 and was faster — so "harder task → bigger model" is an assumption a router must earn. Next step: keep the router in shadow mode and validate against real outcomes (tests passing, retries, tokens) vs always-cheap and always-strong baselines.

Original post →

More from coding & agent

coding & agent channel →