Recommend the optimal Claude model (Haiku/Sonnet/Opus) for a task using a decision matrix with complexity escalators.
80
80%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
| File Type | Task | Model |
|---|---|---|
.md, .txt | Typo fix, formatting | Haiku |
.md, .txt | Blog post, documentation | Sonnet |
.md, .txt | Long-form report (>5K words) | Opus |
.json, .yaml, .toml | Parse, extract, validate | Haiku |
.json, .yaml, .toml | Schema design | Sonnet |
.py, .js, .ts (single) | Bug fix, feature add | Sonnet |
.py, .js, .ts (3+ files) | Refactor, architecture | Opus |
.sh, .bash | Script debug/fix | Sonnet |
.sh, .bash | Complex orchestration | Opus |
| Domain | Task Type | Model |
|---|---|---|
| Data Processing | ETL, parsing, cleaning | Haiku |
| Data Processing | Pipeline design | Sonnet |
| Data Processing | Distributed system design | Opus |
| Content Creation | Social post, email | Sonnet |
| Content Creation | Whitepaper, thesis | Opus |
| DevOps | Config fix, logs analysis | Haiku/Sonnet |
| DevOps | Infrastructure design | Opus |
| Security | Code scan, vuln check | Sonnet |
| Security | Threat modeling, audit | Opus |
| Testing | Unit test write | Sonnet |
| Testing | Test strategy, framework | Opus |
| Pattern | Model |
|---|---|
| One-shot (single request/response) | Match task complexity |
| Iterative (back-and-forth refinement) | Start lower, escalate if needed |
| Exploratory (user learning) | Start Sonnet (patient explanations) |
| Production (high stakes) | Escalate +1 tier for safety |
Start Haiku → Upgrade Sonnet if:
Start Sonnet → Upgrade Opus if:
Sequential (pipeline):
Parallel (fan-out):
Iterative (feedback loop):
User knows best when:
Always respect explicit user model selection.
Output confidence level based on task clarity:
🔴 **Opus** — [reason]
💰 Cost: highest | ⚡ Speed: slowest
🎯 Confidence: High (clear architectural scope)
💡 Consider Sonnet if scope reduces to 2-3 files after explorationConfidence indicators: