VS Code coding agent with tiered model routing passes the same tasks as full Claude Sonnet at 1/15th the cost
Jumpy_Invite_7473 · reddit · 2026-11-29
The author of Puffin Coder, a VS Code agent that routes easy steps to cheap models and only escalates to a strong model when needed, ran a small benchmark: 4 realistic tasks on a Node todo app (bug fix, input validation, a function with tests, dark mode toggle), each run twice — once with Puffin's routing (DeepSeek Flash → Qwen Coder → Claude Sonnet) and once with Claude Sonnet on every step — graded by hidden tests, with costs from actual OpenRouter billing including retries.
Result: both passed every test; Puffin cost $0.031 total vs $0.469 for Sonnet, roughly 15x cheaper.
Routing lessons:
- Difficulty-based routing isn't enough; a cheap model making a mess costs more than calling the strong model first
- Escalate only after 3 real failures (failed check, syntax error, crashed command), ignoring slips the model self-fixes
- When the strong model takes over, give it a short summary, not the cheap model's messy history
- A step limit stops cheap models from wandering forever
Caveats: one run per task and a small sample; a 5th task (pagination) looped on the cheap model and cost more than Sonnet, motivating the step limit.
More from coding & agent
- CHGIS MCP Server lets agents query Chinese historical geography from 222 BCE to 1911 CE — modelcontextprotocol · 2026-11-29
- Compeller MCP connector creates and tracks AI music videos and audio-reactive visuals — modelcontextprotocol · 2026-11-29
- A month with iPhone Duo: 25-30% of my Rork coding work shipped on it — rudrank · 2026-11-29
- Another 1.0 launches: mirror your Android phone on Mac for AI agents — emeka_boris · 2026-11-29
- Agentic GraphRAG: an open source framework unifying enterprise knowledge and agent memory in one knowledge graph — vm324234 · 2026-11-29
- Dev ships throwaway Postgres for agents: pg19 via pglite on Cloudflare DO over raw TCP — ritakozlov · 2026-11-29