Automatically optimize AI agent credit usage by routing tasks to the most cost-efficient execution path. Use when you want to reduce AI API costs by 30-75% without quality loss, classify task complexity before execution, route simple tasks to free or low-cost models, split complex tasks into optimized sub-tasks, or detect vague prompts before wasting credits.
Automatically optimize AI agent credit/token usage by routing tasks to the most cost-efficient execution path — with zero quality loss.
Audited across 53 real-world scenarios. 30-75% cost savings. 0% quality degradation.
Analyze the incoming task and classify it into one of these categories:
| Category | Examples | Typical Savings | |----------|----------|-----------------| | Simple Q&A | Definitions, facts, conversions | 90-100% (use free tier) | | Code Generation | Scripts, functions, refactoring | 40-60% | | Research | Multi-source analysis, synthesis | 20-40% | | Creative Writing | Articles, stories, marketing copy | 30-50% | | Data Analysis | CSV processing, visualization | 40-70% | | Complex Reasoning | Multi-step logic, architecture | 10-20% |
Before executing, evaluate the prompt:
Clarity Score (1-10): Is the request specific enough?
Scope Detection: Can this be split into smaller, cheaper sub-tasks?
Data Requirement Check: Does this need real-time data?
Route to the optimal execution path:
IF task is simple Q&A or formatting:
→ Use FREE tier / Chat mode (no credits)
IF task is medium complexity (code, writing, basic analysis):
→ Use STANDARD tier
IF task requires deep reasoning, multi-step logic, or creative excellence:
→ Use PREMIUM/MAX tier
IF task is mixed complexity:
→ SPLIT into sub-tasks and route each independently
During execution, apply these optimizations:
| Metric | Result | |--------|--------| | Scenarios tested | 53 | | Average savings | 30-75% | | Quality loss | 0% | | Quality improvement cases | 2 | | False routing rate | < 3% |
Copy a source-pinned command for your client. You run it yourself.
Destination: .claude/skills/credit-optimizer-v5 · pinned to the source commit
git clone https://github.com/rafsilva85/credit-optimizer-v5.git
cd credit-optimizer-v5
git checkout 37eb57a8fb2506e8e1c1c5458748bac439c2f521
mkdir -p ".claude/skills/credit-optimizer-v5"
cp -r . ".claude/skills/credit-optimizer-v5"Review the source before running. This copies files into your project; it is not a one-click install and does not verify runtime safety.
Scanner static-checks@0.1.0 · commit 37eb57a8fb25. Static checks cannot prove runtime safety – review the source and the exact diff before installing. How checks work.
No static rules matched. This is not a safety guarantee.