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 what is using it up? 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

Prefer to watch? This chapter goes with Episode 6 (5:36). Open it on YouTube.

Subscribe on YouTube

Goes with Episode 6"What is using up my limit?". Watch it just above, or read this page at your own pace. It teaches the same steps.
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.

What is using up my limit?

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. In our run, a new session already showed 31% used before the first question.

The question for this chapter

What is using up your limit, and how can you do the same work with less of it?

Read your usage

Start Claude Code and look at the first lines. They show the model. In our run the default is Opus, "best for everyday, complex tasks". Your plan may show other models.

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.

This "current session" is your plan's window of a few hours. It counts all your recent work, not only the conversation you just opened.

Say you take a big car for a short trip to the shop. It gets you there, but you pay for a big car on every trip. Claude Code gives you the same kind of choices: which model does the work, how hard it thinks, and how much it carries along.

A big car on a short trip to a small shop.
A big car for a short trip: it works, but you pay for the big car every time.

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. Below the slider, a line shows the cost as you move: high costs about twice as much as medium, max about 10 times. 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. Claude counts it in tokens: small pieces of text, a few letters each. 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, without interrupting the main 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, and the old session is not lost: it stays on disk, and /resume opens it again. The last reading in the Messages picture under Watch the conversation grow, 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.