Frugal routes Claude Code tasks to the cheapest model that can handle them
StolenDrinks · reddit · 2026-07-22
Frugal is a Claude Code plugin that routes sub-tasks to the cheapest model or even to shell tools when possible. It escalates only after real checks fail, logs local cost reports, and keeps all telemetry on-device, aiming to cut agent spend without reducing reliability.
How it works
- Uses shell tools like grep, jq, or git before calling a model when that is sufficient
- Assigns locate/extract work to Haiku, mechanical edits to Sonnet, and reserves the main model for design, debugging, and review
- Escalates based on failed tests, compiler errors, or schema checks rather than self-reported uncertainty
- Includes guardrails that count search calls and can hard-block expensive tiers, while failing open
- Produces local reports on tier mix, escalation rate, and estimated savings
Related event: Frugal Plugin Enables Cost-Aware Routing for Claude Code(2 posts)→
More from coding & agent
- First-ever Three.js Conference lands in Paris, with a panel on AI-shortened design workflows — OdinLovis · 2026-09-11
- Data engineering, not agent frameworks, is the real bottleneck for enterprise AI agents — dhruv2038 · 2026-09-11
- GPT-6 Astra beats Factorio with enemies in 44 in-game hours at ~$4,500 API cost — liminal_bardo · 2026-09-11
- Investment Analyst Asks How to Build a Claude-Based Diligence Agent Stack — Careless_Tie2286 · 2026-09-11
- Treating agents like 50 First Dates: a 3-layer context system so every conversation doesn't start from zero — evielync · 2026-09-11
- Running the Firefox MCP on Android via Termux, ngrok, and mcp-proxy — Nervous-Strain7544 · 2026-09-11