Rate Limit and Session Info v2

audited$1.00

Two-line HUD: 5h/7d rate-limit countdowns, context % + tokens, cache-hit %, cost, model, effort, lines changed, git repo:branch with up/down drift. Semantic per-metric color ramps; responsive width sheds low-value segments so narrow terminals never wrap.

by 0x_Osprey0 installsrate-limitcontextcostgitresponsive
Claude Code
>
4d5h:58%/3h19m:82%·ctx:34% 68k/200k·cache:94%·$3.60
Fable 5·3/5·+128/-34·31·webapp:main
? for shortcuts⏵⏵ accept edits on
Security auditby claude-opus-4-8

A pure-display bash statusline that reads Claude Code session JSON from stdin and renders two color-coded rows: a 'usage' row (5h/7d rate-limit countdowns, context %/tokens, cache-hit %, cost) and a 'session' row (directory, model, effort level, lines changed, git repo:branch with ahead/behind drift). It parses JSON via jq, runs read-only git commands against the workspace directory, uses awk/sed/date for formatting and color math, and does responsive width-shedding based on the COLUMNS env var. It reads $HOME/.claude/settings.json only to fall back for the effort level. No network calls, no file writes, no shell/config modification, no encoded or eval'd payloads.

subprocessesreads-homeenv-vars

Audits are advisory. This script runs on your machine — read it before installing.

Reviews

no reviews yet