A Claude Code statusline that shows what matters while you work.
📁 my-project 🌿 main 🤖 Claude Sonnet 4.6 📊 23% context window 💰 5% usage ♫ Texas Sun – Khruangbin
| Element | Description |
|---|---|
| 📁 Directory | Current working directory name |
| 🌿 Git branch | Active branch (hidden outside git repos) |
| 🤖 Model | Active Claude model |
| 📊 Context window | Usage % — turns 🔴 at 80% |
| 💰 Rate limit | 5-hour session usage % |
| ♫ Now playing | Spotify track + artist (macOS only, when playing) |
SKILL.md and statusline.sh to a skill directory:
mkdir -p ~/.claude/skills/statusline
cp SKILL.md ~/.claude/skills/statusline/SKILL.md
cp statusline.sh ~/.claude/skills/statusline/statusline.sh
/statusline-setupcp statusline.sh ~/.claude/statusline.sh
chmod +x ~/.claude/statusline.sh
~/.claude/settings.json:
{
"statusLine": {
"type": "command",
"command": "sh ~/.claude/statusline.sh"
}
}
jq (for JSON parsing) — install via brew install jq or your package managergit (for branch display)The script runs every time Claude Code refreshes the statusline (on each interaction). There is no background daemon — it queries Spotify inline via AppleScript on each refresh.
Edit ~/.claude/statusline.sh directly. Each section is clearly commented and independent — remove or reorder sections as needed.
MIT