Opus 4.8 [high] ~/app main
16:20:55 | ⛁ ██░░░░░░░░ 22% | 5h ●◔○○○ 26% ↻2h7m | 7d ◔○○○○○○ 7% ↻2d1h │ $0.41 ⏱ 10m
Burn Rate Bars
Three-line status: directory, git branch and model up top; a context-fill bar with session cost and an hourly burn rate ($/h); then 5-hour and weekly rate-limit bars with context-warning icons.
4 installs
Before you install
- This version was reviewed before it was listed on Jun 29, 2026
- Doesn't ask to connect to the internet
- jq is optional since Python can parse the JSON, but the $/h rate needs Python and shows $0.00/h without it.
- Branch comes from git with a * when git diff HEAD sees changes. Outside a repo the 🌿 shows with no name.
- With no rate limits sent the script exits with code 1, as two previews show, though both lines still print.
Preview
📁 app 🌿 main 🧠 Opus
🧊 22% [==--------] 💰 $0.41 ($2.41/h)
⏳ 5h: 26% [==--------] 7d: 7% [----------]
📁 app 🌿 main 🧠 Opus
🧊 0% [----------] 💰 $0.00 ($0.00/h)
📁 app 🌿 feat/auth* 🧠 Sonnet
🧊 48% [====------] 💰 $0.41 ($2.41/h)
⏳ 5h: 40% [====------] 7d: 18% [=---------]
📁 app 🌿 main 🧠 Opus
❗ 91% [=========-] 💰 $4.12 ($24.24/h)
⏳ 5h: 88% [========--] 7d: 61% [======----]
📁 app 🌿 main 🧠 Fable
🧊 64% [======----] 💰 $0.41 ($2.41/h)
⏳ 5h: 33% [===-------] 7d: 80% [========--]
📁 app 🌿 main 🧠 Haiku
🧊 0% [----------] 💰 $0.41 ($2.41/h)
⏳ 5h: 52% [=====-----]
📁 feature 🌿 worktree-feature 🧠 Opus
🧊 37% [===-------] 💰 $0.41 ($2.41/h)
⏳ 5h: 44% [====------] 7d: 20% [==--------]
📁 scratch 🌿 🧠 Opus
🧊 22% [==--------] 💰 $0.41 ($2.41/h)
What it does
Three lines: folder, branch and short model name; a context bar with session cost and dollars per hour; then 5-hour and 7-day rate-limit bars when Claude Code sends them.
- Written in
- Bash
- Network access
- None requested
- Works in
- Terminal
How it works
- Reads model, folder, cost, duration, remaining context and rate limits with jq or Python
- Drops the model's version number and divides total_cost_usd by session time for $/h
- Context gets 🧊 under 70%, ⚠️ from 70% and ❗ from 80%, beside a 10-cell = and - bar
- A ⏳ third line lists the rate limits that arrive; a brand-new session prints two lines
Source
#!/bin/bash
input=$(cat)
# jq 또는 python3으로 JSON 파싱
parse() {
local field="$1"
local default="$2"
if command -v jq &>/dev/null; then
echo "$input" | jq -r "$field // \"$default\""
else
local py=$(command -v python3 || command -v python || command -v py)
[ -z "$py" ] && { echo "$default"; return; }
echo "$input" | $py -c "
import sys, json
data = json.load(sys.stdin)
keys = '$field'.strip('.').split('.')
val = data
for k in keys:
val = val.get(k, '$default') if isinstance(val, dict) else '$default'
print(val)
" 2>/dev/null || echo "$default"
fi
}
MODEL_RAW=$(parse '.model.display_name' 'unknown')
# shorten model name: "Opus 4.6 (1M context)" → "Opus"
MODEL=$(echo "$MODEL_RAW" | sed 's/ [0-9].*//')
DIR=$(parse '.workspace.current_dir' '.')
COST=$(parse '.cost.total_cost_usd' '0')
DURATION_MS=$(parse '.cost.total_duration_ms' '0')
REM=$(parse '.context_window.remaining_percentage' '100')
REM=${REM%%.*}
PCT=$((100 - REM))
VERSION=$(parse '.version' '')
# rate limits
RL5_PCT=$(parse '.rate_limits.five_hour.used_percentage' '')
RL7_PCT=$(parse '.rate_limits.seven_day.used_percentage' '')
# git branch + dirty check
BRANCH=$(cd "$DIR" 2>/dev/null && git branch --show-current 2>/dev/null || echo "")
if [ -n "$BRANCH" ] && cd "$DIR" 2>/dev/null && ! git diff --quiet HEAD 2>/dev/null; then
BRANCH="${BRANCH}*"
fi
# context bar (usage-based: fills up as you use more)
FILLED=$((PCT / 10))
EMPTY=$((10 - FILLED))
BAR=$(printf "%${FILLED}s" | tr ' ' '=')$(printf "%${EMPTY}s" | tr ' ' '-')
# cost / hourly rate
COST_FMT=$(printf '$%.2f' "$COST")
DURATION_S=${DURATION_MS%.*}
SECS=$((DURATION_S / 1000))
if [ "$SECS" -gt 0 ]; then
PY=$(command -v python3 || command -v python || command -v py)
HOURLY=$($PY -c "print(f'{$COST / $SECS * 3600:.2f}')" 2>/dev/null || echo "0.00")
HOURLY_FMT="\$${HOURLY}/h"
else
HOURLY_FMT='$0.00/h'
fi
# context warning icon
if [ "$PCT" -ge 80 ]; then
CTX_ICON="❗"
elif [ "$PCT" -ge 70 ]; then
CTX_ICON="⚠️"
else
CTX_ICON="🧊"
fi
# rate limit bars (remaining = 100 - used)
make_bar() {
local pct=${1%%.*}
local filled=$((pct / 10))
local empty=$((10 - filled))
printf "%${filled}s" | tr ' ' '='
printf "%${empty}s" | tr ' ' '-'
}
RL_INFO=""
if [ -n "$RL5_PCT" ] && [ "$RL5_PCT" != "null" ]; then
RL5_INT=${RL5_PCT%%.*}
RL5_BAR=$(make_bar "$RL5_INT")
RL_INFO="5h: ${RL5_INT}% [${RL5_BAR}]"
fi
if [ -n "$RL7_PCT" ] && [ "$RL7_PCT" != "null" ]; then
RL7_INT=${RL7_PCT%%.*}
RL7_BAR=$(make_bar "$RL7_INT")
RL_INFO="${RL_INFO} 7d: ${RL7_INT}% [${RL7_BAR}]"
fi
# output
echo "📁 ${DIR##*/} 🌿 $BRANCH 🧠 $MODEL"
echo "${CTX_ICON} ${PCT}% [${BAR}] 💰 ${COST_FMT} (${HOURLY_FMT})"
[ -n "$RL_INFO" ] && echo "⏳ ${RL_INFO}"
Badge for your README
Own this listing? Add it to your README. The badge shows the install count as it grows.
[](https://statuslin.es/c/burn-rate-bars-2a7d93bc?utm_source=readme-badge)
Or show the preview card:

[](https://statuslin.es/c/burn-rate-bars-2a7d93bc?utm_source=readme-badge)
More status lines
Opus 4.8 high ✦ │ ctx 22% │ app (main) │ PR #1287 ● │ $0.41 · 10m +128 -34
Session ● ● ● ● ● ● ● ● ○ ○ ○ 74% left Resets in 2h 6m
Weekly ● ● ● ● ● ● ● ● ● ● ○ 93% left Resets in 2d 0h
Fable ● ● ● ● ● ● ● ● ● ○ ○ 85% left Resets in 2d 0h
◐ Read:index.ts ✓ Read×1 ✓ Bash×1 ✓ Edit×1 ✓ Grep×1
◐ code-reviewer Review the change for regressions
Model: Opus 4.8 | Thinking: high | Context: [▰▰▱▱▱▱▱▱▱▱] 45k/200k (22%) | cwd: ~/app | ⎇ main | (+0,-0)
Cost: $0.41 | Block: 2hr 6m | Weekly: 7.0% | Session: 10m | In: 916.7 t/s | Out: 29.2 t/s | Cached: 2k | Session: [▰▱▱▱▱] 26.0%
Mem: 0.8G/1.0G | (*゚∀゚*) | Session ID: b8e1c0d2-4a6f-4e2a-9c1b-3f5d7a9e2c10
Opus 4.8 (200K) high | app (main)
██░░░░░░░░ 22% 200K | 5h 26% ⇣32% 2h 7d 7% ⇣63% 2d
📁 app 🌿 main 🧠 Opus
🧊 22% [==--------] 💰 $0.41 ($2.41/h)
⏳ 5h: 26% [==--------] 7d: 7% [----------]
庫 app · 枝 main · 脳 OPUS-4.8
文 ▓▓░░░░░░ 22% · 時 ▓▓░░┃░░░ 26% · 週 ▓░░░░┃░░ 7%
Related mods

A cockpit for Claude Code: plan bars and subagent strips, context, usage limits with reset countdowns and burn rates, spend, the model route and a pet. Six bar styles, three collapsed looks. CLI and Desktop.

One line above the prompt: context tokens with their weather, a bar per recent prompt, your 5-hour and 7-day limits against the time elapsed, the prompt cache with its time left, the session cost with the last prompt's share in dollars and in points of the 5-hour limit, the subagents running, and a one-click pill for the GOs Claude proposes. Labels in English, French or Russian. After Token Weather (Anthropic, Apache-2.0) and the ideas of usage-meter (HolyGrail) and prompt-cache-control (Daniel San).

Flightdeck: a live agent dashboard for Claude Code. Main model vitals, an on-call architect, every permission check, subagent cards and swimlanes, a turn receipt and a session log, all from real session events

An animated pixel-art companion above your prompt that reacts to your session and your typing, with a live context meter.
