Dev.to
7/22/2026

Claude Code hides your context % and usage limits. Here's how to see them.
Short summary
Claude Code does not expose context window or rate-limit usage to users or hooks — except through the statusLine command's JSON payload. This article introduces cc-context-telemetry, a wrapper that displays context percentage and 5h/7d usage limits on your status bar and persists telemetry to a file hooks can read. This enables plugins to checkpoint, throttle, or warn before context compaction or usage limits hit.
- •Claude Code only exposes context and rate-limit data via the statusLine JSON payload
- •cc-context-telemetry wraps any statusline to show context %, usage limits with reset countdowns, and model name
- •Telemetry is persisted per-session so hooks can read it and act before context compaction or limit walls
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



