# Aim Model Dispatch

> Select the appropriate LLM model for each agent based on task complexity and role

- Skill: `hidden-history/aim-model-dispatch` (Agent Skill, multi-file: 68 files)
- Install (CLI): `npx skillmds@latest add hidden-history/aim-model-dispatch`
- Raw SKILL.md: https://api.skillmd.com/api/skills/hidden-history/aim-model-dispatch/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: Hidden-History (https://skillmd.com/u/hidden-history)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/hidden-history/aim-model-dispatch

---


# 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

1. **User override**: User preference always wins.
2. **Failed fix escalation**: After loop count > 1, consider upgrading to Opus.
3. **Haiku**: Only for simple, high-volume parallel tasks (file scanning, grep-and-report). Never for implementation, review, or planning.
4. **Cost awareness**: Use Opus when reasoning depth justifies the cost, not as default.
5. **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`]({skills_path}/aim-model-dispatch/workflows/claude-native/workflow.md)

### Path 2: Non-Claude Providers

| Provider | Workflow |
|----------|----------|
| openrouter, ollama, gemini, deepseek, groq, cerebras, mistral, openai, vertex-ai, siliconflow | [`tmux-dispatch`]({skills_path}/aim-model-dispatch/workflows/tmux-dispatch/workflow.md) or [`bmad-dispatch`]({skills_path}/aim-model-dispatch/workflows/bmad-dispatch/workflow.md) |
| api (image/audio/video) | [`api-dispatch`]({skills_path}/aim-model-dispatch/workflows/api-dispatch/workflow.md) |

---

## Framework

All sub-workflows, references, scripts, wrappers, and evals are in:
`{skills_path}/aim-model-dispatch/`

