← Back to Leaderboard
Csirmalloc

sirmalloc/ccstatusline

A local CLI formatter for Claude Code session metrics, Git status, and Powerline layouts

View on GitHub ↗
Engineering Health (Methodology)
A+ · 93/100
Maintenance Activity
● Updated 4d ago
Latest Release
v2.2.34
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption18/25
Release Cadence20/20
License Clarity20/20
CLI1 README badge views (30d)
Total Stars
★ 13,730
24h Growth
+3
7d Growth
+33
Forks
620

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

sirmalloc/ccstatusline Star History (2025-08-07 - 2026-12-04) ALL-TIME STAR HISTORY (2025-08 – 2026-12) +13.7k in 484d · avg +28/day 14.5k 7.3k 0 2025-08-07: ★ 12025-09-06: ★ 9522025-10-11: ★ 1,4422025-11-15: ★ 1,8432025-12-20: ★ 2,3212026-01-24: ★ 3,0442026-02-28: ★ 4,1042026-04-04: ★ 6,5272026-05-09: ★ 8,7622026-06-13: ★ 10,5082026-07-18: ★ 11,6752026-08-22: ★ 12,3872026-09-26: ★ 12,9392026-10-31: ★ 13,4242026-12-04: ★ 13,730 ★ 13.7k 2025-08 2026-04 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

ccstatusline is a TypeScript CLI extension for Claude Code's status line, not an MCP server or a model runtime. The npm package exposes the ccstatusline executable for two paths: an interactive terminal editor to configure and preview layouts, and a formatter invoked by Claude Code through its status-line settings. The piped render path skips loading the TUI, keeping editing code off the recurring refresh path.

Widgets compose multiple display lines with per-widget styling and standard or Powerline layouts. Their inputs span Claude Code session data, local Git/JJ state, and, for selected widgets, remote usage or provider data. PR and CI widgets render from a versioned disk cache and refresh stale data in the background, so a slow gh call need not hold up a repaint.

Key Capabilities & Differentiators

The terminal editor supports multi-line layouts, live widget previews, per-widget colors, and Powerline flex separators for right alignment. Manual separators look past widgets that render empty, and branch and directory labels can be truncated without losing hyperlink targets. Layouts can be exported as JSON, and imports can be previewed and merged or used to replace settings before saving.

Claude-specific widgets cover model identity, token and context metrics, five-hour block usage, weekly usage for Sonnet, Opus, and Fable, and prompt-cache state. Context widgets use compact_boundary.postTokens immediately after /compact. Git widgets cover GitHub pull requests and GitLab merge requests through gh or glab as appropriate; the GitHub CI widget summarizes failing, pending, and successful checks for the current branch's pull request.

Trade-offs & Limitations

Compared with a short custom status-line command, ccstatusline takes on the work of composing widgets, handling terminal width and Unicode, and managing caches for remote data. That matters when you need both Claude session metrics and repository status. If you only show the current directory and branch, a minimal script has fewer dependencies and fewer settings to audit. A generic shell prompt can cover those local fields but does not, on its own, receive Claude Code's status-line payload.

Runner startup varies by platform and cache state; pinning a global install avoids launching through the package runner on every refresh. Cached PR and CI values can lag remote state, and usage forecasts are estimates rather than quota guarantees. Layouts that include shell-command widgets are executable configuration: review imported commands before accepting them, even though the importer previews them and defaults to Cancel.

Hardware & Deployment Guide

Start the TUI with npx -y ccstatusline@latest or bunx -y ccstatusline@latest, then install the status-line command into Claude Code from the TUI. The package declares Node.js 14 or newer for the Node path. The pinned global option installs the current version and configures Claude Code to invoke ccstatusline directly rather than follow @latest. Formatter settings live in ~/.config/ccstatusline/settings.json; set CLAUDE_CONFIG_DIR for a nonstandard Claude Code settings directory.

Local widgets do not need a hosted ccstatusline service or GPU. Remote widgets depend on access to the relevant endpoints or provider CLI. Usage, Claude Status, and update-check requests honor HTTPS_PROXY and NO_PROXY or no_proxy exclusions. The TUI can set statusLine.refreshInterval on supported Claude Code versions (2.1.97 or newer). v2.2.32 added confirmation for newly imported shell commands and protected unreadable Claude settings from overwrite; v2.2.34 expanded cache-miss reporting and weekly limit forecasts.

Execution: One TypeScript CLI serves as both the interactive editor and the piped Claude Code formatter; rendering skips the TUI.
Usage: Five-hour block and all-model weekly widgets can fall back to limits[]; weekly Sonnet, Opus, and Fable widgets read weekly_scoped.
Context: After /compact, context widgets reset from compact_boundary.postTokens until the first new turn.
Repository state: PR/MR widgets use gh or glab as appropriate; PR and CI rendering can use a versioned disk cache with background refresh.
Layout: Powerline flex separators support right alignment, and v2.2.34 prioritizes CCSTATUSLINE_WIDTH over Claude Code's COLUMNS.
Config portability: JSON imports support preview, merge, or replace; newly introduced shell commands require confirmation with Cancel selected by default.
Best For

Frequent Claude Code users who want context, usage, and repository status in one terminal view, with reusable layouts they can preview and share.

Skip If

You only need a couple of local fields, require all displayed data to stay offline, or want an MCP tool server or a centralized usage dashboard.

Reviewed on 2026-12-01 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

CLI
# Run the configuration TUI with npm
npx -y ccstatusline@latest

# Or use bunx, Bun's alternative to npx
bunx -y ccstatusline@latest

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
ccstatusline ★13.7k+33TypeScriptMITA local CLI formatter for Claude Code session metrics, Git status, and Powerline
rtk88.7k+684RustApache-2.0A local Rust CLI wrapper that trims command output before coding agents read it.
ECC316.1k+4.2kJavaScriptMITPlugins and CLI workflows for planning, reviewing, and verifying agent-written c
ponytail204.4k+4.1kJavaScriptMITA prompt-driven coding-agent plugin for smaller changes and focused tests.

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/sirmalloc/ccstatusline.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

sirmalloc/ccstatusline Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about ccstatusline

How does ccstatusline integrate with Claude Code?

The TUI installs a status-line command into Claude Code's settings. Claude Code invokes that command on refresh; the formatter handles piped rendering without loading the editor. This is a local CLI integration, not an MCP server.

What hardware and runtime overhead should I budget for?

There is no model inference in the formatter, so it has no GPU or VRAM requirement. On Node, the package declares version 14 or newer; Bun is also a documented launch option. Evaluate overhead with your actual refresh interval and widget set. Package-runner startup, external commands, and network-backed data are more relevant than model size.

Can a company run or redistribute it internally, and is there a server to host?

The code is MIT-licensed. You can run it locally, modify it, and redistribute it commercially, provided you preserve the required copyright and license notice. There is no ccstatusline server to host. The license does not grant access to Claude usage data or remote Git-provider services; their access requirements still apply.

When is this better than a small custom status-line script?

Keep a minimal Claude Code status-line command if you need only a few local values and want to audit the whole implementation at a glance. Choose ccstatusline if you would otherwise maintain multi-line layout, Powerline alignment, shared configuration, and cached PR or usage widgets yourself.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining sirmalloc/ccstatusline? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature sirmalloc/ccstatusline on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare