DEV Community

Jitendra Kumar
Jitendra Kumar

Posted on

Stop Using Opus for Everything: The Claude Code /model Framework

https://youtu.be/S-2gZNJ4nGo

description: "A simple decision tree for switching between Haiku, Sonnet, and Opus in Claude Code. Includes the 3rd hidden model most developers don't know about. Day 4 of 10."
tags: claudecode, ai, productivity, vscode
cover_image:

series: 10 Days of Claude Code

TL;DR — Claude Code has THREE models, not two. Default to Sonnet. Use Haiku for mechanical tasks (renaming, comments, formatting). Switch to Opus only when Sonnet gets stuck. This framework alone tripled my Pro plan's lifespan.

Welcome to Day 4 of my "10 Days of Claude Code" series! 🚀

Catch up on previous days:

  • 📌 Day 1/init to onboard Claude to your codebase
  • 📌 Day 2/review and /ask for instant code audits
  • 📌 Day 3/clear vs /compact for context management

Today: the command that most developers misuse/model.


The Mistake Almost Every Pro User Makes

You opened Claude Code. You're on the Pro plan. You want the best results, so you set the model to Opus and forget about it.

Two hours later: usage limit hit.

Sound familiar? You're not alone. Defaulting to Opus is the #1 reason Pro plans run out fast.

The fix: actually use the /model command.


The Three Models — And Their Real Jobs

/model
Enter fullscreen mode Exit fullscreen mode

This shows you the model picker. There are three options:

🟡 Haiku — The Speed Layer

/model haiku
Enter fullscreen mode Exit fullscreen mode

The model nobody talks about. Lightning fast. Near-zero token cost.

Use it for:

  • ✅ Renaming variables
  • ✅ Writing JSDoc / docstrings
  • ✅ Adding console.log statements
  • ✅ Quick formatting fixes
  • ✅ Simple search-and-replace
  • ✅ Import additions

If your task is mechanical (the answer doesn't require reasoning), Haiku is the right tool.


🟠 Sonnet — The Workhorse

/model sonnet
Enter fullscreen mode Exit fullscreen mode

This should be your default. Period.

Use it for:

  • ✅ Bug fixes
  • ✅ Refactoring
  • ✅ Writing new functions from clear specs
  • ✅ Multi-step file edits
  • ✅ Code reviews
  • ✅ Test writing
  • ✅ Daily coding tasks

Sonnet handles 80% of what you actually do at a fraction of Opus's token cost.


🟣 Opus — The Heavy Hitter

/model opus
Enter fullscreen mode Exit fullscreen mode

The most capable model — and the most expensive in terms of usage. Reserve it for when it earns its place.

Use it for:

  • ✅ Architectural decisions
  • ✅ Multi-file refactors with cascading impact
  • ✅ Performance optimization
  • ✅ Complex debugging where Sonnet got stuck
  • ✅ Security analysis
  • ✅ System design

If a task rewards getting it right the first time, that's Opus territory.


The Decision Tree I Actually Use

1. Start session → Sonnet (always)

2. Mechanical task?
   YES → Switch to Haiku
   NO  → Stay on Sonnet

3. Sonnet struggling 2x in a row?
   YES → Switch to Opus
   NO  → Stay on Sonnet

4. Solved the hard problem?
   YES → Switch back to Sonnet immediately
Enter fullscreen mode Exit fullscreen mode

That's it. Four rules. No spreadsheet.


The Comparison Table

Task Best Model Why
Rename a variable Haiku Mechanical
Write a JSDoc block Haiku Pattern-based
Fix a TypeError Sonnet Needs context
Add a new feature Sonnet Multi-step logic
Refactor a class Sonnet Daily refactor work
Design a microservice Opus Architectural depth
Debug a race condition Opus Complex reasoning
Optimize an algorithm Opus Tradeoff analysis

Real-World Numbers

Before this framework:

  • ⏱️ Pro plan lasted ~2-3 hours of heavy use
  • 💸 Most days I hit usage limit before lunch

After this framework:

  • ⏱️ Pro plan lasts the full workday
  • 💸 On normal days, I have headroom to spare

Same code shipped. Same productivity. 3x more runway.


Try It in 30 Seconds

# In Claude Code
/model

# Pick one based on your current task
/model haiku   # for mechanical work
/model sonnet  # for daily coding
/model opus    # for hard problems
Enter fullscreen mode Exit fullscreen mode

You can switch mid-session. You can switch as often as you want. The model just changes for the next prompt.


🎬 Watch the 60-Second Version

If you prefer video, I made a quick reel covering this:

📺 YouTube Short:


What's Next — Day 5

Tomorrow I'm covering the command that lets you track your Pro plan usage in real-time. Most developers don't know this dashboard even exists. It's the natural follow-up to Day 4 — once you switch models, you need to verify it's actually saving you tokens.

🔔 Follow me on Dev.to so you don't miss it!


💬 Your Turn

  • Did you know /model haiku existed?
  • Which model do you default to today?
  • Will you try the framework above?

Drop a comment — I read every single one. 👇


About the series: I'm sharing one Claude Code productivity tip every day for 10 days. Follow along on:

Let's master Claude Code together! 🚀

ClaudeCode #AI #Productivity #VSCode #DevTools

Top comments (0)