← BACK
Claude Code status line
A minimal bash script that shows model, context usage, lines changed, and rate limits.
sonnet-4.6 │ ctx ████░░░░░░ 42% │ +38 -12 │ 5h:31% (↺ 2h14m) │ 7d:67%
ctx 42%- context window fill. Turns yellow at 60%, red at 85% (time to/compact)+38 -12- lines added/removed this session (resets on new session, not on/clear)5h:31% (↺ 2h14m)- 5-hour rate limit usage and time left to reset7d:67%- weekly rate limit
Install
Requires jq.
brew install jqDownload the script:
curl -o ~/.claude/statusline.sh https://gist.github.com/rmyhal/4afe2c1b8fb013167199d8f87c7f89f1/raw && chmod +x ~/.claude/statusline.shAdd to ~/.claude/settings.json:
{
"statusLine": {
"type": "command",
"command": "~/.claude/statusline.sh"
}
}Source and full script on GitHub Gist.