with one click
model-routing
// Intelligent model selection - routes tasks to Haiku (fast/cheap), Sonnet (balanced), or Opus (complex/strategic) based on task complexity analysis
// Intelligent model selection - routes tasks to Haiku (fast/cheap), Sonnet (balanced), or Opus (complex/strategic) based on task complexity analysis
Convert a single build session into MDX build-log entry, LinkedIn draft, demo brief, Mermaid diagram, and a reusable prompt. Use when logging a public build or running the content flywheel for the /agentic-builder-lab and /build pages on frankx.ai.
Generate high-retention content hooks using tri-modal engineering (Visual + Audio + Text) across 10 dimensions ā from research-backed wisdom to frontier science to comedic timing. State-of-art 2026 hook psychology for creators who respect their audience's intelligence. Use when creating video intros, social content, article hooks, or any attention capture.
Patterns for multi-agent coordination, task decomposition, handoffs, and workflow orchestration. Best practices for building and managing agent systems.
Claude Agentic Creator OS - Native Claude Code implementation
Helps execute Frank's daily workflow using the FRANKX-SUPERINTELLIGENT-AGENT-SYSTEM, Starlight Intelligence, and productivity methodologies for intentional creation
Advanced swarm orchestration patterns for research, development, testing, and complex distributed workflows
| name | model-routing |
| description | Intelligent model selection - routes tasks to Haiku (fast/cheap), Sonnet (balanced), or Opus (complex/strategic) based on task complexity analysis |
| triggers | ["model","routing","optimize","cost","haiku","sonnet","opus"] |
| priority | high |
| version | 1.0.0 |
| source | claude-flow |
You have access to intelligent model routing. Before executing any task, analyze complexity and route to the appropriate model tier.
TASK COMPLEXITY ANALYSIS
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
HAIKU (Fast, Cheap) - Use for:
āāā Simple file operations (read, list, navigate)
āāā Scaffolding and boilerplate generation
āāā Deterministic transformations (format, lint, compile)
āāā Status checks and health monitoring
āāā SEO metadata generation
āāā Deployment commands (after code is written)
āāā Documentation formatting
āāā Simple search and replace
ā
ā Token cost: ~$0.25/1M input, $1.25/1M output
ā Latency: Fastest
ā Use when: Task has clear, unambiguous steps
SONNET (Balanced) - Use for:
āāā Feature implementation (standard complexity)
āāā Bug fixes requiring analysis
āāā Content writing (articles, social posts)
āāā Code review and quality checks
āāā Test generation
āāā Refactoring with clear patterns
āāā API integration work
āāā Database schema design
ā
ā Token cost: ~$3/1M input, $15/1M output
ā Latency: Medium
ā Use when: Task requires reasoning but not deep strategy
OPUS (Strategic, Complex) - Use for:
āāā Architecture decisions (system design)
āāā Multi-agent coordination (council, swarm)
āāā Strategic planning (business, product)
āāā Complex debugging (multi-file, subtle bugs)
āāā Security audits and vulnerability analysis
āāā Enterprise AI system design
āāā Book writing (narrative, character development)
āāā Research synthesis (multiple sources)
āāā Ambiguous requirements interpretation
ā
ā Token cost: ~$15/1M input, $75/1M output
ā Latency: Slowest but most capable
ā Use when: Task requires deep reasoning, creativity, or strategy
When processing a request, apply these rules:
*.config.*, package.json, tsconfig.json/mcp-status, /inventory-status, /nextjs-deploy (execution phase)*.ts, *.tsx, *.py, *.md (content files)/article-creator, /create-music, /spec, /generate-social/starlight-architect, /council, /author-team, /researchBEFORE (No routing):
All tasks ā Opus ā $75/1M output tokens
AFTER (With routing):
Simple tasks (40%) ā Haiku ā $1.25/1M = $0.50
Medium tasks (45%) ā Sonnet ā $15/1M = $6.75
Complex tasks (15%) ā Opus ā $75/1M = $11.25
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
TOTAL: $18.50 vs $75 = 75% cost reduction
When using the Task tool, specify model based on routing:
// Simple task - use haiku
Task({
subagent_type: "Explore",
model: "haiku",
prompt: "List all files in src/"
})
// Medium task - use sonnet (default)
Task({
subagent_type: "code-reviewer",
model: "sonnet",
prompt: "Review this PR for issues"
})
// Complex task - use opus
Task({
subagent_type: "Plan",
model: "opus",
prompt: "Design the architecture for a multi-tenant SaaS platform"
})
| Command | Default Model | Rationale |
|---|---|---|
/acos | sonnet | Router needs reasoning |
/article-creator | sonnet | Content creation |
/create-music | sonnet | Creative work |
/infogenius | sonnet | Research + creation |
/starlight-architect | opus | Strategic design |
/council | opus | Multi-perspective |
/research | sonnet | Information synthesis |
/spec | sonnet | Feature planning |
/nextjs-deploy | haiku | Execution |
/mcp-status | haiku | Status check |
/inventory-status | haiku | Status check |
/publish | haiku | Execution |
/polish-content | sonnet | Editing |
/review-content | sonnet | Quality check |
If a haiku-routed task fails or produces poor results:
haiku (attempt) ā fail ā sonnet (retry) ā fail ā opus (final)
Model Routing v1.0 - Implementing claude-flow's intelligent routing pattern