[Feature] Expose weekly_sonnet (and weekly_all_models) in statusLine JSON input

Resolved 💬 2 comments Opened Jun 17, 2026 by sweets2 Closed Jun 21, 2026

Summary

The /usage dialog shows three rate limit buckets:

  • Current session (5-hour window)
  • Current week — all models
  • Current week — Sonnet only

The statusLine JSON input (piped to custom scripts via statusLine.type: "command") only exposes two of these:

{
  "rate_limits": {
    "five_hour": { "used_percentage": 4, "resets_at": 1781725800 },
    "seven_day":  { "used_percentage": 52, "resets_at": 1782072000 }
  }
}

The Sonnet-specific weekly usage is missing.

Requested Change

Add a third entry to rate_limits in the statusLine JSON:

{
  "rate_limits": {
    "five_hour":        { "used_percentage": 4,  "resets_at": 1781725800 },
    "seven_day":        { "used_percentage": 52, "resets_at": 1782072000 },
    "seven_day_sonnet": { "used_percentage": 43, "resets_at": 1782072000 }
  }
}

Optionally rename seven_day to seven_day_all_models for clarity (with a fallback alias for backwards compatibility).

Use Case

Custom statusline scripts let subscribers monitor usage at a glance without opening /usage. Sonnet has its own weekly cap separate from the all-models cap, so it's the most actionable limit for users on plans that include Sonnet. Without it, the statusline is an incomplete picture of quota health.

Environment

  • Claude Code version: 2.1.179
  • Plan: Claude.ai subscriber (oauth/firstParty auth)

View original on GitHub ↗

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