Skip to content

Add claude-code-statusline to Usage & Observability#193

Open
ZWhiteTrace wants to merge 1 commit intojqueryscript:mainfrom
ZWhiteTrace:add-claude-code-statusline
Open

Add claude-code-statusline to Usage & Observability#193
ZWhiteTrace wants to merge 1 commit intojqueryscript:mainfrom
ZWhiteTrace:add-claude-code-statusline

Conversation

@ZWhiteTrace
Copy link
Copy Markdown

Resource

claude-code-statusline — Pure-bash Claude Code statusline with single-pass jq parsing.

Why it fits Usage & Observability

It's a statusline for Claude Code showing model, context window, rate limits, token usage, cache hit rate, API wait %, session cost, git state, and version — the same category as ccstatusline / ClaudeCodeStatusLine / pyccsl already listed.

Differentiation

  • Performance: single-pass jq extraction via @sh + eval, ~20x faster (~25ms vs 400ms–1s) than the common pattern of spawning jq 20+ times
  • Reliability: graceful fallback when jq fails, no broken UI
  • Debuggability: STATUSLINE_DEBUG=1 mode dumps expanded variable assignments to stderr
  • Zero runtime dependencies beyond jq, bc, git — single-file bash script, nothing to install
  • Works with 10+ concurrent Claude Code sessions via lockfile-based git stats cache

Adapts automatically between cloud Claude (5h/7d rate limits) and local Ollama (tok/s inference speed).

Proposed entry

Added at the end of the 📊 Usage & Observability section (alphabetical within 0⭐ tier):

```markdown

  • claude-code-statusline (0 ⭐) - Pure-bash Claude Code statusline with single-pass jq parsing (~20x faster than common implementations). 4-line layout, graceful fallback, and built-in debug mode. Zero runtime deps beyond jq/bc/git.
    ```

License

MIT

Pure-bash Claude Code statusline focusing on performance and
reliability — single-pass jq + eval parsing (~20x faster than
common implementations), graceful fallback when jq errors,
and a STATUSLINE_DEBUG mode for troubleshooting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant