claude-statusline

command module
v0.0.0-...-32b48c7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2026 License: MIT Imports: 9 Imported by: 0

README

claude-statusline

A custom status line binary for Claude Code, written in Go. Reads JSON from stdin (provided by Claude Code's status hook) and outputs a formatted, ANSI-colored status line.

● Opus 4 ➜ statusline git:(master)                               6k/200k

What it shows:

  • Gitea service status (green/red dot)
  • Model name
  • Current directory
  • Git branch and dirty indicator
  • Context window usage

Install

GOBIN=~/.claude go install gitea.kajkowalski.nl/kjanat/claude-statusline@latest

Or build from source:

git clone https://gitea.kajkowalski.nl/kjanat/claude-statusline.git
go build -C claude-statusline -ldflags="-s -w" -o ~/.claude/claude-statusline .

Configure Claude Code

Add to your ~/.claude/settings.json:

{
  "statusLine": {
    "type": "command",
    "command": "~/.claude/claude-statusline",
    "padding": 0
  }
}

Development

Requires Go 1.25+.

# Build
task build

# Run tests
task test

# Run tests with coverage
task test:cover

# Lint
task lint

# Run with test fixture
task run

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL