A minimal Claude Code statusline showing branch, diff, model, context, throughput, and rate limit usage.
- Essential – relevant indicators shown without extra labels, dividers, or empty states
- Quiet – supporting the main action, not competing with it
- Terminal-first – plain text symbols, no emojis
| Branch | Current git branch | |
| Diff | Uncommitted additions and deletions | |
| Model | Active Claude model | |
| Context | Usage bar and percentage, scaled so 100% matches the actual autocompact point | Grey <35%, yellow-green 35%, yellow 50%, orange 75%, red 90% |
| Throughput | Tokens per minute | Grey <1k, yellow 1k, orange 5k, red 10k, violet 20k |
| Rate limits | 5-hour and 7-day usage with countdown. Shown on first use, when on pace to hit the limit, and at or above 75%. Hidden means comfortable pace | Grey <50%, yellow 50%, orange 75%, red 90% |
Indicators without data are hidden rather than shown empty.
- Download the script:
curl -o ~/.claude/statusline.sh https://raw.githubusercontent.com/levibe/claude-code-statusline/main/statusline.sh && chmod +x ~/.claude/statusline.shOr clone and symlink: git clone https://github.com/levibe/claude-code-statusline && ln -s claude-code-statusline/statusline.sh ~/.claude/statusline.sh
- Add to your
~/.claude/settings.json:
{
"statusLine": {
"type": "command",
"command": "~/.claude/statusline.sh"
}
}- Restart Claude Code.
jq– JSON parsinggit– branch and diff information
brew install jq git or apt install jq git
- Tracks text diffs, untracked files, and binary file changes (binary files count as +1 added or -1 removed)
- Caps line counting at 10k to avoid slowdowns on large diffs
- TPM uses a 5-minute sliding window and includes subagent token usage
- Shows short SHA on detached HEAD; falls back to symbolic ref in empty repos
- Uses
--no-optional-lockson all git calls to prevent lock contention - Fixes model name bleeding across sessions (CC bug)
- Validates model names to filter garbled input from Claude Code
Run the test suite:
brew install bats-core # https://bats-core.readthedocs.io/en/stable/installation.html
bats test/