Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
statusline
command
Command statusline is a Claude Code statusLine command: it reads session JSON from stdin and prints a themed, Nerd-Font-powerline status line to stdout.
|
Command statusline is a Claude Code statusLine command: it reads session JSON from stdin and prints a themed, Nerd-Font-powerline status line to stdout. |
|
internal
|
|
|
cache
Package cache provides a small generic JSON file cache with atomic writes, used to avoid re-running slow subprocesses (git status) on every statusline refresh.
|
Package cache provides a small generic JSON file cache with atomic writes, used to avoid re-running slow subprocesses (git status) on every statusline refresh. |
|
config
Package config loads the statusline's TOML configuration: a built-in default merged with an optional user file, discovered by a fixed precedence and never failing hard — a missing or malformed config always degrades to the built-in default plus a warning.
|
Package config loads the statusline's TOML configuration: a built-in default merged with an optional user file, discovered by a fixed precedence and never failing hard — a missing or malformed config always degrades to the built-in default plus a warning. |
|
demo
Package demo provides canned statusline scenarios — synthetic payloads and git status, not real Claude Code JSON — so the demo command can render representative output without any external input.
|
Package demo provides canned statusline scenarios — synthetic payloads and git status, not real Claude Code JSON — so the demo command can render representative output without any external input. |
|
fallback
Package fallback provides the last-resort degraded statusline used when normal rendering can't proceed at all (stdin parse failure, an unrecovered panic that reached main, or an empty render result), so the binary always prints something rather than leaving the status bar blank.
|
Package fallback provides the last-resort degraded statusline used when normal rendering can't proceed at all (stdin parse failure, an unrecovered panic that reached main, or an empty render result), so the binary always prints something rather than leaving the status bar blank. |
|
gitstatus
Package gitstatus collects git branch and working-tree status for the git segment, caching results per session so repeated statusline refreshes don't re-run git on every trigger.
|
Package gitstatus collects git branch and working-tree status for the git segment, caching results per session so repeated statusline refreshes don't re-run git on every trigger. |
|
input
Package input defines the JSON schema Claude Code sends to a statusLine command on stdin and parses it defensively, tolerating absent, null, and unknown fields so the binary never fails on partial or future data.
|
Package input defines the JSON schema Claude Code sends to a statusLine command on stdin and parses it defensively, tolerating absent, null, and unknown fields so the binary never fails on partial or future data. |
|
render
Package render composes segment output into the final statusline text: it joins each line's segments with powerline cap/connector glyphs (or a plain divider between pill-less badges), drops lowest-priority segments under width pressure, and never lets one segment's panic take down the whole line.
|
Package render composes segment output into the final statusline text: it joins each line's segments with powerline cap/connector glyphs (or a plain divider between pill-less badges), drops lowest-priority segments under width pressure, and never lets one segment's panic take down the whole line. |
|
segment
Package segment defines the Segment interface and every concrete statusline segment (model, directory, git, context window, cost, rate limits, and low-priority bonus badges), each rendering itself into style.Chunks from a RenderContext.
|
Package segment defines the Segment interface and every concrete statusline segment (model, directory, git, context window, cost, rate limits, and low-priority bonus badges), each rendering itself into style.Chunks from a RenderContext. |
|
style
Package style provides truecolor ANSI painting, OSC 8 hyperlinks, and the escape-sequence stripping used both for NO_COLOR passthrough and for rendering-independent golden test comparisons.
|
Package style provides truecolor ANSI painting, OSC 8 hyperlinks, and the escape-sequence stripping used both for NO_COLOR passthrough and for rendering-independent golden test comparisons. |
|
theme
Package theme resolves the five built-in named color palettes (Gruvbox, Catppuccin Mocha, Tokyo Night, Nord, Dracula) that segments render against, plus the shared Nerd Font icon table with plain-text fallbacks.
|
Package theme resolves the five built-in named color palettes (Gruvbox, Catppuccin Mocha, Tokyo Night, Nord, Dracula) that segments render against, plus the shared Nerd Font icon table with plain-text fallbacks. |
Click to show internal directories.
Click to hide internal directories.