Powerline statusline for Claude Code showing context window usage
npm install claude-contextlineA powerline-style statusline for Claude Code showing context window usage.
Add to your Claude Code settings (~/.claude/settings.json):
``json`
{
"statusLine": {
"type": "command",
"command": "npx claude-contextline"
}
}
- Directory - Shows current project/directory name
- Git - Shows branch name with dirty indicator (●)
- Model - Shows active Claude model
- Context - Shows context window usage percentage
```
myproject main ● ✱ Opus 4.5 ◫ 21%
- Normal (<80%): Sky blue text on dark background
- Warning (≥80%): White text on orange background
- Critical (≥100%): White text on red background
- Node.js 18+
- A terminal with powerline font support (for arrow glyphs)
Styling based on claude-limitline.
MIT