Thriving Thriving JavaScript JS HTML HT
↑ 62 ?
sprag rootstudioyaml/sprag

Model-delegation router for Claude Code and Codex: lookups, checks and test runs go to cheaper models; savings show in the statusline.

https://sprag.io β†—
HEALTH ? 70 / Stable
// solo builder// hidden gem// release machine anthropicclaude-codeclicost-optimizationdelegationdeveloper-toolsllm-routermodel-routingprompt-cachingsubagent ?

// readme

A model-delegation router for Claude Code and Codex: lookups, checks and test runs go to cheaper models, and the savings show up in your statusline.

English Β· ν•œκ΅­μ–΄

sprag.io Β· Benchmark

Sprag Pro Β· for teams: your whole team’s AI spend and savings, on one screen.

Same 12 requests, two terminals: $6.68 β†’ $1.83 (βˆ’72.6%) with Sprag.


Sprag routes each piece of work to the cheapest model that has never got it wrong. Claude Code and Codex cannot switch models per prompt, so Sprag does it the one way that works: rules in the main session hand lookups, status checks, build and test runs and batch edits to sub-agents pinned to a cheaper model. The rules come from your own session logs, you approve each one, and every delegated run writes its price difference to a ledger. npm i -g sprag-cli sets it all up; nothing to configure per project.

Two more things ride along. Documents reach the context as compact Markdown (a 540k-token deck becomes…