
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
@z80020100/claude-code-statusline
Advanced tools
Custom status line for Claude Code — model info, context usage gradient bar, token stats, cost, git status, and rate limits
Custom status line for Claude Code — model info, context usage gradient bar, token stats, cost, git status, and usage limits.


The Claude Code plugin is the recommended path. The npm install is an alternative. Both write the same statusLine entry to ~/.claude/settings.json.
claude plugin marketplace add z80020100/claude-code-statusline
claude plugin install claude-code-statusline@claude-code-statusline
The slash command installs the latest @z80020100/claude-code-statusline from npm and writes the same command: "claude-code-statusline" entry. If npm's global bin directory is not on your PATH, the CLI prints a warning with instructions. Run it inside Claude Code:
/claude-code-statusline:setup
To remove the statusLine entry:
/claude-code-statusline:setup --uninstall
To fully uninstall the plugin and marketplace:
claude plugin uninstall claude-code-statusline@claude-code-statusline
claude plugin marketplace remove claude-code-statusline
npm install -g @z80020100/claude-code-statusline
claude-code-statusline setup
This writes command: "claude-code-statusline" (relies on PATH):
{
"statusLine": {
"type": "command",
"command": "claude-code-statusline"
}
}
To remove:
claude-code-statusline setup --uninstall
Icons default to plain Unicode symbols for broad terminal compatibility.
/claude-code-statusline:icons
/claude-code-statusline:icons nerd
/claude-code-statusline:icons unicode
claude-code-statusline icons # show current mode
claude-code-statusline icons nerd # use Nerd Font icons
claude-code-statusline icons unicode # use Unicode icons
Both write ~/.claude/claude-code-statusline.json. CLAUDE_STATUSLINE_ICONS still takes precedence when set.
The banner always shows both Claude Code and Statusline current versions. The update check toggles only control whether → vX.Y.Z appears next to a version when the npm latest tag is newer. Both checks are off by default; each runs in a detached background process at most once per hour and caches the result under ~/.claude/.cache/.
@anthropic-ai/claude-code.@z80020100/claude-code-statusline./claude-code-statusline:update-check
/claude-code-statusline:update-check on
/claude-code-statusline:update-check off
/claude-code-statusline:update-check claude on
/claude-code-statusline:update-check claude off
/claude-code-statusline:update-check statusline on
/claude-code-statusline:update-check statusline off
claude-code-statusline update-check # show both states
claude-code-statusline update-check on # enable both
claude-code-statusline update-check off # disable both
claude-code-statusline update-check claude on # enable Claude Code check
claude-code-statusline update-check claude off # disable Claude Code check
claude-code-statusline update-check statusline on # enable statusline self-check
claude-code-statusline update-check statusline off # disable statusline self-check
Both write ~/.claude/claude-code-statusline.json under the updateCheck key. CLAUDE_STATUSLINE_UPDATE_CHECK (1 or true to enable both checks, otherwise disable) still takes precedence when set.
When the indicator surfaces a newer release, upgrade through the path you used to install:
claude plugin update claude-code-statusline@claude-code-statusline and restart Claude Code.npm install -g @z80020100/claude-code-statusline@latest.All fields at maximum width:

The status line renders up to 7 lines — each constrained to 80 visible columns:
| Line | Content |
|---|---|
| 1 | Version banner: Claude Code and Statusline versions, plus → vX.Y.Z per target when check is on |
| 2 | Sandbox mode, session name and ID |
| 3 | Model name, effort level, context usage bar with percentage, last updated time |
| 4 | Token counts (in/out), cache hit %, cost, session/API duration, lines added/removed, 200K warning |
| 5 | Project directory, git branch, dirty flag, worktree indicator, diff vs main |
| 6 | Current working directory (only when different from project root) |
| 7 | Usage limits — current (5h) and weekly (7d) with reset times |
Context and usage limit bars use a 4-zone gradient:
| Range | Color | Meaning |
|---|---|---|
| 0–49% | Green | Normal |
| 50–69% | Gold | Moderate |
| 70–89% | Coral | Elevated |
| 90–100% | Red | Critical |
| Dependency | Tier 1 (CI-tested) | Tier 2 (best-effort) |
|---|---|---|
| Node.js | >= 20 | 18 |
| Claude Code | >= 2.1.80 (for rate_limits field) |
Claude Code pipes a JSON object to the statusLine command via stdin on each render cycle. The JSON contains the current session state (model, tokens, cost, workspace, usage limits, etc.). This tool parses it and returns ANSI-colored lines to stdout.
Design decisions:
fs, path, os, child_process)Dev tooling (ESLint 10, lint-staged 16) requires Node >= 20.19. See .nvmrc.
git clone https://github.com/z80020100/claude-code-statusline.git
cd claude-code-statusline
npm install # also enables pre-commit hooks via prepare
npm run check # lint + format check + width check + CLI tests
npm run fix # auto-fix lint and format issues
npm test # width check + CLI tests only
npm run lint # ESLint + shellcheck + actionlint
npm run simulate # render worst-case status line with width report
CLAUDE_STATUSLINE_ICONS=nerd npm run simulate # render with Nerd Font glyphs
npm run ci:local # run CI workflow locally via act (requires Docker)
FAQs
Custom status line for Claude Code — model info, context usage gradient bar, token stats, cost, git status, and rate limits
We found that @z80020100/claude-code-statusline demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.