affaan-m-everything-claude-code: Command for Claude Code

.opencode/commands/model-route.md

model-route is a command for Claude Code, OpenCode from yapota2018/affaan-m-everything-claude-code. It costs 0 tokens per session (137 once invoked), scanned A, a copy of model-route, MIT.

A command that recommends a model tier for a coding task based on its complexity and available budget. It chooses among haiku, sonnet, and opus, with a fallback recommendation.

In plain words
What is it for?
Use it to request a model recommendation, confidence level, reasoning, and fallback for a described task.
Why use it?
It helps match simple mechanical work, normal implementation, or complex architecture and review to an appropriate model tier.

Command for Claude CodeOpenCode

Written for Claude Code and OpenCode: $ARGUMENTS substitution, but also installed under .opencode/.

This is yapota2018/affaan-m-everything-claude-code's own configuration. It tells Claude Code and OpenCode how to work on affaan-m-everything-claude-code itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything affaan-m-everything-claude-code configures →

Part of the everything-claude-code plugin — 29 skills, 29 commands shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to yapota2018/affaan-m-everything-claude-code. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/yapota2018/affaan-m-everything-claude-code/main/.opencode/commands/model-route.md
Clone the repo
git clone --depth 1 https://github.com/yapota2018/affaan-m-everything-claude-code

Made for: Claude Code, OpenCode.

Or install everything-claude-code, the plugin that ships this one along with the rest of its 29 skills, 29 commands.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/yapota2018/affaan-m-everything-claude-code/model-route/github.svg)](https://agentmods.dev/commands/yapota2018/affaan-m-everything-claude-code/model-route)
Your own site
<a href="https://agentmods.dev/commands/yapota2018/affaan-m-everything-claude-code/model-route"><img src="https://agentmods.dev/badge/commands/yapota2018/affaan-m-everything-claude-code/model-route/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-route

Your own site · 80×15
<a href="https://agentmods.dev/commands/yapota2018/affaan-m-everything-claude-code/model-route"><img src="https://agentmods.dev/badge/commands/yapota2018/affaan-m-everything-claude-code/model-route.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 137 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 100% copy Near-identical to another mod 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.00000 $0.00137
Opus 5 $0.00000 $0.00068
Sonnet 5 $0.00000 $0.00027
Haiku 4.5 $0.00000 $0.00014

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

Security

Grade A, and why

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

Origin

This is a copy

100% identical to model-route — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.opencode/commands/model-route.md · 27 lines

What it actually says

Model Route Command

Recommend the best model tier for the current task by complexity and budget.

Usage

/model-route [task-description] [--budget low|med|high]

Routing Heuristic

  • haiku: deterministic, low-risk mechanical changes
  • sonnet: default for implementation and refactors
  • opus: architecture, deep review, ambiguous requirements

Required Output

  • recommended model
  • confidence level
  • why this model fits
  • fallback model if first attempt fails

Arguments

$ARGUMENTS:

  • [task-description] optional free-text
  • --budget low|med|high optional
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. 9d ago First seen · 27 lines · 0 tokens per session scan A 9ad52439f152

Subscribe to this mod's changes

model-route is a command published in the GitHub repository yapota2018/affaan-m-everything-claude-code (4 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 137 tokens. A static security scan graded it A with 0 findings. It is 100% identical to model-route, differing in 0 lines, and is treated as a copy.