Learn Claude Code by Building DevPulse · Chapter 6

A lighter model and a shorter context

After a morning of building, the usage bar is high, so where did it all go? By the end of this chapter, you will read your usage, pick a lighter model and effort, and keep the conversation short with three commands.

One sitting~7 min read, ~15 min to try along
You start fromchapter 5's DevPulse
You buildno code: habits that save your limit
Chapter 6 of 15spend less, get the same
Goes with Episode 6"Why did I hit my limit so fast?". The video is being made. This page teaches the same steps, at your own pace.
In a hurry?Jump to the quick reference: every command and key in this chapter, what it does, and when to use it.
Every prompt, ready to copyThis chapter's prompts and commands, each with a Copy button. Type them yourself first; copy if you are stuck or behind.
Where you areDevPulse with tests and a best streak, from chapter 5. This chapter changes no code.

Where did my limit go?

Your plan gives you a limit for each few hours and for the week. A morning of chapters 1 to 5 uses a lot of it.

Say you fill a big car for a short trip to the shop. It works, but you pay for a big car every time. Claude Code has the same choices: which model, how hard it thinks, and how much it carries along.

The question for this chapter

How do you see what you used, and use less for the same work?

Read your usage

Start Claude Code and look at the first lines. They show the model. On Pro and above, the default is Opus: the strongest model, and the one that uses your limit fastest.

Type this into Claude Code/usage
The Usage tab: Current session, a bar, 31% used, resets 12:10pm (Asia/Kolkata).
The bar for the current session: 31% used, and when it resets. Below it are bars for the week. Your plan shows its own bars.

Pick a lighter model

Not every task needs the strongest model. A small change, a rename or a question about a file runs well on a lighter one.

Type this into Claude Code/model
Select model: 1. Default (recommended), Opus 5.5, best for everyday, complex tasks; 2. Opus 5.5; more models below. Enter to set as default, s to use this session only.
The default is Opus. Read the last line: Enter sets a new default, s uses the model for this session only.
Further down the list: 3. Fable 5.1, for your toughest challenges; 4. Sonnet 5.5, most efficient for simpler tasks.
Move down to Sonnet, "most efficient for simpler tasks", and press s. The models you see depend on your plan.
Set model to Sonnet 5.5 for this session only. The header now reads Sonnet 5.5.
Set model to Sonnet 5.5 for this session only. Tomorrow you start on the default again.

Set how hard it thinks

A model can think briefly or at length. Longer thinking helps hard problems and costs more on easy ones.

Type this into Claude Code/effort
Effort: a slider from Faster to Smarter, low, medium, high, xhigh, max; left and right to adjust, Enter to confirm, s for this session only.
A slider from low to max. Medium suits most building. Press s to keep it for this session only.

Watch the conversation grow

Every message you send carries the whole conversation with it. So a long conversation costs more on each new question. /context shows the size; watch the Messages line.

We checked it three times: in a new session, after one big read-only question, and after /clear. This was the question:

The big question we askedRead the project and list the open bugs and rough edges you can find, most serious first. Don't change anything.
Messages: 300 tokens in a new session; 33.5k tokens after one big question; 130 tokens after /clear.
One question took the conversation from 300 to 33,500 tokens. Every later question would carry all of it.
The end of Claude's list of 13 bugs and rough edges, with an Insight box, and: I'd start with 1, 2 and 3, which are small server-side fixes.
That big answer: 13 issues. Useful, and heavy to carry along.

Three ways to keep it short

There are three commands, one for each situation.

Still working on the same task? Shrink it, and say what must be kept.

Type this into Claude Code/compact keep the DevPulse decisions and the open bug list
/compact keep the DevPulse decisions and the open bug list: Compacted; then it re-reads server.py, index.html, streak.js, .gitignore and test_server.py.
Compacted. It then re-reads the files it needs. In our run that brought it from 33.5k to about 28k: smaller, not tiny.

A quick question off the main task? Ask it on the side. The answer is not added to the conversation.

Type this into Claude Code/btw what does accept edits mode allow?
A side panel answers: accept edits mode stops Claude Code from asking before it changes files; file edits, simple shell commands like mkdir and mv; other commands still ask. Keys: c to copy, f to fork, Esc to close.
The answer opens in a panel. Press Esc, and the conversation is as before.

Starting something unrelated? Start clean. /clear empties the conversation, in the same folder. Your files, CLAUDE.md and memory stay. The last line in the picture above, 130 tokens, is after /clear.

Type this into Claude Code/clear

What saving costs

A lighter model can miss what Opus would catch. Low effort can rush a hard bug. And /compact keeps a summary, so details you did not name may be lost.

So switch down for easy work, and back up for hard work. And notice the prompts you type every day, again and again. That repetition costs time too. Chapter 7 turns one of them into a single command.

Quick reference

The prompts from this chapter, ready to copy: every prompt, chapter 6.

Command or keyWhat it doesUse it when
/usageShows how much of your plan's limit is used, and when it resetsYou wonder why Claude slowed down or stopped
/modelPicks the model; s = this session only, Enter = new defaultThe task is simple, or very hard
/effortSets how hard the model thinks, low to maxQuick tasks need less thinking
/contextShows what fills the conversation; watch MessagesThe conversation feels long
/compact keep …Shrinks the conversation to a summary of what you nameA long task still has more to do
/btw questionAnswers a side question without adding it to the conversationA quick question off the main task
/clearStarts an empty conversation in the same folderYou switch to an unrelated task

References

Where each command on this page comes from. Every screenshot is from our own recording on 29 Oct 2026, Claude Code 2.1.312.

  1. Anthropic · Manage costs effectively What uses your plan: model, effort, the size of the conversation; /compact and /clear. https://code.claude.com/docs/en/costs
  2. Anthropic · Model configuration /model, the default model per plan, and choosing a model for one session. https://code.claude.com/docs/en/model-config
  3. Anthropic · Interactive mode /usage, /effort, /context, /compact, /btw and /clear. https://code.claude.com/docs/en/interactive-mode
  4. My own recording · 29 Oct 2026, Windows 11 One read-only question grew the conversation from 300 to 33,500 tokens.