A Rust powerline-style statusline for Claude Code.
This is my personal config. It works for my setup and I'm sharing it as a reference. PRs will not be accepted — fork it and make it your own.
- Model — Shortened model name (Opus/Sonnet/Haiku)
- Path — Working directory, abbreviated (
~/code/foo/bar/baz->~/c/f/bar/baz) - Usage % — Context window usage
- Input tokens — Total input tokens (with cache)
- Output tokens — Total output tokens
- Time left — Time until rate limit window resets
cargo build --release
cp target/release/cc-statusline ~/.local/bin/Or use the install script:
./install.shAdd to your .claude/settings.json:
{
"statusLine": {
"type": "command",
"command": "~/.local/bin/cc-statusline",
"padding": 0
}
}Edit src/colors.rs and rebuild. All colors are compile-time constants — no
runtime config, no overhead.
# Build and test with example payload
cat example-payload.json | cargo run --release- Rust 1.70+
- Claude Code CLI
- A terminal with 24-bit color and a powerline font
MIT
