agentsclimarketplace

Model cost router

Skill Arnie016/codex-prompt-templates/skills/model-cost-router

Color-coded Codex prompt templates and Agent Skills for plugin-orchestrated AI coding workflows, MCP safety, repo intelligence, and automation.

Install
npx -y skills add Arnie016/codex-prompt-templates --skill model-cost-router

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Decide when to use cheaper, local, or frontier models and how to measure cost tradeoffs. Use for token limits, model routing, cost-conscious Codex work, DeepSeek/Claude/OpenAI comparisons, prompt caching, or agent workflow economics. Skip when cost routing is enforced by a production gateway, budget policy, fallback policy, or live alerting; use `$auto-skill-build-agent-reliability-loop`. Avoid unverifiable savings claims.

SKILL.md

2.0 KB, as published. Nobody here has run it

Model Cost Router

Optimize for total successful-task cost, not the cheapest single call.

Routing Heuristic

WorkModel tier
Search, inventory, mechanical editscheap/fast model or local tools
Design decisions, risky code, securitystronger model
Final review of broad changesstronger model
Long-running monitoringno model; use process/log checks
Repeated repo factsmarkdown memory, not model tokens

Measurement Loop

  1. Define the task and quality bar.
  2. Run cheap path once.
  3. Run strong review on the output.
  4. Track elapsed time, fixes needed, and estimated tokens.
  5. Keep routing only if quality and reliability are acceptable.

Guardrails

  • Treat "17x cheaper" or similar claims as marketing until measured locally.
  • Do not route secrets or proprietary code through unknown hosted tools.
  • Prefer caching briefs and memory over re-sending context.
  • Escalate model quality when failure would be more expensive than tokens.
  • For production agents, bind model routing to gateway budgets, cache rules, trace metadata, and eval score gates; route to $auto-skill-build-agent-reliability-loop when cost decisions affect live users or tools.

Pair with $agent-observability to keep a local cost ledger.

Validation

  • Cost claims are measured locally or marked unverified.
  • The cheaper path is kept only if quality and reliability meet the task bar.
  • Production budget/fallback policy is routed to $auto-skill-build-agent-reliability-loop.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.