Statusleisten-Baukasten für Claude Code
Zieh die Segmente an ihren Platz und kopier den Prompt, der die Statusleiste beschreibt. Das Skript schreibt Claude Code selbst — hier entsteht keines, also veraltet auch keines still vor sich hin.
Zusammenstellen
Ziehen zum Platzieren oder Umsortieren · klicken zum Hinzufügen oder Entfernen
Ohne Maus: mit Tab auf ein Segment, mit den Pfeiltasten verschieben, mit Backspace entfernen.
Ablage
5 ungenutzt · zum Hinzufügen anklicken
Stil
Prompt für Claude Code
7 Segmente · 3 Zeilen · 47 Zeilen Prompt
Write me a Claude Code status line script and install it.
LAYOUT — 3 rows, printed top to bottom.
Row 1 left: directory, git branch
right: clock (pad to $COLUMNS so it sits flush right)
Row 2 left: model · effort
right: context window (pad to $COLUMNS so it sits flush right)
Row 3 left: 5h rate limit
right: 7d rate limit (pad to $COLUMNS so it sits flush right)
Order within a row is exact — keep the segments in the order listed.
DATA — read from the stdin JSON. Every access must tolerate absence:
workspace.current_dir
git + workspace.git_worktree
no input — needs refreshInterval
model.display_name, effort.level
context_window.used_percentage
rate_limits.five_hour.used_percentage + .resets_at
rate_limits.seven_day.used_percentage + .resets_at
STYLE
Palette: Catppuccin Mocha, 24-bit ANSI (\x1b[38;2;R;G;Bm)
Segments: filled pills — background colour, base-coloured text, one space of
padding
Glyphs: Nerd Font icons, with an ASCII fallback if the font is missing
Bars: 10 cells, green under 70%, yellow 70–89, red at 90+
REQUIREMENTS
- Node, zero dependencies, reads the JSON from stdin.
- rate_limits is Pro/Max only and context_window.current_usage is null
before the first API call — degrade quietly, never crash.
- Read $COLUMNS for width; truncate the longest segment first.
- Give each rate-limit gauge a pace tick. resets_at is a unix
timestamp, so the window opened at resets_at − 18000 (5h) or
resets_at − 604800 (7d); put the tick at elapsed ÷ window
across the ten cells, drawn over that cell's own colour so
fill and empty still read through it. Usage behind the tick
means I am pacing under; ahead of it means I am burning the
window early.
- Work out where my Claude Code settings actually live before
writing anything — a project .claude/settings.json takes
precedence over ~/.claude/settings.json — then install the
script next to the one you pick and point statusLine at it by
absolute path.
- Set "refreshInterval": 60 in that same settings.json so the clock
ticks.Der Prompt bleibt in jeder Sprache englisch — damit kommt Claude Code am besten zurecht. Einfügen genügt: Claude Code schreibt das Skript, trägt es in der settings.json ein — und bleibt für „mach den Balken breiter“ ansprechbar.
Dieses Tool läuft komplett in deinem Browser. Was du eingibst, wird weder hochgeladen noch gespeichert noch protokolliert — Tab zu, weg ist es.
Alle Tools