Claude Code status line
OmarchymacOS
One line under the prompt of Claude Code that says, at a glance, what the session is costing and where it stands.
What each part says
🤖 Opus 5.5 | The model answering. |
|---|---|
🧩 2×sonnet 1×haiku | Subagents still running, counted per model. It only appears while there are some. |
💪 high | The effort level, when thinking is on. |
🌳 main ✓ | The branch, with ✓ when nothing is uncommitted and ✗ when something is. |
⌛ 42m | How long the session has run. |
📖 196k/1M ▰▰▱▱▱▱▱▱▱▱ | Tokens in the context against its size, with a bar in ten steps. |
🤑 $1.24 | What the session has cost so far, in dollars. |
➕ 320 ➖ 41 | Lines added and removed in the session. |
📅 7d 18% | How much of the 7-day limit is used. Only for subscribers, after the first answer. |
How it gets there
The setup points the statusLine setting of Claude Code, in ~/.claude/settings.json, at the script in the repository. Claude Code hands it the session as JSON on every refresh, and the script prints the line. It needs jq.
It runs on every refresh, so it asks git for the state without taking the index lock: it never collides with a git command you are running.