route-model

route-model is a command for Claude Code from sifxprime/kodelyth-ecc. It costs 29 tokens per session (402 once invoked), scanned A, original, MIT.

A command that recommends whether the current task should use a lower-, middle-, or higher-cost AI model tier.

In plain words
What is it for?
Use it to get a model recommendation for tasks such as renaming code, reviewing an OAuth flow, or checking a payments module for attacks.
Why use it?
It helps match model cost and capability to the difficulty of the task while considering the project's routing rules and token budget.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

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 commands/sifxprime/kodelyth-ecc/route-model
Clone the repo
git clone --depth 1 https://github.com/sifxprime/kodelyth-ecc

Made for: Claude Code.

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 route-model

README.md
[![agentmods](https://agentmods.dev/badge/commands/sifxprime/kodelyth-ecc/route-model.svg)](https://agentmods.dev/commands/sifxprime/kodelyth-ecc/route-model)
Your own site
<a href="https://agentmods.dev/commands/sifxprime/kodelyth-ecc/route-model"><img src="https://agentmods.dev/badge/commands/sifxprime/kodelyth-ecc/route-model.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 402 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.1 $0.00029 $0.00402
Opus 5 $0.00015 $0.00201
Sonnet 5 $0.00006 $0.00080
Haiku 4.5 $0.00003 $0.00040

Measured 2d ago against content hash 36508f714ba6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

route-model 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 2d 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.

commands/route-model.md · 49 lines

What it actually says

/route-model

Get an immediate model-tier recommendation for the current task. Combines the cost-aware-model-routing rule, the project's .kodelythecc/router.json config, and the active session's token-budget pressure.

Usage

/route-model
/route-model rename getUserName to getUserDisplayName
/route-model audit the new oauth flow for vulnerabilities
/route-model devil-mode adversarial sweep on the payments module

If you don't pass a task, the AI infers it from the most recent user turn.

What you get back

A single, scannable block:

[model-router] task=<tier> · suggested=<model-id> · current=<active>
  why: <one-line reason>
  next: <how to switch>

If you're already on the right tier, the AI routes silently and confirms in one line.

Behind the scenes

  • Pure deterministic classifier (no LLM call) at scripts/router/classify.js.
  • Project config: .kodelythecc/router.json (override per team).
  • Env-var overrides: KODELYTH_ROUTER_{TRIVIAL,STANDARD,HARD,DEFAULT}.
  • Disable with KODELYTH_ROUTER=off.
  • Pairs with the token-budget safety hook for spend control.

Hard rules

  • Security / incident / adversarial agents never downgrade.
  • Production framing ("down", "leaking", "outage") → hard tier.
  • Multi-file refactors (3+) never go to trivial.
  • Respect explicit user model choices unless new signals conflict.

See: rules/common/cost-aware-model-routing.md, skills/cost-aware-model-routing/SKILL.md.

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. 2d ago First seen · 49 lines · 29 tokens per session scan A 36508f714ba6

Subscribe to this mod's changes

route-model is a command published in the GitHub repository sifxprime/kodelyth-ecc (11 stars, last pushed 3d ago), licensed MIT. It adds 29 tokens to every session and 402 once invoked, about $0.0001 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-09-03.