Skip to content

thomaspeklak/cc-statusline

Repository files navigation

cc-statusline

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.

example

Segments

  1. Model — Shortened model name (Opus/Sonnet/Haiku)
  2. Path — Working directory, abbreviated (~/code/foo/bar/baz -> ~/c/f/bar/baz)
  3. Usage % — Context window usage
  4. Input tokens — Total input tokens (with cache)
  5. Output tokens — Total output tokens
  6. Time left — Time until rate limit window resets

Install

cargo build --release
cp target/release/cc-statusline ~/.local/bin/

Or use the install script:

./install.sh

Configure

Add to your .claude/settings.json:

{
  "statusLine": {
    "type": "command",
    "command": "~/.local/bin/cc-statusline",
    "padding": 0
  }
}

Customize colors

Edit src/colors.rs and rebuild. All colors are compile-time constants — no runtime config, no overhead.

Development

# Build and test with example payload
cat example-payload.json | cargo run --release

Requirements

  • Rust 1.70+
  • Claude Code CLI
  • A terminal with 24-bit color and a powerline font

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors