Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

cc-cream

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cc-cream

See cache health, context fill, token burn, rate limits, and peak hours in Claude Code CLI. The status line for tokenminning - cache rules everything around me - dolla, dolla bill, y'all.

latest
Source
npmnpm
Version
0.5.0
Version published
Maintainers
1
Created
Source

cc-cream

CI npm version Socket Badge Snyk security install size License: MIT

The status bar Claude Code should have shipped with.

C.R.E.A.M. — Claude Code · Cache Rules Everything Around Me

cc-cream status bar

Keeps your cache health, context fill, rate-limit budgets, and session cost visible at all times — in a colored ≤3-row bar the model never sees. Zero tokens.

With all segments enabled:

ctx:21% [43k] | cache:99% | write:2% | ttl:60 | effort:high | think:on | ∿ api:74% | ~$0.23
5h:13% ↺2h57m | ~3h12m | 7d:6% ↺Sat 21:00 | peak until 11:00
Sonnet 4.6 | My project session

Row 1 — this session: context-window fill, cache hit rate, TTL countdown, session cost, cache write rate, effort level, thinking mode, API time ratio.

Row 2 — rate-limit budgets: 5h and 7d window usage with reset countdowns and a burn-rate projection. Hidden for API users.

Row 3 — identity: model name and session name.

Use --hide to remove any segments you don't need: /cc-cream:setup --hide write,api_ratio,thinking.

Features

Cache health. cache shows your hit rate each turn and turns red when it drops sharply — the only signal you'll get that a compaction, a far-back edit, or a large tool result just invalidated your cache prefix. ttl counts down to when the cache goes cold, turning amber then red as the window closes. Supports both 5-minute (API) and 60-minute (subscriber) TTLs, auto-detected.

Rate-limit budgets. 5h and 7d show how much of your rolling usage is gone and when each window resets. burn adds a live projection based on your current pace — useful before committing to a long agent run.

Peak hours. Anthropic's rate-limit drain accelerates Mon–Fri during Pacific business hours. The peak segment tells you when the current window closes (peak until 11:00, in your local time) while you're in it, and counts down to the next one (peak in 47m) in the hour before it opens — so you can pace yourself or wait it out. No other Claude Code status tool surfaces this.

Context window. ctx shows occupancy and input-token magnitude. On large-context models where "50% of window" still means 500k tokens, you can set a fixed-token ceiling instead — warnings fire at the same absolute count regardless of window size.

Session cost. Cumulative spend including subagents, as estimated by Claude Code. Hidden when zero.

Trust

No network calls, no telemetry, no runtime dependencies — Node built-ins only. The only output is a string written to stdout; the model never receives it. The only file written is ~/.claude/cc-cream-state.json (session samples for the burn projection and drop detection). See PRIVACY.md and SECURITY.md.

Requirements

  • Node.js — already present; Claude Code is a Node app.
  • Claude Code ≥ 2.1.132 (released 2026-05-06). The cache figure requires context_window.current_usage, which landed in that release.
  • effort and thinking segments additionally require Claude Code ≥ 2.1.145; they stay hidden on older versions.

Platform support

macOS and Linux. Windows is a planned fast-follow.

Install

/plugin marketplace add bart-turczynski/claude-plugins
/plugin install cc-cream

On the first session after install cc-cream auto-wires its statusLine into ~/.claude/settings.json. It only does this when the slot is free — it never overwrites a statusLine you set for something else, and it never re-adds the bar after you remove it.

If you already have a statusLine and want to replace it with cc-cream's:

/cc-cream:setup

Updates are automatic: /plugin update drops a new version into the cache; the next render picks it up.

Option 2 — npm

npm install -g cc-cream
cc-cream-setup

Or without a global install:

npx -y -p cc-cream cc-cream-setup

Option 3 — Manual

Download or clone the repository, then run the consent installer:

git clone https://github.com/bart-turczynski/cc-cream.git
node cc-cream/plugin/src/install.js

The installer detects an existing statusLine and asks before replacing it, preserves any padding you have set, and is idempotent.

After install, Claude Code must be trusted for the directory (if prompted) and you may need to restart for the bar to appear.

Pick one install method. If you wire cc-cream via npm/manual and then install the plugin, run /cc-cream:setup to switch to the auto-updating plugin path. Nothing breaks either way — it just stays on whichever method wired it.

Uninstall

Plugin users — run in this order:

/cc-cream:uninstall
/plugin uninstall cc-cream

npm / manual users:

cc-cream-setup --uninstall

Add --purge to either to also remove your ~/.claude/cc-cream.json config. See UNINSTALL.md for edge cases and manual cleanup.

Configuration

Toggle segments

Plugin users — pass flags directly to /cc-cream:setup:

/cc-cream:setup --hide 5h,7d,peak
/cc-cream:setup --show all --hide peak
/cc-cream:setup --show effort,thinking

npm / manual users — same flags via cc-cream-setup:

cc-cream-setup --hide 5h,7d,peak
cc-cream-setup --show all

--show all re-enables everything. --hide overrides --show when both name the same segment. Valid segment names: ctx cache write ttl effort thinking api_ratio cost 5h 7d burn peak model session_name.

Set config values

--set key=value sets any config field. Multiple --set flags are allowed in one call.

# flip percentage direction
/cc-cream:setup --set percentage=remaining

# set a fixed-token ceiling for ctx warnings (useful on large-context models)
/cc-cream:setup --set ctx.basis=ceiling --set ctx.ceiling=100000

# tighten color thresholds
/cc-cream:setup --set ctx.amber=20 --set ctx.orange=30 --set ctx.red=40

# adjust rate-limit warning bands
/cc-cream:setup --set 5h.amber=80 --set 5h.red=95

npm / manual users replace /cc-cream:setup with cc-cream-setup.

Top-level keys: percentage (consumed|remaining), numbers (compact|exact), ttl (auto|60|5). Per-segment dot-paths: segment.field — e.g. ctx.ceiling, ctx.basis, 5h.amber. Full field reference in CONFIGURATION.md.

The flags write to ~/.claude/cc-cream.json; the bar reflects the change on the next render.

Fine-tuning

Every display decision is also configurable by hand in ~/.claude/cc-cream.json — thresholds, row assignments, color bands, TTL mode, and more. Run the doctor after editing to catch typos:

cc-cream-setup --check-config

Full reference: CONFIGURATION.md.

Troubleshooting

cc-cream degrades silently — missing or malformed data hides the segment rather than crashing. When the bar is unexpectedly empty or shorter than expected:

export CC_CREAM_DEBUG=1   # then trigger a render in Claude Code

Each render appends a diagnostic line to ~/.claude/cc-cream-debug.log (override with CC_CREAM_DEBUG_LOG) listing which segments rendered, which were dropped, the resolved TTL, and stdin size. Unset to turn off.

Development

See CONTRIBUTING.md. The runtime uses only Node built-ins — no runtime dependencies.

License

MIT — see LICENSE.

Keywords

claude

FAQs

Package last updated on 04 Jun 2026

Did you know?

Socket

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.

Install

Related posts