| name | aim-model-dispatch |
| description | Select the appropriate LLM model for each agent based on task complexity and role |
| allowed-tools | Read |
Model Dispatch -- Model Selection and Provider Routing
Purpose: Select the appropriate LLM model and route to the correct provider workflow. Called by /aim-agent-dispatch and /aim-agent-lifecycle.
Model Selection
By Complexity
| Complexity | Model |
|---|
| Straightforward / Moderate | Sonnet |
| Significant / Complex / Architectural | Opus |
Role-Based Defaults
| Agent Role | Default | Override When |
|---|
| DEV (implementation) | Sonnet | Opus if architectural changes or complex refactoring |
| Code review | Sonnet | Opus if reviewing architectural decisions |
| Analyst | Sonnet | Opus if deep architectural analysis |
| PM | Sonnet | Opus if complex domain modeling |
| Architect | Opus | Already at highest tier |
| SM, UX Designer | Sonnet | Standard for all work |
| Generic agent | Sonnet | Opus if task requires deep reasoning |
Override Rules
- User override: User preference always wins.
- Failed fix escalation: After loop count > 1, consider upgrading to Opus.
- Haiku: Only for simple, high-volume parallel tasks (file scanning, grep-and-report). Never for implementation, review, or planning.
- Cost awareness: Use Opus when reasoning depth justifies the cost, not as default.
- Non-Claude providers: Reasoning tier (Opus/Sonnet/Haiku) maps to equivalent model on the selected provider.
Provider Routing
Path 1: Claude Native
MANDATORY for opus, sonnet, haiku -- use the Claude Code native parallel system.
→ workflows/claude-native/workflow.md
Path 2: Non-Claude Providers
Framework
All sub-workflows, references, scripts, wrappers, and evals are in:
{skills_path}/aim-model-dispatch/