{"repo":"ThomasLangbroek/frugal","free":true,"listed":false,"github":"https://github.com/ThomasLangbroek/frugal","clone":"git clone https://github.com/ThomasLangbroek/frugal.git","description":"Cost-optimised agent router for Claude Code: sends every sub-task to the cheapest model that can do it, and escalates only on verified failure.","language":"Python","stars":37,"topics":["ai-agents","anthropic","automation","claude","claude-code","cost-optimization","developer-tools","llm","plugin"],"license":"MIT","category":"ai-agents","readme_excerpt":"frugal A cost-optimised agent router for Claude Code. Frugal teaches the main loop to send every sub-task to the cheapest execution strategy that can succeed, and to escalate only on verified failure: The expensive reasoning model plans and judges; commodity work (locating files, extracting data, mechanical edits) runs on cheap tiers. No framework, no runtime, no API keys: frugal is a plugin made of a routing skill, five agent definitions, and two small hooks. The harness does the rest. Install How it works The main model already reads every request, so it acts as the router at zero marginal cost. The routing skill gives it one decision table: Task Agent Model --- --- --- locate, grep, map structure, find usages scout Haiku extract, classify, summarise one source extractor Haiku mechanical edits from a complete spec mechanic Sonnet implement one scoped task from an approved plan builder Sonnet design, debugging, ambiguity, risk main loop whatever you run beyond the main loop's tier, or isolated deep reviews sage Fable Plus a tool-first rule: if grep, jq, git, terraform or any deterministic command solves the task, no model is called at all. Escalation (verification first) Workers do not self-grade their way up the ladder. Every worker ends with a fixed footer: The router then applies four rules: 1. If a deterministic check exists (tests, compiler, schema validation, terraform validate ), run it. Pass = done. Fail = escalate one tier, maximum one retry, then the main loop take","default_branch":null,"files":null,"tree":[],"storefront":"/r/ThomasLangbroek","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ThomasLangbroek/frugal/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}