claude-statusline
A rich statusline for Claude Code — pure bash, no Node.js required.
English ·
한국어
Install ·
Features ·
Config ·
How it works ·
vs claude-hud
Why?
The default Claude Code statusline only shows the model name and cost. You don't know:
- How much context you've used until compaction hits
- How close you are to rate limits
- What tools/agents are running in the background
- How much you've spent today, this week, or this month
Even on Max plan where cost isn't a concern, tracking your token usage helps you understand your usage patterns and optimize your workflow.
This statusline fixes all of that.
What it shows
Fable 5 high ✦ │ ctx 14% ● ○ ○ ○ ○ 143.5K/1M │ oss-qraft (main) │ PR #42 ✓ │ $50.07 · 2h 3m · ~$24/hr +1036 -49
Smart ● ● ● ● ● ● ● ● ● ● ● 119% used 143.5K/120K zone
Session ● ● ● ● ● ● ● ● ○ ○ 83% left Resets in 1h 27m
Weekly ● ● ● ● ● ● ● ● ○ ○ 83% left Resets in 3d 23h
Sonnet ● ● ● ● ● ● ● ● ● ○ 95% left Resets in 4d 15h
✓ Bash×40 ✓ Edit×19 ✓ Read×12 ✓ Write×11 ✓ Grep×2
◐ Explore Explore current Qraft codebase
─────────────────────────────────────────────
Today $227.00 · 264.5M tokens
Yesterday $101.77 · 111.7M tokens
Last 30 Days $3449.66 · 3.9B tokens
| Section | Details |
|---|
| Header | Model + badges (⚡ fast mode, effort level or ultracode, ✦ thinking, ◑ output style, ⛭ agent), context % with mini-bar and token count (143.5K/1M, marked ⚠️ 200k+ past the premium threshold), project, git branch + dirty + ↑ahead ↓behind, PR # + review state (clickable), session cost · duration · ~$/hr burn rate, lines +/-, optional session name |
| Compaction Warning | Red warning when context exceeds critical threshold |
| Smart Zone | How much of the ~120k-token span the model still reasons sharply over has been used — the number a 1M window hides. Gauge + % used + tokens/zone |
| Rate Limits | Session (5h; omitted on plans without a 5-hour window, e.g. Ultra) / Weekly (7d) / per-model buckets (Opus, Sonnet, Fable, … auto-detected) / Extra usage — gauge bar + % left + reset time |
| Tool Activity | Running tools, completed tool counts, active agents |
| Token Costs | Today / Yesterday / Last 30 days — cost & token count |
| Budget Alert | Red warning when daily spending exceeds configured limit |
Header badges
| Badge | Meaning |
|---|
⚡fast | Fast mode enabled |
high | Reasoning effort level (low/medium/high/xhigh/max) |
ultracode | Ultracode active — xhigh effort plus standing dynamic-workflow orchestration (session-scoped; replaces the effort badge) |
✦ | Extended thinking enabled |
◑explanatory | Active output style (only when not default) |
⛭security-reviewer | Active agent (during --agent sessions) |
⚠️ 200k+ | Past the 200k premium long-context billing threshold (>200k-window models only) |
PR #42 ✓ | Open PR — ✓ approved · ● pending · ✗ changes requested · ◌ draft |
+1036 -49 | Lines added/removed this session |
Badges only appear when the data exists — e.g. ⚡fast shows only with fast mode on, PR #42 only while a PR is open.
Per-model rate limit buckets
Model-specific weekly buckets are auto-detected from the OAuth usage API — whatever buckets Anthropic reports for your plan show up automatically, so new models appear without a script update. They are ordered by model capability (most capable first, Fable > Opus > Sonnet > Haiku), and buckets the API reports as null (inactive for your plan) are hidden. An Extra gauge appears when extra usage credits are enabled on your account.