Skip to content

v4.2.1

Choose a tag to compare

@thebtf thebtf released this 07 Feb 14:27
· 45 commits to main since this release

ContextBricks Universal v4.2.1

Cross-platform statusline for Claude Code CLI — Windows, Linux, macOS.

Install

npm install -g contextbricks-universal

Features

  • 4-line statusline — model/git, commit, context bricks, rate limits
  • Rate limit tracking — 5h, 7d, sonnet, opus utilization from Anthropic OAuth API
  • 256-color gradient — green → yellow → red based on utilization %
  • Configurable reset times — exact (~1d23h) or approximate (~1d)
  • Git integration — repo, branch, dirty/ahead/behind, diff stats
  • Session metrics — duration, cost, lines changed
  • Zero dependencies — pure Node.js, no bash/jq required

Display

[Sonnet 4.5] my-project:main *↑2 | +145/-23
[5f2ce67] Remove auth-js skill
[■■■■■■■■■■■■■□□□□□□□□□□□□□□□□□] 43% | 113k free | 0h12m | $0.87
5h:64% ~23m | 7d:57% ~1d23h | sonnet:9% ~3d23h

Configuration

Variable Default Description
CONTEXTBRICKS_BRICKS 30 Number of bricks in the bar
CONTEXTBRICKS_SHOW_LIMITS 1 Show rate limit line (Line 4)
CONTEXTBRICKS_RESET_EXACT 1 Exact reset times (0 for approximate)
CONTEXTBRICKS_SHOW_DIR 1 Show current subdirectory

Links