ethanplusai

Context Meter — AI skill for Claude Code

AI community

A tiny status-line script that renders a colored context-window bar under your AI coding agent's prompt.

How to install Context Meter

This entry records only its repository, not the path inside it, so there is no exact command to give. Open ethanplusai/context-meter and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Context Meter does

A tiny status-line script that renders a colored context-window bar under your AI coding agent's prompt. Claude Code + Codex CLI.

Alternatives in AI

  • Ccstatusline — by sirmalloc - A highly customizable status line formatter for Claude Code CLI that displays model info, git b 5.5k ★
  • Paritok 4b V1 — Non-destructive compression gateway for AI coding agents 1.4k ★
  • ClaudeCodeStatusLine — Custom status line for Claude Code showing model, tokens, rate limits, and git info in real-time 333 ★

README

context-meter

A tiny status-line script that renders a colored context-window bar under your AI coding agent's prompt.

![context-meter bar at four color thresholds](docs/preview.svg)

  • <50% green · 50–65% yellow · 65–80% orange · 80%+ red
  • The percentage is normalized to usable context: 100% lines up with the auto-compact threshold, not the absolute window.
  • Single file, no dependencies, no npm install.

Supported tools

Tool What you get Status
Claude Code The full custom bar from statusline.js — green/yellow/orange/red thresholds, normalized to the auto-compact buffer. ✅ tested in CI
Codex CLI Codex's built-in context_usage indicator. Codex has no command-backed status-line hook yet (openai/codex#17827), so we can't run the same script there — but the installer optionally enables Codex's own context display so you still see progress. ✅ tested in CI
Platform Status
macOS ✅ Tested in CI (Node 16/18/20/22)