Documentation
¶
Overview ¶
Command claude-statusline prints a configurable status line for Claude Code.
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
bar
Package bar draws a usage bar with a pace marker.
|
Package bar draws a usage bar with a pace marker. |
|
cli
Package cli picks the claude-statusline command from its arguments and runs it.
|
Package cli picks the claude-statusline command from its arguments and runs it. |
|
config
Package config layers the user's settings over the defaults embedded in the binary.
|
Package config layers the user's settings over the defaults embedded in the binary. |
|
featuretest
Package featuretest runs the Gherkin feature files under features/ against the status line.
|
Package featuretest runs the Gherkin feature files under features/ against the status line. |
|
featuretest/style
Package style reads and writes the style row format the feature files use to describe colored terminal output.
|
Package style reads and writes the style row format the feature files use to describe colored terminal output. |
|
gitbranch
Package gitbranch finds the current branch, and a linked worktree's main repository, by reading .git files, without running git.
|
Package gitbranch finds the current branch, and a linked worktree's main repository, by reading .git files, without running git. |
|
hook
Package hook runs the user's own segment scripts, with a timeout and a per-session cache.
|
Package hook runs the user's own segment scripts, with a timeout and a per-session cache. |
|
icons
Package icons holds the icon set the user chose.
|
Package icons holds the icon set the user chose. |
|
layout
Package layout arranges rendered segments into one row, or wraps them into several when the terminal is too narrow.
|
Package layout arranges rendered segments into one row, or wraps them into several when the terminal is too narrow. |
|
payload
Package payload decodes the session JSON that Claude Code writes to stdin.
|
Package payload decodes the session JSON that Claude Code writes to stdin. |
|
ratebars
Package ratebars prints the 5h and 7d usage bars as JSON, painted in the user's theme, for tools that draw them in their own layout.
|
Package ratebars prints the 5h and 7d usage bars as JSON, painted in the user's theme, for tools that draw them in their own layout. |
|
ratecache
Package ratecache shares rate-limit readings between sessions.
|
Package ratecache shares rate-limit readings between sessions. |
|
render
Package render lays out the configured segments and the user's hooks into the printed line.
|
Package render lays out the configured segments and the user's hooks into the printed line. |
|
setup
Package setup wires the status line into Claude Code's settings.json, and takes it out again.
|
Package setup wires the status line into Claude Code's settings.json, and takes it out again. |
|
snapshot
Package snapshot saves the latest session payload for other tools to read.
|
Package snapshot saves the latest session payload for other tools to read. |
|
statusline
Package statusline turns the session payload and the environment into the printed line.
|
Package statusline turns the session payload and the environment into the printed line. |
|
subagent
Package subagent renders the rows of Claude Code's agent panel.
|
Package subagent renders the rows of Claude Code's agent panel. |
|
theme
Package theme defines the colors and glyphs a status line is drawn with.
|
Package theme defines the colors and glyphs a status line is drawn with. |
|
transcript
Package transcript reads the few facts the status line takes from a session transcript.
|
Package transcript reads the few facts the status line takes from a session transcript. |
|
Package segments is the composition root of the status line: the one list of plugins it can show, and the one place that connects them to the rest of the program.
|
Package segments is the composition root of the status line: the one list of plugins it can show, and the one place that connects them to the rest of the program. |
|
cache
Package cache provides the cache segment: how much of the latest request's input came from the prompt cache, or that the cache has expired since.
|
Package cache provides the cache segment: how much of the latest request's input came from the prompt cache, or that the cache has expired since. |
|
cost
Package cost provides the cost segment: what the session has cost so far, in US dollars.
|
Package cost provides the cost segment: what the session has cost so far, in US dollars. |
|
ctx
Package ctx provides the ctx segment: context-window usage as a bar.
|
Package ctx provides the ctx segment: context-window usage as a bar. |
|
diagnostics
Package diagnostics provides the segments drawn from the session transcript: boot, skills, skills_stripped, agent_skills and mem.
|
Package diagnostics provides the segments drawn from the session transcript: boot, skills, skills_stripped, agent_skills and mem. |
|
model
Package model provides the model segment: the model's name, and its effort level.
|
Package model provides the model segment: the model's name, and its effort level. |
|
path
Package path provides the path segment: the working directory, shortened, with the git branch, and a worktree as its main repository.
|
Package path provides the path segment: the working directory, shortened, with the git branch, and a worktree as its main repository. |
|
rate
Package rate provides the rate5h and rate7d segments: usage of the 5 hour and 7 day windows as a bar with a pace marker.
|
Package rate provides the rate5h and rate7d segments: usage of the 5 hour and 7 day windows as a bar with a pace marker. |
|
tokens
Package tokens provides the tokens segment: session token totals.
|
Package tokens provides the tokens segment: session token totals. |
|
Package themes embeds the built-in theme files that sit beside it.
|
Package themes embeds the built-in theme files that sit beside it. |
|
tools
|
|
|
screenshots
command
Command screenshots turns the status line's terminal output into SVG images for the documentation.
|
Command screenshots turns the status line's terminal output into SVG images for the documentation. |
Click to show internal directories.
Click to hide internal directories.