Skip to content

About

A Powerline-style status line for Claude Code, written as a single jq-jit program

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

claude-statusline

A Powerline-style status line and subagent panel renderer for Claude Code, written as single jq-jit programs.

Main status line

catalog

Segment Name Description
Model model (effort) Claude model name and context window size, plus the reasoning effort level (low … max) when the model supports it
Directory dir Current working directory (~/src/github.com/ and ~/src/gitlab.com/ are shortened with icons)
Git branch git Current branch (hidden when not in a git repo)
Profile profile Basename of $CLAUDE_CONFIG_DIR (hidden when unset or ~/.claude)
Meters meters (context, 5h, 7d) Context window usage plus 5-hour / 7-day rate limits in one pill, each part colored green → yellow → red independently; rate-limit reset time appears when that window is at 50%+ (rate-limit parts hidden when no data)

Hiding segments

Set CLAUDE_STATUSLINE_HIDE to a comma-separated list of names from the table above to hide segments. meters hides the whole meters pill; context, 5h, and 7d hide individual parts of it. Names are case-insensitive and unknown names are ignored.

{
  "statusLine": {
    "type": "command",
    "command": "CLAUDE_STATUSLINE_HIDE=profile,7d claude-statusline",
    "padding": 0
  }
}

Subagent status line

Renders each task row in Claude Code's subagent panel.

catalog-subagent

Each row is {icon} {label} [· {description}] · {tokens} [· {elapsed}].

Field Behaviour
Status icon … running (green) · ✓ completed (cyan) · ✗ failed (red) · ○ other (gray)
Label Falls back through label → description → id
Description Only shown when it differs from the label
Tokens 234 (raw) / 61.4k / 234k / 1.2M
Elapsed M:SS or H:MM:SS; omitted when startTime is missing

Requirements

  • macOS (Linux is not currently supported)
  • jq-jit — a jq interpreter with exec/execv builtins
  • Nerd Font — for Powerline and icon glyphs in the main status line
  • Claude Code

Installation

Homebrew (recommended)

brew install m5d215/tap/claude-statusline

This pulls in jq-jit automatically and installs both claude-statusline and claude-subagent-statusline on your PATH.

Then add to your ~/.claude/settings.json:

{
  "statusLine": {
    "type": "command",
    "command": "claude-statusline",
    "padding": 0
  },
  "subagentStatusLine": {
    "type": "command",
    "command": "claude-subagent-statusline"
  }
}

Manual

1. Install jq-jit (via Homebrew, cargo install, or a release binary).

2. Download the scripts

curl -o ~/.claude/statusline.sh https://raw.githubusercontent.com/m5d215/claude-statusline/main/statusline.sh
curl -o ~/.claude/subagent-statusline.sh https://raw.githubusercontent.com/m5d215/claude-statusline/main/subagent-statusline.sh
chmod +x ~/.claude/statusline.sh ~/.claude/subagent-statusline.sh

3. Configure Claude Code

Add to your ~/.claude/settings.json:

{
  "statusLine": {
    "type": "command",
    "command": "~/.claude/statusline.sh",
    "padding": 0
  },
  "subagentStatusLine": {
    "type": "command",
    "command": "~/.claude/subagent-statusline.sh"
  }
}

License

MIT

About

A Powerline-style status line for Claude Code, written as a single jq-jit program

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Used by

Contributors

Languages