model-routing

model-routing is a skill for Claude Code, Codex from humanerd-drew/opencode-drewgent. It costs 62 tokens per session (1,257 once invoked), scanned A, original, MIT.

A strategy for choosing different AI models for different coding-agent jobs. It assigns faster models to routine work and stronger models to complex planning, review, or security analysis.

In plain words
What is it for?
Routing planning, implementation, testing, reviewing, and security-review tasks among model tiers under subscription-based usage.
Why use it?
Using one model for every task can waste time on simple work or provide too little reasoning for difficult work. Role-based routing matches model capability to task complexity.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions OpenCode.

Good fit Routing planning, implementation, testing, reviewing, and security-review tasks among model tiers under subscription-based usage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/humanerd-drew/opencode-drewgent/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 humanerd-drew/opencode-drewgent --skill model-routing
Clone the repo
git clone --depth 1 https://github.com/humanerd-drew/opencode-drewgent

Made for: Claude Code, Codex.

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/humanerd-drew/opencode-drewgent/model-routing.svg)](https://agentmods.dev/skills/humanerd-drew/opencode-drewgent/model-routing)
Your own site
<a href="https://agentmods.dev/skills/humanerd-drew/opencode-drewgent/model-routing"><img src="https://agentmods.dev/badge/skills/humanerd-drew/opencode-drewgent/model-routing.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,257 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.00062 $0.01257
Opus 5 $0.00031 $0.00629
Sonnet 5 $0.00012 $0.00251
Haiku 4.5 $0.00006 $0.00126

Measured 3d ago against content hash eb1ee0f21552, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 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.

skills/software-development/model-routing/SKILL.md · 95 lines

How it starts

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

Model Routing — Subscription-Era Cost-Aware Strategy

Core Principle

OpenCode Go = fixed cost ($10/month). Every call through OpenCode Go has zero marginal cost. The optimization problem shifts from "minimize per-token spend" to "match model capability to task complexity without wasting user time."

Direct MiniMax API = per-call credits (Token Plan). Use only when OpenCode Go's proxy doesn't deliver equivalent quality for a specific capability.

The 3-Tier Model Pyramid

Tier Model Profiles Latency When to Use
Flash deepseek-v4-flash explorer, implementer, tester, archiver Fastest Read-only analysis, simple implementation, tests, docs. The default workhorse.
Pro deepseek-v4-pro reviewer Moderate General code review. Stronger reasoning needed.
Max qwen3.7-max planner, reviewer-critical, security-reviewer Slowest Complex planning, critical review, security audit. Use sparingly.

Routing Configuration

Config.yaml (active 2026-06-13)

model:
  default: "opencode-go/deepseek-v4-flash"
  provider: "opencode-go"

delegation:
  provider: "opencode-go"
  model: "deepseek-v4-pro"       # subagent gets stronger model for quality

auxiliary:
  vision:
    provider: "opencode-go"
    model: "mimo-v2.5-pro"       # only multimodal option on OpenCode Go
  web_extract:
    provider: "opencode-go"
    model: "deepseek-v4-flash"
  session_search:
    provider: "opencode-go"
    model: "deepseek-v4-flash"

Agent Profiles (~/.{{AGENT_NAME_LOWER}}/agents/*.md)

8 pre-defined roles, each with model/provider/toolsets/instructions. Loaded via task(subagent_type="reviewer", description="...", prompt="..."). The subagent_type parameter is built into the task tool schema — every agent sees it.

Pipeline (Tier-Adaptive)

Tier 1 (simple):   Implementer(flash) → Archiver(flash)
Tier 2 (moderate): Explorer(flash) → Implementer(flash) ↔ Tester(flash) [≤2 loops] → Archiver(flash)
Tier 3 (complex):  Planner(max) → Explorer(flash) → Implementer(flash) ↔ Tester(flash) [≤3 loops]
                    → Reviewer(pro) → [security? → Security-reviewer(max)]
                    → [critical? → Reviewer-critical(max)] → Archiver(flash)

Read the full file on GitHub · 95 lines

Files

What ships with it

2 files 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. 3d ago First seen · 95 lines · 62 tokens per session scan A eb1ee0f21552

Subscribe to this mod's changes

model-routing is a skill published in the GitHub repository humanerd-drew/opencode-drewgent (2 stars, last pushed 1mo ago), licensed MIT. It adds 62 tokens to every session and 1,257 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

multi-model-router

A model-selection tool that scores task complexity and chooses an AI model while balancing cost and answer quality.

chainlesschain/chainlesschain · 25 tokens

multi-llm-routing

Multi-LLM routing authority — provider selection, cost-aware tiering, fallback chains, latency budgets, health checks, A/B model testing, and unified client abstraction across Anthropic/OpenAI/Mistral.

LuuOW/meridian-mcp · 47 tokens

token-economics

Model token usage as an energy budget — estimate workload cost, compare throughput per watt / per dollar, and choose routes, models, and architectures with the best signal-per-token ratio.

LuuOW/meridian-mcp · 40 tokens

Workforce Optimization

Analyze workforce costs vs performance and recommend model/budget optimizations.

Xiaowen-Jiang/agent-enterprise · 16 tokens

sticky

Use when the user wants to set auto-routing mode: on (every task-shaped message routes), auto (intent-verb messages route — default), or off (no auto-routing). Intent-detection runs by default; use this skill to expand to full sticky or disable entirely. Trigger with /hyperflow:sticky, "make hyperflow sticky", "stop…

jeremylongshore/tons-of-skills-marketplace · 97 tokens

subscription-manager

Create and manage scheduled subscription tasks. Use when the user wants to set up recurring reminders, periodic reports, scheduled checks, or any automated tasks that run on a schedule. Supports cron expressions, fixed intervals, and one-time executions.

wecode-ai/Wegent · 49 tokens