agent-routing

Solid

Decide which model (Haiku/Sonnet/Opus) and effort level each subagent gets, when to cascade cheap-first behind a verifier, and how to run improvement loops safely (evaluator-as-selector, stop on regression). Covers the Managed Agents effort mechanics (per-agent effort levels, cost lever) and how to watch a subagent fan-out stream live so loop and escalation gates have something to observe. Use when spawning subagents via the Agent or Workflow tools, when fanning out more than a handful of agents, or when the user asks which model or effort a task should route to. Routing heuristics grounded in measured calibration data (references/calibration-2026-07-15.md), not vibes; the Managed Agents API specifics are operational, not calibrated.

AI & Automation 134 stars 7 forks Updated today MIT

Install

View on GitHub

Quality Score: 84/100

Stars 20%
71
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Agent Routing — model + effort selection for subagents Before spawning any subagent, answer one question: **is the task mechanically checkable, or does it require judgment?** Checkable → Haiku at `effort: 'low'` behind a verifier. Judgment → up-tier. The routing table refines this split; the rest of the skill governs cascades and loops. **Do not up-tier checkable work "to be safe."** Measured Haiku 4.5 failure on every checkable task family tested is ≈0, at `effort: 'low'`, with chain-of-thought suppressed (evidence: references/calibration-2026-07-15.md). The burden of proof is on routing *up*: reflexive up-tiering costs 3–5× for safety that the data says is imaginary. Spend effort, not tier, and only where reasoning depth demonstrably falls short. To turn a judgment-shaped task INTO a Haiku-executable one (explicit procedures, n-shot examples), use the sibling `down-skilling` skill. This skill decides the routing; that one engineers the prompt. ## Context handoff — routing picks the tier; the prompt carries the context Subagents inherit nothing: not the conversation, not loaded skills, not the existence of artifacts already on disk. Every index, scan output, artifact path, or tool-invocation recipe the orchestrator relies on must be serialized into the subagent's prompt (or written to a file the prompt points at). Otherwise the agent falls back to blind rediscovery — and the tier premium is spent on crawling, not judgment. A Sonnet with no handoff wastes more than a H...

Details

Author
oaustegard
Repository
oaustegard/claude-skills
Created
9 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

cost-lean-orchestration

Token-efficient model routing for complex engineering sessions. The main model (Opus / Fable, high reasoning) never bulk-reads or explores — it delegates all exploration, bulk file reading, codebase search, log scanning, dependency tracing, and documentation reading to Sonnet subagents that return compact structured findings, and it spends its own tokens only on synthesis, architecture, judgment, and final code. Use this skill in EVERY session that involves reading more than a couple of files, exploring or mapping a codebase, investigating a bug, auditing call sites, reviewing a large diff, digesting logs or docs, or any multi-step engineering task — even if the user never mentions cost, tokens, subagents, or delegation. This is a standing operating discipline, not an on-request feature.

0 Updated 1 weeks ago
itzTiru
AI & Automation Listed

subagent-driven-development

Explains how an AI orchestrator should delegate implementation, sequencing, and verification to subagents rather than doing the work directly, including how to route tasks to models by capability need. Use when implementing a work item, when deciding whether to spawn a subagent, when an orchestrating agent is about to write code or run commands itself, or when someone asks "should I use a subagent for this", "how do I split work across agents", or "which model should handle this step".

0 Updated 5 days ago
Takahito-Kinouchi
AI & Automation Listed

delegate

Token-saving subagent routing. Use when facing token-heavy, read-heavy, conclusion-only work (reading Lark/Feishu in full or writing to it, wide code searches, log/long-document analysis) to decide whether to offload the work to a cheaper-model subagent and which tier to use.

0 Updated 6 days ago
chinayin