ClaudeMod
ModsContext & MemoryWrites / Shell

claude-mod-statusbar

One colored status line for Claude Code, drawn right under the prompt. Model, effort, context, 5-hour and weekly limits, git branch, session cost and directory — in a single row that fits itself to the terminal's width.

Install· Claude Code 2.1.330+
$claude plugin marketplace add xing-shuai/claude-mod-statusbar
$claude plugin install statusbar@claude-mod-statusbar
Run claude plugin validate to auditGuide →
Access & PermissionsWrites / Shell

Writes files, executes local shell processes, or programmatically drives Claude.

Runs shell commandsReads filesReads env varsPersists local stateDraws UI

Statically scanned from hooks & source. Learn how to audit

xing-shuaiAdded 1 months ago

statusbar

One colored status line for Claude Code, drawn right under the prompt.

Model, effort, context, 5-hour and weekly limits, git branch, session cost and directory — in a single row that fits itself to the terminal's width.

The status line under the prompt's hint line

An illustration of the layout. The real colors come from your Claude Code theme, and the glyphs from your terminal font.

statusbar is a Claude Code mod: a plugin of function hooks that reads Claude Code's own session data and draws inside the terminal UI. There is no shell script to write and nothing to configure before it works.

Based on claude-statuspane

statusbar is a modified version of claude-statuspane by Anji Xu (MIT). statuspane draws a floating multi-row card above the prompt; statusbar keeps its figures and several of its helper functions and redraws them as one row under the prompt.

claude-statuspanestatusbar
Where it drawsA bordered card above the promptOne row under the prompt's hint line
HeightSeveral rowsOne row
LabelsText (ctx, 5h, 7d)Icons (◧, ◷, ▦)
SettingsA clickable settings page/statusbar <part>
GitHub CI rowsYes (through gh)Removed
Progress-row API for scripts and other modsYesRemoved
⟲ compact buttonYesRemoved
Commands it runsgit, and gh when CI is ongit branch --show-current only

If you want the card, the CI rows or the progress API, use statuspane.

What it shows

PartExampleMeaning
modelOpus 5.5 (1M)The model the session is using
efforthighReasoning effort of the current turn
ctx◧ ▰▰▰▰▰▱▱▱ 62% 620k/1MContext window: gauge, percent used, tokens used / window size
5h◷ 30% ▸ 2h15m5-hour limit: percent used and time until it resets
7d▦ 91% ▸ 2d5hWeekly limit: percent used and time until it resets
branch⎇ developCurrent git branch
cost$1.50Session cost so far
dir~/code/appSession directory, shortened when long

The names in the first column are what /statusbar <part> takes.

A part appears once Claude Code has a figure for it; the limits appear only on a subscription plan.

The context figure comes from the model's last response. In a new session, and right after a compaction, there is none yet: the line then shows Claude Code's own estimate, the one /context counts, marked with ~ (◧ ▱▱▱▱▱▱▱▱ ~4% 44k/1M), until the next response reports the real figure. The two can differ by a few points. Where no estimate is available either, the part reads ◧ —.

Colors

Colors are theme keys, so the line follows your Claude Code theme (dark, light, colorblind-friendly).

WhatColor
ModelClaude accent, bold
EffortClaude accent
Context gauge and percentAccent; the theme's warning color from 50%, its error color from 80%
Limit percentPlain text; warning color from 60%, error color from 85%
BranchThe theme's suggestion color
CostThe theme's success color
Icons, token counts, countdowns, directoryDim

Fitting the terminal

The line never wraps. As the terminal narrows, parts give way in this order: the directory, the reset countdowns, the effort, the token counts, the tail of a long branch name, the cost, the gauge, and then whole parts. The context percent is the last thing left.

