Documentation
¶
Overview ¶
Package statusline is the `caprock statusline` command's logic: Claude Code invokes it (statusLine.command in settings.json) on every assistant message, piping a JSON status object on stdin. It prints a compact one-line status to stdout and, best-effort, forwards the rate-limit windows to the local daemon so the Cost screen can show them. It never fails: the status line is printed before any network call, and every error path is silent with exit 0. See .ai/03-contracts.md § Statusline.
Index ¶
Constants ¶
const (
// DebugEnv, when set, appends diagnostics to <data_dir>/hook-debug.log.
DebugEnv = "CAPROCK_HOOK_DEBUG"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.