Claude Code Statusline

A five-line Claude Code statusline: model, git status, and environment on top; directory, cost, and session duration below; then live gradient bars for context usage and your 5-hour / 7-day rate limits, with pace-aware color shifts baked in.

sample output — your terminal updates these live
🤖 Sonnet 5 ✅ clean │ ⬢ v22.11.0 │ 🎨 default
portfolio-2025 🌿(feature/statusline-showcase) │ 💰 1.42$ │ ⏰ 38m
🧠 Context 62% used (124k/200k)
🚀 Usage 5H 41% -3% (Reset 2h12m left)
Usage 7D 58% +6% (Reset Thu 09:00)

Paste it into any Claude Code session — Claude will fetch the script and wire up your settings.json for you. Requires jq.

What it shows

  • Active model, plus reasoning effort and thinking mode
  • Git status — clean, or a staged / unstaged / untracked count
  • Node.js version and active output style
  • Working directory, branch, session cost, and duration
  • Context window usage as a green → yellow → red gradient bar
  • 5-hour and 7-day rate limit usage, with a momentum indicator that shifts the bar's color toward red when you're burning through the window faster than the clock

Prefer to install it yourself?

The script is plain bash, hosted at https://jakenelken.com/statusline.sh. Save it to ~/.claude/statusline.sh, chmod +x it, and point ~/.claude/settings.json's statusLine command at it.

← Back to portfolio