Claude Modern Status Bar banner
ShayanNasiri ShayanNasiri

Claude Modern Status Bar

Development community

Description

Native C status line for Claude Code on Windows. ~21 ms per render, ~160 KB self-contained .exe, no dependencies.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

claude-modern-status-bar

[![build](https://github.com/ShayanNasiri/claude-modern-status-bar/actions/workflows/build.yml/badge.svg)](https://github.com/ShayanNasiri/claude-modern-status-bar/actions/workflows/build.yml)

A native C status line for [Claude Code](https://docs.claude.com/en/docs/claude-code) on Windows. Single ~430-line source file, compiles to a ~160 KB self-contained `.exe`, renders in **~21 ms** per invocation — roughly **70× faster** than the bash + python + git + awk pipeline most people start with.

![Status bar screenshot](screenshots/statusbar.png)

What you get

folder  |  branch  |  model  |  [bar] 47%  |  5h 23% · 4h 26m  |  wk 41%
  • Folder — basename of the current working directory (bold blue)
  • Branch — current git branch, or short SHA if detached HEAD (cyan)
  • Model — the active Claude model from Claude Code's input JSON (purple)
  • Context bar — 30-char bar showing free space remaining before auto-compact, with the matching percentage (bold pink)
  • 5-hour usage — the same percentage /usage shows for the rolling 5-hour limit, plus the time until it resets. White under 70%, yellow at 70–89%, red at 90%+. Reset countdown formats as 47m / 3h / 1h 47m / <1m. Omitted entirely if Claude Code doesn't pipe in the rate_limits.five_hour field; the countdown half is omitted independently if resets_at is missing or already in the past.
  • Weekly usage — same as above for the rolling 7-day limit, without the countdown. Same color thresholds.
  • Separator — gray vertical bar between segments

The context bar shows *free* space (not used), to match what Claude Code's `/context` command labels "Free space". The math accounts for the ~33 k-token autocompact buffer Claude Code reserves before auto-compaction fires — 16.5% on a 200 k window, 3.3% on a 1 M extended-context window. The reserve is computed from the `context_window_size` Claude Code reports, so it stays correct on any window size.

Why