A Linux-first Claude Code Status Line Powered by Python
Cover image generated by Nano Banana 2 What This Package Provides I’ve released a Python package on GitHub (ceshine/claude-statusline-for-linux) that provides a two-line status line layout for the Claude Code CLI. The package is highly extensible and customizable, so feel free to fork the repository and adapt it to your own preferences! The package currently provides the following information: Line 1: Session Overview Model name: the active Claude model (e.g., “Sonnet 4.6”) Context window usage: a 16-segment visual bar plus a percentage, color-coded green/yellow/red as usage grows; switches to a prominent warning at ≥90% Session cost: cumulative USD cost for the current Claude Code session Per-call token breakdown: token counts from the latest API call, broken down into four categories: Input tokens (i) Output tokens (o) Cache creation tokens (cw) Cache read tokens (cr) Line 2: Workspace & Limits Working directory: the base name of the current project directory Git status: branch name plus counts of staged (+), unstaged (~), and untracked (?) files; hidden when not in a Git repository 5-hour rate limit usage: percentage of the 5-hour API quota consumed, with a countdown to reset 7-day rate limit usage: percentage of the 7-day API quota consumed, with a countdown to reset Vim mode: current Vim keybinding mode (NORMAL, INSERT, etc.); hidden when vim mode is inactive (Note: According to Claude Code’s documentation, the rate limit information is only available after the first API call.) ...