model-routing

model-routing is a skill for Claude Code from megamen32/LastHumanCommit. It costs 17 tokens per session (555 once invoked), scanned A, original, MIT.

A method for assigning AI models to planning, implementation, and verification work based on the task's difficulty, required abilities, evidence, limits, and total cost.

In plain words
What is it for?
Use it to choose models for leads, workers, and independent checks, and to revise assignments after failures, changed task boundaries, or new performance evidence.
Why use it?
It avoids using the same model for every job and helps match demanding decisions or tool needs with a suitable model while keeping routine work economical.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the last-human-commit plugin — 23 skills, 1 command shipped together

Good fit Use it to choose models for leads, workers, and independent checks, and to revise assignments after failures, changed task boundaries, or new performance evidence.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/megamen32/lasthumancommit/model-routing
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.

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

Made for: Claude Code.

Or install last-human-commit, the plugin that ships this one along with the rest of its 23 skills, 1 command.

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/megamen32/lasthumancommit/model-routing/github.svg)](https://agentmods.dev/skills/megamen32/lasthumancommit/model-routing)
Your own site
<a href="https://agentmods.dev/skills/megamen32/lasthumancommit/model-routing"><img src="https://agentmods.dev/badge/skills/megamen32/lasthumancommit/model-routing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for model-routing

Your own site · 80×15
<a href="https://agentmods.dev/skills/megamen32/lasthumancommit/model-routing"><img src="https://agentmods.dev/badge/skills/megamen32/lasthumancommit/model-routing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 555 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00017 $0.00555
Opus 5.5 $0.00007 $0.00222
Sonnet 5.5 $0.00003 $0.00111
Haiku 4.5 $0.00002 $0.00056

Measured 22d ago against content hash 8afff88e7a08, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 22d 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/last-human-commit/common/skills/model-routing/SKILL.md · 35 lines

How it starts

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

Model routing

Use LhcPlan list_models for the configured assignments and the live catalog. The classes are fast, middle and frontier; resolve the chosen class to an exact available model ID. model-availability covers quota and account limits.

Work Starting class
Reading, search, mechanical edits and a well-specified small change fast
Bounded implementation with a clear check middle
Architecture, difficult diagnosis or a consequential unresolved choice frontier

Choose by the assignment's capabilities, likely rework, latency and cost. A failed cheap attempt may justify a stronger model, better context or a smaller task. Missing prices stay unknown. Keep planned model and cost estimates separate from observed execution and billed usage.

Native execution

Prefer the active harness's supported subagents. When Herder is the selected route, use its existing new_or_resume, or create_session followed by its message transport. Read the live schema and pass the actual model, canonical cwd and stable assignment name. Preserve the same inputId for a delivery retry.

Use the real native source session for sourceSessionId and sourceHarness when required. A fresh independent assignment gets a distinct name; an ongoing Worker can be resumed with its useful context. Keep the user's selected parent model and account unchanged when choosing a child's model.

The assignment includes the goal, role, relevant facts, owned paths, dependencies, output and check. Use fresh context for a genuinely independent review or first-contact test. Ordinary Workers benefit from the previous decisions and attempts. A Worker delegates further only when the Lead has assigned a useful separate scope.

After an uncertain dispatch, inspect that session or receipt before sending another job. Record requested and observed model identities separately. Native quota, permission and stop decisions apply to the operation.

Plan fields

Each leaf's tier is fast|middle|frontier and complexity is S|M|L. S is routine, M is a bounded implementation, L is a difficult or consequential choice. A missing capability can justify a different eligible tier.

Read the full file on GitHub · 35 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 22d ago Changed · -161 lines · -12 tokens per session 8afff88e7a08
  2. 23d ago Changed · +3 lines 461b446ac02a
  3. 1mo ago Changed · +9 lines c67a23b6a0f0
  4. 1mo ago Changed · +21 lines 77b3e2fa27d8
  5. 1mo ago Changed · +19 lines eb05a9247050
  6. 1mo ago Changed · +4 lines 76627ea888b6
  7. 1mo ago Changed · +7 lines 3f5efb32259a
  8. 1mo ago Changed 057b3962dde3
  9. 1mo ago Changed · +53 lines 31058d67ebd7
  10. 2mo ago First seen · 80 lines · 29 tokens per session scan A 2f6ebce5fb75

Subscribe to this mod's changes

model-routing is a skill published in the GitHub repository megamen32/LastHumanCommit (2 stars, last pushed 11d ago), licensed MIT. It adds 17 tokens to every session and 555 once invoked, about $0.0001 per session on Opus 5.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-09-05.

Related

model-routing compared with skills from other repositories

model-routing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
model-routingmegamen32/LastHumanCommitSkill211d agoMITA17Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill332k6d agoMITA21Claude Code