model-routing

model-routing is a skill for Claude Code, Codex from yeaight7/agent-powerups. It costs 36 tokens per session (810 once invoked), scanned A, original, Apache-2.0.

Guidance for choosing an AI model tier based on task difficulty, risk, and ambiguity. It divides work into fast, standard, and deep levels without requiring fixed model names.

In plain words
What is it for?
Use it when selecting a model, escalating after a failed attempt, or planning a workflow that assigns different tasks to different model levels.
Why use it?
It helps avoid using an unnecessarily expensive model for simple work or an underpowered one for complex tasks.

Skill for Claude CodeCodex

Part of the agentic-systems plugin — 5 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/yeaight7/agent-powerups/model-routing
Any agent
npx skills add yeaight7/agent-powerups --skill model-routing
Clone the repo
git clone --depth 1 https://github.com/yeaight7/agent-powerups

Made for: Claude Code, Codex.

Or install agentic-systems, the plugin that ships this one along with the rest of its 5 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for model-routing

README.md
[![agentmods](https://agentmods.dev/badge/skills/yeaight7/agent-powerups/model-routing.svg)](https://agentmods.dev/skills/yeaight7/agent-powerups/model-routing)
Your own site
<a href="https://agentmods.dev/skills/yeaight7/agent-powerups/model-routing"><img src="https://agentmods.dev/badge/skills/yeaight7/agent-powerups/model-routing.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 810 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00036 $0.00810
Opus 5 $0.00018 $0.00405
Sonnet 5 $0.00007 $0.00162
Haiku 4.5 $0.00004 $0.00081

Measured 5d ago against content hash a7870fb7421e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

model-routing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/agentic-systems/skills/model-routing/SKILL.md · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Model Routing

Choose the right model tier before starting a task. Overusing a capable model wastes cost and context. Underusing it produces lower quality on complex work.

When to Use

  • Selecting a model for a new task or subagent
  • Deciding whether to escalate after a failed attempt
  • Designing a multi-agent pipeline with mixed task complexity

Tier Definitions (vendor-neutral)

Tier Typical examples Task profile
Fast Haiku, GPT-4o-mini, Gemini Flash Mechanical, deterministic, narrow
Standard Sonnet, GPT-4o, Gemini Pro General implementation and review
Deep Opus, o1, Gemini Ultra Architecture, security, root-cause, release

Use your provider's current recommended model for each tier. Do not hard-code model IDs in documentation or scripts; reference tiers instead.

Routing Table

Fast tier

Use when ALL of:

  • Single file or single operation
  • Output is deterministic (rename, format, classify, generate boilerplate)
  • No ambiguity in the task description
  • Low blast radius on failure (easy to retry or revert)

Examples: rename a variable, convert a data format, generate a changelog entry, classify issue severity.

Standard tier

Use when ANY of:

  • Multi-file change with known scope
  • Standard implementation task (add a feature, fix a bug, write tests)
  • Code review of a bounded change
  • Refactor with clear before/after contract

This is the default. When unsure, use Standard.

Deep tier

Use when ANY of:

  • Architecture or system design decision
  • Security audit or threat model
  • Root-cause analysis with no clear reproduction
  • Pre-release verification across a large surface
  • Task requires reasoning across many files simultaneously
  • Two Standard attempts failed with no clear progress

Do not use Deep speculatively. It is expensive and slower.

Escalation Rule

Try Standard first. Escalate to Deep only after Standard fails with a clear reasoning gap — not just a wrong answer. A wrong answer from Standard often means the task needs more context, not a more capable model.

Read the full file on GitHub · 96 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 96 lines · 36 tokens per session scan A a7870fb7421e

Subscribe to this mod's changes

model-routing is a skill published in the GitHub repository yeaight7/agent-powerups (6 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 36 tokens to every session and 810 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.