statusline
A Claude Code plugin that draws a rich status line with a mod: code that
runs inside Claude Code and draws into its interface, so it updates with the
plugin and writes nothing to install itself.
Each figure sits where it reads best:
-
Footer, right of the hint line (always there):
focus │ email │ branch ● │ Opus 5.5 │ xhigh │ ███ 25% ░░░ ↑49.5k/1.0M ⊞ │ ⟳ 12 │ $0.84 │ █ 6% ░ 2h16 │ █ 5% ░ 4d 17h
- the engine's own modes (
focus, memory paused), kept on the left
- email and git branch with a dot when the tree has changes, both off by default
- model and effort
- context gauge on the absolute token scale, with
↑input/window in the same colour,
and ⊞, which opens the context pane
⟳ N, the model requests of the main loop, on a green→red gradient
- total cost of the session
- 5-hour and 7-day rate-limit gauges, each with the time until reset
-
Spinner, while Claude works: Baking · ⟳ 12…
-
Under each turn, beside Baked for 14s: ↑+12.3k ↓1.9k · ⟳ 4 · $0.12,
what that turn added to the context, its output tokens, its requests and its
cost. It is kept, and comes back after claude --resume.
-
Context pane, opened and closed by a click on ⊞ or by /ctx: the grid
and categories of /context, kept live, from a local estimate. Détail
counts them with the token-count API, as /context does, and adds the memory
files, MCP servers, agents, skills and slash commands; that count is taken
only on demand and kept until Rafraîchir.
-
Toast, when a threshold is crossed upward: 🟧 Contexte ≥ 100.0k,
🟥 Contexte ≥ 200.0k, 🟥 5h ≥ 80 %.
Rate-limit gauges are green below 50%, yellow from 50–79%, and red at 80% and
above. The context gauge and the request counter tier differently — see
Session degradation.
When the terminal narrows, the line switches to compact forms (shorter gauges,
O5.5, ↑49.5k), then drops, in this order: email, git, ⟳, effort, cost,
time to reset, rate-limit gauges, model. The context gauge and ⊞ never go.
Requirements
Claude Code v2.1.289 or later, in the terminal or the desktop app. Mods draw
nothing in VS Code, in claude -p, or through the Agent SDK. The desktop app
has no turn summary, and draws the line in the band above the prompt, its
gauges as bars, leaving the model and the effort to its own footer.
Usage
Install and enable the plugin; the line appears at once. Disabling or
uninstalling the plugin removes it.
Settings are the plugin's options, in /plugin (Installed → statusline →
configure) or under pluginConfigs in ~/.claude/settings.json:
| Option | Default | Effect |
|---|
ctx_warn | 100000 | input tokens at which the context gauge turns yellow and a toast fires |
ctx_crit | 200000 | input tokens at which it turns red; also the gauge's full scale |
turns_min | 30 | the request counter stays green up to this |
turns_max | 250 | it is fully red from this |
show_email | false | show the signed-in account's email |
show_git | false | show the branch and a dot when the tree has changes |
Upgrading from 2.x or 1.x
Nothing to do. Earlier versions put a statusLine entry in
~/.claude/settings.json; at the first session start the plugin removes it,
leaving every other setting as it was, and says so in a toast. It does that only
when the entry is provably one it wrote: 2.0.0's guarded command, or the 1.x
path with a renderer this plugin shipped, or nothing, behind it. Any other
statusLine is yours and stays; if it looks like a status line of this kind, a
toast mentions it once.
Two leftovers are harmless and can be deleted by hand:
~/.claude/statusline-plugin.json, and on 1.x installs
~/.claude/statusline-command.sh.
Session degradation
Two segments track how far a session has drifted from its best behaviour: the
context gauge and the turn counter. They measure different things and are meant
to be read side by side, because they call for different remedies — a full
context calls for /compact, a long loop calls for a fresh session.
Loop turns (⟳ N)
N counts the model requests of the main loop since the session started (or
since the last /clear): one API request per agent-loop iteration — a model
call plus the tool calls it triggers. Sub-agent work is excluded.
It is not a count of your prompts. Every prompt costs at least one model call so
N does rise by one or more when you send one, but one instruction that fans out
into forty tool calls moves it forty times as far as ten short exchanges do.
That gap is the point of the segment: a session that looks young in conversation
can already be deep in the loop.
There is no bar and no alarm, and that is deliberate: