# cc-minimal-statusline

A minimal status line for [Claude Code](https://github.com/anthropics/claude-code).

![Preview](preview.png)

## Features

- Version with update indicator (↑)
- Model name + effort level (when the model supports it)
- Ultracode indicator — a violet `ultra` replaces `xhigh` while ultracode is on
  - Claude Code reports ultracode as plain `xhigh` in the status line JSON, so this is read
    from the session transcript. It updates as soon as you run `/effort ultracode`.
- Smart path truncation (`~code/project/…/current`)
- Git branch + worktree indicator
- File & line changes (includes untracked files, unlike Claude Code's footer)
- Context usage with gradient bar + autocompact indicator
- Responsive: segments fold onto a second line as the terminal narrows

## Install

Requires a [Nerd Font](https://www.nerdfonts.com/). To install Meslo:

```bash
brew install --cask font-meslo-lg-nerd-font
```

Then select "MesloLGM Nerd Font" in your terminal settings.

```bash
npm install -g cc-minimal-statusline
```

That's it! The install automatically configures Claude Code. Restart Claude Code to see the new status line.

## Colors

Edit these variables in the script:

| Element | Variable | Default |
|---------|----------|---------|
| Version / dim text | `C_DIM` | Gray (239) |
| Model | `C_ORANGE` | #E6714E |
| Effort level | `C_EFFORT` | Gray (245) |
| Ultracode | `C_ULTRA` | rgb(175,135,255) |
| Directory | `C_BLUE` | Blue (75) |
| Worktree | `C_CYAN` | Cyan (80) |
| Branch | `C_PURPLE` | Purple (141) |
| +lines | `C_GREEN` | Green (108) |
| -lines | `C_RED` | Red (167) |

## License

MIT
