C.W.K.
Stream
Lesson 10 of 13 · published

Model Selection — Haiku, Sonnet, Opus

~14 min · models, haiku, sonnet, opus, cost, switching

Level 0🌱 Novice
0 XP0/70 lessons0/11 achievements
0/120 XP to next level120 XP to go0% complete

Three tiers, three jobs

Claude Code lets you swap the underlying model per session, per skill, or per subagent. The three families currently available — Haiku, Sonnet, Opus — trade speed, capability, and cost. Knowing which to reach for is half the leverage.

Haiku. Fastest, cheapest. Right for high-volume read-heavy work — exploring an unfamiliar repo, running a fleet of background agents, automating dozens of CI tasks. Smart enough for "find / count / categorize" type prompts; not your first pick for architecture decisions.

Sonnet. The everyday default. Strong coding, strong reasoning, sane cost. If you're not sure which to pick, this is the answer. Most live coding sessions live here.

Opus. Slowest, most capable, most expensive. The model you switch to when stakes are high — security audits, architecture design, gnarly multi-file refactors that need long-range thinking. Combine with /effort high|max for max reasoning.

Code

Pick at launch or mid-session·bash
# Launch with a specific model
claude --model claude-opus-4-7
claude --model haiku            # short alias
claude --model sonnet -p "..."  # print mode + Sonnet

# Mid-session — interactive picker
/model

# Mid-session — direct switch
/model claude-opus-4-7

# Set default in user settings
# ~/.claude/settings.json
{ "model": "claude-sonnet-4-6" }
Match model to job·text
Exploring a new codebase           → Haiku   (cheap, fast, lots of reads)
Implementing a new feature         → Sonnet  (default sweet spot)
Code review / security audit       → Opus    (judgment matters)
Background agent fleet (parallel)  → Haiku   (cost compounds)
Architecture design                → Opus    (long-range reasoning)
CI/CD automated tasks              → Haiku/Sonnet (volume)

External links

Exercise

Run the same task three ways: once with Haiku, once with Sonnet, once with Opus. Compare quality, latency, and cost via /cost. Write down which model you'd actually use for that class of task — and why.

Progress

Progress is local-only — sign in to sync across devices.
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.