Claude Code status line

claudia-statusline

A Rust status line with compaction detection and SQLite-backed session tracking across consoles.

37 stars 6 forksStatus lines Source

Install

From source
git clone https://github.com/hagan/claudia-statusline.git

From the README

Claudia Statusline

*Enhanced statusline for Claude Code - track costs, git status, and context usage in real-time*

A high-performance statusline for Claude Code that shows you workspace info, git status, model usage, session costs, and more.

Example output:

Quick Install

That's it! The installer downloads the right binary, installs it, and configures Claude Code automatically.

Need help? See Installation Guide for all platforms and options.

What You Get

- Current directory with ~ shorthand
- Git branch and changes (+2 added, ~1 modified, ?3 untracked)
- Context usage with progress bar (45% [=====>----])
- Real-time compaction detection (experimental) - instant feedback via hooks (~600x faster)
  - Normal: 79% [========>-] ⚠ (warning when approaching limit)
  - In Progress: Compacting... ⠋ (hook-based, -----] ✓ (checkmark after successful compact)
- Claude model (O4.5/S4.5/H4.5 - consistent version display)
- Session duration (1h 23m)
- Cost tracking ($3.50 session, $2.54/hour burn rate)
- Lines changed (+150 added, -42 removed)

Automatic features:
- Persistent cost tracking across sessions
- Multi-console safe (run multiple Claude instances)
- 11 embedded themes (dark, light, monokai, solarized, high-contrast, gruvbox, nord, dracula, one-dark, tokyo-night, catppuccin)
- 5 layout presets (default, compact, detailed, minimal, power) with custom template support
- 4 model formats (abbreviation: O4.5, full: Claude Opus 4.5, name: Opus, version: 4.5)
- SQLite database for reliability
- Token rate metrics (opt-in) - display tokens/second with cache efficiency tracking
- Hook-based compaction detection (experimental, opt-in) - instant real-time feedback via Claude Code hooks
- Adaptive context learning (experimental, opt-in) - learns actual context limits by…
Read the full README on GitHub

How status lines work

  • A status line is a command Claude Code runs to draw the bar under the prompt. It gets the session as JSON on stdin (model, folder, cost, context) and prints one or more lines.
  • Point the statusLine setting in ~/.claude/settings.json at it: { "statusLine": { "type": "command", "command": "<the command from the README>" } }.
  • Or run /statusline inside Claude Code and describe what you want.
Claude Code docs

Details

Language
Rust
Last updated
1 November 2026
Topics
claude-codeclirustsqlitestatusline

FAQ

What is claudia-statusline?

A Rust status line with compaction detection and SQLite-backed session tracking across consoles. It is a status line for Claude Code, from hagan/claudia-statusline on GitHub.

How do I install claudia-statusline?

Clone hagan/claudia-statusline from GitHub and follow the setup steps in its README.

Is claudia-statusline popular?

hagan/claudia-statusline has 37 GitHub stars and 6 forks, and is included in 1 curated Claude Code list. It was last updated on 1 November 2026.

More status lines

Browse the most popular Claude Code mods, all status lines, or the skills and MCP server directories.