sprag
A router that delegates repetitive Claude Code and Codex tasks to cheaper models.
What does it do?
After installation, it analyzes existing local Claude Code and Codex session histories to find types of tasks that did not fail on cheaper models. Once the user approves each rule, the main session sends matching tasks to a subagent using the specified model and reviews the results. It records the price difference for each delegated run and shows session spending and savings in the status bar. It can also turn documents into concise Markdown for inclusion in the context.
Key features
- Analyze local session history to suggest model delegation rules by task
- Delegate lookups, status checks, builds, and tests to subagents according to approved rules
- Record price differences for delegated runs and show spending and savings in the status bar
- Convert documents to concise Markdown for the context
- Session history analysis requires no additional model calls or API keys