You're deep in a session with Claude Code, things are going great… and then you hit the 5-hour limit. No warning, no idea when it resets, and your flow is gone.
That happened to me one too many times, so I built claude-statusbar: a status line for Claude Code that keeps the important stuff in front of you all the time.
Opus 5.5 │ high │ ◉ api-worker │ ⎇ feat/x ⌂ wt-a ↑2 │ 5h ▓▓▓▓▓▓▓░░░ 74% ↺16:59 │ 7d ▓▓░░░░░░░░ 21% ↺18 Nov 07:59 │ 163K/200K Here's what it looks like in a real session:
Notice the 7-day bar already in orange at 89%: that's exactly the kind of heads-up I wanted before hitting the wall.
What you get at a glance
- Quota windows with reset times. A 10-cell bar and a percentage for both the 5-hour and the 7-day windows, plus when each one resets (
↺16:59). It turns green → orange at 70% → red at 90%, so you know when to wrap up before you get cut off. - Context usage.
163K/200Ktokens, so you can see a full context window coming and compact or start fresh first. - Git that understands worktrees. Current branch (or short SHA when detached), the linked worktree folder (
⌂ wt-a) and how many commits you are ahead of your base branch (↑2). Handy if you run several Claude sessions in parallel worktrees. - Model, effort and session name. So you always know which model and effort level is running, and which session you're looking at.
Every segment can be turned on or off, and segments with no data simply hide themselves.
Install in 30 seconds
npm i -g @hhsm95/claude-statusbar claude-statusbar init init asks which segments you want (all pre-selected), writes its config and adds the statusLine entry to Claude Code's settings.json. That's it.
A few things I cared about:
- It doesn't touch the rest of your settings. Only the
statusLinekey is changed. - It respects what you had. If you already had a custom status line,
initasks before replacing it and keeps a copy, soclaude-statusbar uninstallputs it back. - Scriptable.
claude-statusbar init --yesfor dotfiles and CI.
Configure it your way
Settings live in ~/.claude/statusbar.json (or $CLAUDE_CONFIG_DIR):
{ "segments": { "model": true, "effort": false, "session": true, "git": true, "fiveHour": true, "sevenDay": true, "context": true } } A disabled segment isn't even computed. Turn off git and no git command runs at all. Prefer plain text? Set NO_COLOR.
Built to be fast and boring (in a good way)
A status line runs constantly, so it has to be fast and it can never break your terminal:
- No runtime dependencies on the render path. Just Node.js.
- Cross-platform. Tested in CI on Linux, macOS and Windows with Node 22 and 24.
- Fails safe. A missing or corrupt config just means "show everything", each git call has a 1-second timeout, and if something can't be read, that segment hides instead of crashing.
- Supply-chain friendly. Releases are published from GitHub Actions through npm Trusted Publishing, with provenance.
How it differs from other status lines
There are other status line tools for Claude Code, and many of them focus on cost tracking. claude-statusbar focuses on what kept interrupting my work: quota windows with reset times, git worktree and ahead-of-base info, and per-segment toggles.
What's next
On the roadmap:
- Configurable segment order
- Custom colors and thresholds
- Configurable bar width and separator
- i18n
Try it and tell me what you think
npm i -g @hhsm95/claude-statusbar && claude-statusbar init ⭐ GitHub: https://github.com/hhsm95/claude-statusbar
📦 npm: https://www.npmjs.com/package/@hhsm95/claude-statusbar
It's MIT-licensed and contributions are welcome, especially new segments. What would you want to see in your status line? Let me know in the comments 👇

