Write me a Claude Code status line script that shows the model name and my five-hour and weekly usage as percentages. Read the rate_limits fields, and show nothing for any that are missing.
Find what fills the conversation
/context lists what is taking up space, such as your instructions, installed skills and long tool output. 1
Claude Code
> /context# a breakdown of the context window, by category
Simplified example: Claude CodeShow prompt
Try this
Here is my /context output: [paste]. What is taking the most space, and what could I remove or load only when needed?
Read the dollar figure right
On a Pro, Max or Ultra plan, the session cost in /usage is not what you pay. Your subscription already covers that usage. 1
Show prompt
Try this
Explain the difference between my plan limits and the session cost figure Claude Code shows me. What happens when I reach a limit?
How to do it
1
Start a new chat for each job
/clear drops the old conversation, so the next request does not pay for it. 3
2
Compact a long job instead of restarting
/compact summarises the history and carries on. On a very large conversation, that summary is a big request too. 3
3
Match the model to the job
/model switches. Use a smaller model for copy edits and small fixes, and save the biggest for planning and hard bugs. 4
4
Say when it does not need to look
Screenshots are expensive to read. When you only need the build to pass, say "no screenshots, just check the build".
5
Keep your chat history
Claude Code deletes transcripts after 30 days without telling you. Set "cleanupPeriodDays": 3650 in ~/.claude/settings.json to keep them. 5
Where to be careful
Decide on usage credits before you need them
Usage credits let you keep working past your plan limit. Check in your account settings whether they are on, and whether you want them. 1
Estimates can be far off
An AI's guess at how much a job will use is a guess. Read /usage before and after a big job instead.
Agents multiply usage
Each subagent sends its own requests against the same limits. Try one, see what it used, then decide whether to start more. 6
Behind this guide
Notes, evidence and sources
What my own usage looked like
Musa Burke's own notes from building this guide and other sites with Claude Code, not study findings.
Real numbers from one week
On my plan, the first full build of my portfolio took about 14% of a weekly limit, and one new section about 2%. Claude had guessed that section would cost far more. A redesign on Opus took about 8% of the week and 60% of one five-hour window.
The $100 that was not a bill
npx ccusage@latest daily showed $100.94 for 29 October to 1 November. Nearly all of it was cache reads, priced as if I paid per token. My subscription price stayed the same.
Where most of it went
By Claude's estimate, my biggest costs were full-page screenshots read several at a time, rewriting whole files instead of editing them, and installed skills adding about 16,000 tokens to every request.
Clearing saves the most
The usage panel put starting a new chat for each task at 82% of the savings it suggested. CLAUDE.md loads again by itself, so nothing important is lost.
What is missing
No independent study of usage habits was found. This guide rests on the toolmaker's own docs and one person's numbers.
Terms used in this guide
Rate limit
A cap on how much you can use in a set time. Claude plans have one that resets every five hours and one that resets weekly.
Cache read
Text the tool has already sent once and sends again from a stored copy, priced lower than new text.
Transcript
The saved record of a chat, kept on your computer.
All 6 sources for this guide
1. Claude Code docs: costs and /usage · Checked 9 November 2026