Claude Code status line
Headroom
Know your headroom. Context window usage bar for Claude Code.
Install
git clone https://github.com/henchmarketing-rgb/headroom.gitFrom the README
headroom You're deep in a session. Claude starts dropping earlier context. Compaction fires mid-turn and takes work in progress with it. You had no warning. Claude Code gives you nothing on context usage. headroom fixes that. A live bar in your statusline, updated after every tool call. Now you can see the window filling up. Pace the session, decide when to /compact, or start fresh before things go sideways. Reads your actual session JSONL, not an estimate. Tracks the model you're running (not the env var), so it stays accurate when you switch mid-session. Per-directory, so multiple Claude Code windows don't bleed into each other. Install Restart Claude Code to activate. Requires: Python 3, Claude Code How it works A PostToolUse hook fires after every Bash, Agent, or Write call. It finds the most recently modified session JSONL in your project directory, reads the last token usage entry, and writes it to ~/.claude/. The statusline picks that up and renders the bar. The model is read from the JSONL, not the ANTHROPIC_MODEL env var, so it tracks correctly when you run /model mid-session. Sonnet 4.6 and the 1M context window: standard Sonnet 4.6 runs at 200k context. Only max effort mode (/model then select max) unlocks the full 1M. Claude Code logs that as claude-sonnet-4-6[1m] in the session JSONL and headroom adjusts the ceiling automatically. High thinking still logs as claude-sonnet-4-6 and stays at 200k. Manual install Or copy the files yourself: Then add to ~/.claude/settings.json: Uninstall Remove the statusline and hook entries from ~/.claude/settings.json.
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.
Details
- Repository
- henchmarketing-rgb/headroom
- Type
- Status lines
- Website
- henchmarketing.online
- Language
- Shell
- License
- MIT
- Last updated
- 24 April 2026
- Topics
- claudeclaude-aiclaude-codecontext-windowdeveloper-toolsstatusline
FAQ
What is Headroom?
Know your headroom. Context window usage bar for Claude Code. It is a status line for Claude Code, from henchmarketing-rgb/headroom on GitHub.
How do I install Headroom?
Clone henchmarketing-rgb/headroom from GitHub and follow the setup steps in its README.
Is Headroom popular?
henchmarketing-rgb/headroom has 70 GitHub stars and 4 forks. It was last updated on 24 April 2026.
More status lines
Claude Code Status Line
65shanraisshan/claude-code-status-line
A custom status line script for Claude Code that displays context window usage, git status, and model information.
claude-usage-line
40canack/claude-usage-line
A status line with rate limits, git branch, cost and diff stats.
vscode-claude-status
36long-910/vscode-claude-status
Shows Claude Code token usage and cost in the VS Code status bar.
Ccpet
64terryso/ccpet
A virtual pet for your Claude Code status line.
cc-costline
28Ventuss-OvO/cc-costline
A status line that shows your 7-day and 30-day spend at a glance.
which-claude-code
33jbarbier/which-claude-code
Adds auto-generated session titles and a distinct colour per session to the status line.
Browse the most popular Claude Code mods, all status lines, or the skills and MCP server directories.