Feature Request: Add weekly/daily usage limits to statusLine hook JSON

Resolved 💬 9 comments Opened Dec 25, 2025 by vasilievyakov Closed Apr 26, 2026

Feature Request

Problem:
The statusLine hook receives JSON data about the current session, but it doesn't include information about plan usage limits that are visible in the Claude Code UI (e.g., "Weekly limits - All models: 3% used").

Current behavior:

  • The UI shows plan usage percentages (current session %, weekly all models %, weekly sonnet-only %)
  • The statusLine hook JSON does not include these values
  • Users cannot display their actual plan usage in custom status lines

Requested feature:
Add a usage_limits or plan_usage field to the statusLine JSON input, containing:

{
  "plan_usage": {
    "current_session": {
      "percent_used": 1,
      "resets_in_minutes": 280
    },
    "weekly_all_models": {
      "percent_used": 3,
      "resets_at": "2024-12-26T10:59:00Z"
    },
    "weekly_sonnet_only": {
      "percent_used": 1,
      "resets_at": "2024-12-26T15:59:00Z"
    }
  }
}

Use case:
Users with custom statusLine scripts want to monitor their plan usage without leaving the terminal. This data is already computed and displayed in the UI, so exposing it to the hook would enable powerful customization.

Workaround attempted:
Using ccusage to calculate costs, but this doesn't match the actual plan percentages because Anthropic uses a different formula internally.

Thank you!

View original on GitHub ↗

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