A claude code statusline as a static binary because npx is scary.
Output inspired by https://github.com/strayer/dotfiles
Download the latest release from the releases page.
Verify the checksum and attestation (gh attestation verify) if you want to be extra sure.
Make it executable and move it to your PATH.
Add it to your ClaudeCode configuration (~/.claude/settings.json):
{
"statusLine": {
"type": "command",
"command": "/path/to/goccstatusline",
"padding": 2
}
}a crude comparison of the execution time of the bash script, ccstatusline and the go binary on the same input.
https://github.com/strayer/dotfiles
time ./executable_statusline.sh < test/full.json
[Opus] | +156/-23
[■■■■■■■■■■■■■□□□□□□□□□□□□□□□□□] 45% | 110k free | 1h1m | $1.23
________________________________________________________
Executed in 22.14 millis fish external
usr time 12.27 millis 0.00 micros 12.27 millis
sys time 12.98 millis 429.00 micros 12.55 millistime npx -y ccstatusline@latest < test/full.json
Model: Claude Opus | Ctx: 15.5k | ⎇ no git | (no git)
________________________________________________________
Executed in 388.62 millis fish external
usr time 314.65 millis 465.00 micros 314.19 millis
sys time 69.75 millis 94.00 micros 69.66 millistime ./goccstatusline < test/full.json
[Opus] | +156/-23
[■■■■■■■■■■■■■□□□□□□□□□□□□□□□□□] 45% | 110k free | 1h1m | $1.23
________________________________________________________
Executed in 2.85 millis fish external
usr time 1.73 millis 411.00 micros 1.32 millis
sys time 1.31 millis 0.00 micros 1.31 millis