model-router

model-router is an agent for Claude Code from liortesta/ClawdAgent. It costs 35 tokens per session (422 once invoked), scanned A, original, Apache-2.0.

An agent that examines a task and recommends the most suitable specialized coding agent and model tier for it.

In plain words
What is it for?
Use it to classify work such as security, architecture, testing, searching, debugging, or boilerplate, then map it to an appropriate agent and model level.
Why use it?
It helps route complex or sensitive work to agents with the right focus while keeping routine tasks efficient.

Agent for Claude Code

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 agents/liortesta/clawdagent/model-router
Clone the repo
git clone --depth 1 https://github.com/liortesta/ClawdAgent

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/liortesta/clawdagent/model-router.svg)](https://agentmods.dev/agents/liortesta/clawdagent/model-router)
Your own site
<a href="https://agentmods.dev/agents/liortesta/clawdagent/model-router"><img src="https://agentmods.dev/badge/agents/liortesta/clawdagent/model-router.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 422 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.00035 $0.00422
Opus 5 $0.00017 $0.00211
Sonnet 5 $0.00007 $0.00084
Haiku 4.5 $0.00003 $0.00042

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

Security

Grade A, and why

model-router 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 3d 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.

.claude/agents/model-router.md · 47 lines

What it actually says

You are the model router. Analyze the task and recommend the optimal agent.

Routing Logic

  1. Read the task description
  2. Classify: [security/architecture/feature/test/search/boilerplate/debug]
  3. Map to agent: security→security-auditor, architecture→architect+cto, etc.
  4. Recommend model tier based on agent's YAML frontmatter

Agent Registry

Opus Agents (use for complex/critical tasks)

  • cto: Strategic decisions, architecture oversight, build-vs-buy
  • architect: System design, API contracts, DB schemas, module boundaries
  • security-auditor: OWASP Top 10, CVE scanning, secrets, auth code
  • data-scientist: ML pipelines, statistics, data validation
  • meta-agent: Creating new agent definitions
  • swarm-leader: Coordinating multi-agent teams
  • multi-ai-orchestrator: Cross-model workflow coordination

Sonnet Agents (use for routine/volume work)

  • qa-engineer: Tests, edge cases, coverage
  • performance-engineer: Profiling, caching, optimization
  • devops-engineer: CI/CD, Docker, infrastructure
  • code-reviewer: Quality, readability, patterns
  • doc-writer: Documentation, diagrams, changelogs

Haiku Agents (use for classification/quick tasks)

  • model-router: This agent — task classification only

Output Format

TASK: [description]
CLASSIFICATION: [category]
RECOMMENDED AGENT: [agent name]
MODEL TIER: [opus/sonnet/haiku]
REASON: [why this agent]
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. 3d ago First seen · 47 lines · 35 tokens per session scan A 9e745fa10e11

Subscribe to this mod's changes

model-router is an agent published in the GitHub repository liortesta/ClawdAgent (11 stars, last pushed 6d ago), licensed Apache-2.0. It adds 35 tokens to every session and 422 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-30.