CloudYetiFREE
Claude Code

The Claude Code team keeps context usage on screen, all the time

One /statusline command puts a bar at the bottom of Claude Code that shows how full the context window is. A second one adds your 5-hour and weekly plan limits.

Why it matters

Boris Cherny, who created Claude Code, shared this as tip 7 from the Claude Code team: use /statusline to always show context usage and the current git branch.

The status line is a bar at the bottom of Claude Code. It runs a small script on your machine and uses no API tokens.

On Pro, Max and Ultra plans, Claude Code also passes your 5-hour and weekly limit percentages to the status line.

Do this

  1. In Claude Code, type the first command below. Claude Code writes a script in ~/.claude/ and adds it to your settings.
  2. Check the bottom of the screen: you should see the model and a context bar.
  3. Type the second command to add your 5-hour and weekly limit used.
  4. To remove it later, type /statusline remove it.

Paste into Claude Code, one at a time

/statusline show model and context percentage with a progress bar
/statusline also show my 5-hour and weekly limit used

One thing to keep in mind: If you also show the session cost, it is an estimate. Claude Code's docs say the cost number uses list prices and may differ from your bill, and it resets to $0 when /clear starts a new session.

The limit percentages only appear for claude.ai Pro, Max and Ultra subscribers, and only after the first reply in a session. Source: Boris Cherny (@bcherny) on X, Jan 31 2026, tip 7; Claude Code docs: status line.

Free live lesson · Nov 24Stop Measuring AI by Tokens. Measure What It EarnsOne hour, live, with Saurav. Bring your own bill. Free.
Save my free seat →
Ask me anything about AI and cloudA paid call on your own setup: your agents, your bill, your plan.Book a call →

All tips in: Claude Code tips from the team that builds Claude Code

Get new videos and tips by emailOne short email when there is something new. Unsubscribe any time.

More free AI resources

Save my free seat: free live lesson →