Add rate limit utilization to statusLine JSON

Resolved 💬 2 comments Opened Mar 14, 2026 by BH-Tecs Closed Mar 14, 2026

Feature Request

Add rate limit utilization data to the statusLine JSON input.

Current behavior

The statusLine command receives JSON via stdin with session info, context window usage, cost, model, etc. However, the rate limit utilization percentages shown in the /status Usage tab ("Current session: X% used", "Current week: Y% used") are not included in the statusLine JSON.

This data is already available internally ? parsed from API response headers (anthropic-ratelimit-unified-5h-utilization, anthropic-ratelimit-unified-7d-utilization) and displayed in the /status dialog.

Proposed addition

Add a rate_limit field to the statusLine JSON:

{
  "rate_limit": {
    "five_hour": {
      "utilization": 0.59,
      "resets_at": 1234567890
    },
    "seven_day": {
      "utilization": 0.21,
      "resets_at": 1234567890
    }
  }
}

Use case

Users want to display their rate limit usage in the status line to monitor how much of their session/weekly quota remains ? just like they can already display context window usage and session cost. This helps avoid unexpected rate limit hits.

Environment

  • Claude Code v2.1.76
  • Windows 11 / Pro subscription

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