120 columns  Opus 5.5 (1M)  high  ◧ ▰▰▰▰▰▱▱▱ 62% 620k/1M  ◷ 30% ▸ 2h15m  ▦ 91% ▸ 2d5h  ⎇ develop  $1.50  ~/x
 80 columns  Opus 5.5 (1M)  high  ◧ ▰▰▰▰▰▱▱▱ 62% 620k/1M  ◷ 30%  ▦ 91%  ⎇ develop  $1.50
 56 columns  Opus 5.5 (1M)  ◧ ▰▰▰▰▰▱▱▱ 62%  ◷ 30%  ▦ 91%  ⎇ develop
 40 columns  Opus 5.5 (1M)  ◧ 62%  ◷ 30%  ▦ 91%
 12 columns  ◧ 62%

The column counts are the room the line itself has, a few columns less than the terminal's width.

Install

Requires a Claude Code version with mods (function hooks). Developed and tested on Claude Code 2.1.293. The mods API is early access and may change between releases.

In a Claude Code terminal session:

/plugin marketplace add xing-shuai/claude-mod-statusbar
/plugin install statusbar@claude-mod-statusbar

Or from a shell:

claude plugin marketplace add xing-shuai/claude-mod-statusbar
claude plugin install statusbar@claude-mod-statusbar

Then run /reload-plugins in any session that is already open. Installed at the user scope, the line shows in every new session.

statusbar adds a row and replaces nothing: a statusLine you already have in ~/.claude/settings.json keeps showing. It draws in the terminal only.

Configure

Everything is done with one command, and the choices are remembered across sessions.

CommandWhat it does
/statusbarHides the whole line, or shows it again
/statusbar <part>Turns one part off, or back on
/statusbar helpSays what the command takes and which parts are on (any word it does not know does this)

<part> is one of model, effort, ctx, 5h, 7d, branch, cost, dir.

For example, to drop the directory and the effort:

/statusbar dir
/statusbar effort

Each toggle answers with the parts as they stand:

statusbar: dir off. Showing: model, effort, ctx, 5h, 7d, branch, cost. Off: dir.

The icons, the separator and the thresholds are constants at the top of hooks/register.tsx (ICONS, SEP, CTX_WARN, LIMIT_WARN, …) if you want to change them in your own copy.

What it reaches

Everything stays on your machine. statusbar:

  • reads Claude Code's own session data: model, effort, context usage, rate limits, cost and working directory;
  • reads the HOME (or USERPROFILE) environment variable, to shorten the directory to ~;
  • runs git branch --show-current in the session's directory, every 30 seconds and after each turn, when the directory is a git repository;
  • stores two preferences in the plugin's own store: whether the line is hidden, and which parts are off.

It makes no network requests and reads or writes no files of its own. claude plugin validate on a clone lists every hook and call.

Uninstall

claude plugin uninstall statusbar@claude-mod-statusbar
claude plugin marketplace remove claude-mod-statusbar

Development

git clone https://github.com/xing-shuai/claude-mod-statusbar
cd claude-mod-statusbar
claude plugin validate .
claude plugin test .
claude --plugin-dir .        # load the working copy for one session

A session that loads the mod from a folder reloads it when a file is saved.

License

MIT. Portions © 2026 Anji Xu (claude-statuspane).

Details

Sub-category
Context & Memory
License
MIT
Surfaces
terminal
Added
1 months ago
Last synced
1 day ago
Events hooked
session.startcommand.runturn.stepsession.measuresession.compactturn.completeui.render

Weekly Mods Digest

Top new Claude Code mods and install commands, once a week. No fluff, unsubscribe anytime.

More Mods

Claude Flightdeck
ModsSecurity

Claude Flightdeck

Live agent dashboard pane with context consumption, advisor timeline, permission verdicts, and subagent swimlanes.

Reads Files
by Sam Casella
GitHub
Terminal Browser
ModsInterface

Terminal Browser

Browse documentation, GitHub pull requests, and web pages in a split terminal pane directly beside your Claude Code conversation.

Network
by Zenbu Labs
GitHub
Agent Flow
ModsAutomation

Agent Flow

Interactive visual tree of the active session's subagents, background tasks, and teammates beside the transcript via /flow.

UI Only
by Charlie
GitHub

Command Palette

Search for a command to run...