
claude-statusline: a configurable status line for Claude Code
Claude Code lets you customize the status line at the bottom of your terminal. The default suggestion is a bash script, which works but gets clunky fast and difficult to maintain for more complex features. There are other tools out there that solve this (more on that below), but none written in Go. I think Go is the right fit here: fast, compiles to a single binary, and cross-platform out of the box, given my setup uses Mac/Linux/Windows. I’m a big fan of Starship , and it heavily inspired the design: presets, format strings, per-module config and so on. So I built claude-statusline : What it shows The default format displays five modules: format = "$directory | $git_branch | $model | $cost | $context" directory : current working directory, truncated to the last 3 segments git_branch : current branch, with an indicator when you’re inside a git worktree model : which Claude model is running cost : session cost in USD, color-coded by thresholds (yellow at $1, red at $5) context : context
Continue reading on Dev.to
Opens in a new tab


