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 β// 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.
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β¦