lukaskraic

Claude Status Line — Design skill for Claude Code

Design community

Beautiful status line for Claude Code with per-window token tracking, visual indicators, and intelligent fallbacks.

How to install Claude Status Line

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

What Claude Status Line does

Beautiful status line for Claude Code with per-window token tracking, visual indicators, and intelligent fallbacks.

Alternatives in Design

  • Canvas Design — Create beautiful visual art in PNG and PDF documents using design philosophy 94.1k ★
  • Poco Claw — A more beautiful and easier-to-use alternative to OpenClaw 1.3k ★
  • Claude Powerline — by Owloops - A vim-style powerline statusline for Claude Code with real-time usage tracking, git integration 940 ★

README

Claude Code Status Line with Token Counter

Status line for Claude Code that shows how much context you have left **before auto-compact fires** — not before the raw window ends.

Features

  • ✅ Auto-compact aware: measures usage against context_window_size - autocompact_buffer, which is the limit that actually triggers compaction
  • ✅ Exact token counts: reads context_window.total_input_tokens from the status line JSON, no transcript parsing or guesswork
  • ✅ Visual Indicators:
    • ✓ Safe (0-74% usage)
    • ⚠ Warning (75-89% usage)
    • ⚠⚠ Critical (90-100% usage, auto-compact imminent)
  • ✅ Session & week limits: 5-hour session usage with countdown to reset, and 7-day usage, in % (Pro/Max); ⚠ from 80%
  • ✅ Respects your auto-compact config: honours CLAUDE_CODE_AUTO_COMPACT_WINDOW, autoCompactWindow and autoCompactEnabled
  • ✅ Git Integration: shows current branch when in a git repository
  • ✅ Model Display: shows which Claude model you're using

Demo

Format: ~/directory (branch) [Model Name] ✓ XXk/YYYk (ZZ%) · Session S% (reset 1h23m) · Week W%

Examples:
~/Work/myproject (main) [Opus 5] ✓ 138k/967k (14%) · Session 14% (reset 2h05m) · Week 9%
~/Documents (develop) [Sonnet 5] ⚠ 130k/167k (78%) · Session ⚠86% (reset 42m) · Week 31%
~/.claude [Haiku 4.5] ⚠⚠ 150k/167k (90%)

The denominator is the effective window: 967k on a 1M model, 167k on a 200k model.

Session and Week come from the account rate limits, which Claude Code only sends for Pro/Max subscriptions (last example is an API-key user).

Quick Install

Prerequisites

  • Claude Code 2.1.6 or newer (the context_window field in the status line JSON)
  • jq installed:
    brew install jq  # macOS
    sudo apt install jq  # Linux

Installation

  1. Download and install the script:
    curl -o ~/.claude/statusline-with-tokens.sh \
      https://raw.githubusercontent.com/lukaskraic/claude-status-line/main/sta