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.
npx agentmods add commands/sifxprime/kodelyth-ecc/route-modelgit clone --depth 1 https://github.com/sifxprime/kodelyth-eccWrote 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.
[](https://agentmods.dev/commands/sifxprime/kodelyth-ecc/route-model)<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>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.
| Model | Per session | Once 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 |
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.
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-budgetsafety 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.
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.
- 2d ago First seen · 49 lines · 29 tokens per session scan A 36508f714ba6
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.
Other commands, from other repositories
hatch3r-handoff
Prepare, resume, list, complete, and prune cross-session handoff documents.
notebook-status
Check the progress of a /agy:notebook sweep (for long document sets run with --background). Reports % complete, done/pending/failed counts, elapsed time and a rough ETA, and which documents are still pending — so you can resume. Read-only, no agy.
session-info
Copy project path, session title, and session ID to clipboard (no LLM round-trip).
mindforge:build-opt
Optimize build system performance. Usage: /mindforge:build-opt [project] [--tool bazel|nx|turbo] [--target time-minutes].
cluster-instincts
Group related instincts by tag overlap and batch-promote qualifying clusters to skills. Usage - /mindforge:cluster-instincts [--dry-run] [--min-cluster 3] [--min-confidence 0.7].
model-route
Recommend the best model tier for the current task by complexity and budget.