0003 — Claude Code status line #23
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What to build
Add a custom status line to the Claude Code provider that shows session context at a glance. The status line is a bash script that reads JSON from stdin on every Claude Code render event and prints a formatted, colored line.
Segments (left to right — identity → config → health):
main/masterSegments joined with
·. Missing or zero-value segments are omitted entirely.Files:
providers/claude-code/statusline-command.sh— the scriptproviders/claude-code/settings.json— updated withstatusLineconfigscripts/install.sh— updated to deploy the script and set executable bitAcceptance criteria
providers/claude-code/statusline-command.shexists and is executablesettings.jsonreferences the script viastatusLine.commandinstall.shdeploys the script to~/.claude/statusline-command.shwithchmod +x\033[0min output)·, not|tests/test-statusline.shpasses (11 tests)tests/test-install.shpasses (now covers statusline deployment)Cost threshold rationale
On a $20/month subscription,
total_cost_usdmeasures session weight rather than real spend. Thresholds ($1.50 amber / $3.00 red) are calibrated to signal a heavy session, not budget overrun. Adjust upward if amber rarely appears.Blocked by