Dev.to
7/18/2026

Klaatcode: Open-source coding agent with per-request model routing and 82% cost reduction
Original: I Tested a Coding Agent That Routes Each Task to the Cheapest Model
Short summary
Klaatcode is an open-source terminal coding agent that routes each request to the cheapest capable model tier, claiming 82% cost reduction vs single-model agents. A hosted router classifies requests into five tiers (nano to heavy) and escalates/de-escalates automatically. It also ships a code knowledge graph for token-efficient symbol queries and a reproducible benchmark against Claude Code, opencode, and Grok.
- •Per-request model routing across 5 tiers (nano to heavy) cuts costs by ~82%
- •Open-source TypeScript CLI client with hosted Klaatu routing model
- •Code knowledge graph indexes call graphs for 5-15x fewer tokens per task
- •Includes /cost, /why, and plan mode for transparency and trust
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



