cli-harness-statusline

command module
v0.1.1 Latest Latest
Warning

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

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

README

CLI Harness Statusline

A minimal and functional statusline for Cursor (CLI) Agnet & Claude Code

Installation + usage

One-liner (auto-detects Go vs release)
curl -sL https://raw.githubusercontent.com/5c077m4n/cli-harness-statusline/refs/heads/master/install.sh | bash

[!IMPORTANT] Always inspect scripts before piping them into your shell. You can review install.sh first.

Configuration

The statusline is configured via ~/.config/cli-harness-statusline/config.json. All fields are optional — any omitted field falls back to its default.

{
  "segments": {
    "model": { "disable": false }, // Show current AI model name
    "folder": { "disable": false }, // Show working directory name
    "git": { "disable": false }, // Show git branch and dirty state
    "worktree": { "disable": false }, // Show git worktree name
    "pr": { "disable": false }, // Show PR number and review state
    "agent": { "disable": false }, // Show active agent name
    "session": { "disable": false }, // Show session name (truncated)
    "context": { "disable": false }, // Show context usage bar and percentage
    "cost": { "disable": false }, // Show total cost, duration, lines
    "token": { "disable": false }, // Show input/output token counts
    "cache": { "disable": false }, // Show cache status and hit ratio
    "vim": { "disable": false }, // Show vim INSERT/NORMAL mode
    "autorun": { "disable": false }, // Show "auto" when autorun enabled
    "max": { "disable": false }, // Show "max" when max mode enabled
    "fastMode": { "disable": false }, // Show "fast" when fast mode enabled
    "effort": { "disable": false }, // Show effort level
    "thinking": { "disable": false }, // Show "think" when thinking enabled
    "rateLimit": { "disable": false }, // Show rate limit usage percentages
    "exceeds": { "disable": false } // Show 200k+ context warning marker
  },
  "padding": { "top": 0, "bottom": 0 } // Number of blank lines above/below the statusline
}

Screenshot

screenshot

Benchmarks (using hyperfine)

See the latest results in CI run under the Benchmarks step summary.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package config setup
Package config setup
Package host detects the CLI that invoked the statusline.
Package host detects the CLI that invoked the statusline.
Package logs setup
Package logs setup
Package types used in this porject
Package types used in this porject

Jump to

Keyboard shortcuts

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