# agent-dispatch A Claude Code skill for selecting the right model (Opus/Sonnet/Haiku) when launching subagents. ## What it does Before launching ANY Agent tool call, this skill evaluates the task complexity and selects the most cost-effective model: - **Opus** — Architecture decisions, domain expertise, code audits, trade-off analysis - **Sonnet** — Pattern-following code, known bug fixes, testing, UI work, file operations - **Haiku** — Quick searches, counting, simple data extraction, status checks ## Why not just use Opus for everything? Sonnet handles **70% of subagent tasks equally well** at lower cost and higher speed. This skill prevents the common pattern of defaulting to the most expensive model "just to be safe." ## How it complements Superpowers The [superpowers](https://github.com/obra/superpowers) plugin includes a generic model selection guide ("cheap/standard/most capable"). This skill extends it with: - **Concrete Opus/Sonnet/Haiku mapping** for Claude Code's Agent tool - **Decision matrix** with specific task categories - **Real-world examples** from production development - **Split-task pattern** — e.g., Opus for research, Sonnet for implementation ## Installation ### As a Claude Code skill (recommended) ```bash mkdir -p .claude/skills/agent-dispatch cp SKILL.md .claude/skills/agent-dispatch/ ``` ### In CLAUDE.md Alternatively, paste the content of `SKILL.md` into your project's `CLAUDE.md`. ## Usage The skill is **not user-invocable** — it activates automatically when the agent-dispatch pattern is referenced. It guides Claude Code to select the right `model:` parameter before every `Agent` tool call. ## License MIT