claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Feature Request: Pro Plan 5-Hour Window Usage Visibility

Open deanandreakis opened this issue 3 months ago • 5 comments

Feature Request: Pro Plan 5-Hour Window Usage Visibility

Summary

As a Claude Pro plan subscriber, I need visibility into my current usage against the 5-hour rolling window token limit to better manage my sessions and avoid unexpected interruptions.

Problem Statement

Currently, there is no way for Pro plan users to:

  • Check how many tokens/messages they've used in the current 5-hour window
  • See how much capacity remains before hitting the limit
  • Know when their 5-hour window will reset
  • Plan their work accordingly to avoid hitting limits during critical tasks

Users only discover they've hit the limit when they receive a rate limit error, which can be disruptive to their workflow.

Proposed Solution

Option 1: Add Usage Data to Statusline JSON

Extend the JSON data passed to custom statusline scripts to include:

{
  "pro_plan_window": {
    "output_tokens_used": 35000,
    "output_tokens_limit": 44000,
    "usage_percentage": 79.5,
    "window_started_at": "2025-10-15T18:33:00Z",
    "window_resets_at": "2025-10-15T23:33:00Z",
    "minutes_until_reset": 47
  }
}

This would allow users to display usage in their custom statuslines, for example:

Sonnet 4.5 | tesla-marketplace  main ● | October 15, 2025 11:42 PM | Window: 79% (47m until reset)

Option 2: Add a /usage or /window Slash Command

Create a command similar to /context that displays:

5-Hour Window Usage

[████████████████████░░░░] 79% (35k/44k tokens)

Window started: 6:33 PM
Resets in:      47 minutes
Next reset:     11:33 PM

💡 Tip: You have approximately 9 messages remaining in this window

Option 3: Both Solutions

Implement both the statusline JSON extension (for always-visible tracking) and the slash command (for detailed usage breakdowns).

Use Cases

  1. Avoid Workflow Interruptions: Plan intensive refactoring or feature development when you have sufficient remaining capacity
  2. Session Management: Know when to take a break or switch to lighter tasks as you approach the limit
  3. Team Coordination: Better understand and communicate usage patterns when multiple team members share costs
  4. Debugging Sessions: Allocate sufficient capacity for troubleshooting complex issues
  5. Learning and Exploration: Budget usage for learning sessions vs production work

Benefits

  • Transparency: Users understand their subscription limits and usage patterns
  • Better Planning: Make informed decisions about when to tackle complex tasks
  • Reduced Frustration: No unexpected interruptions mid-workflow
  • Improved User Experience: Aligns with professional development workflows
  • Subscription Value: Helps users maximize the value of their Pro plan

Additional Notes

  • Usage limits are shared between claude.ai and Claude Code, so showing aggregate usage would be most helpful
  • Consider showing both token-based and message-based estimates since different tasks consume different amounts
  • Weekly quota information (added in August 2025) would also be valuable to display
  • Similar functionality could benefit Claude Max users with their respective limits

Related Features

This complements existing features:

  • /context command (shows conversation context usage)
  • /cost command (shows API costs for team/enterprise users)
  • Custom statusline support
  • Analytics and monitoring tools

Priority

High - This affects the core user experience for all Pro and Max plan subscribers who rely on Claude Code for professional development work.


Submitted by: Pro Plan User Date: October 15, 2025 Claude Code Version: 2.0.19

deanandreakis avatar Oct 15 '25 23:10 deanandreakis

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/8464
  2. https://github.com/anthropics/claude-code/issues/8412
  3. https://github.com/anthropics/claude-code/issues/5621

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Oct 16 '25 00:10 github-actions[bot]

/usage doesn't work for you? Image

diwu-sf avatar Oct 16 '25 00:10 diwu-sf

The advantage of a status line is that it's always visible, so I don't have to interrupt the conversation I'm having with Claude-Code to check.

Redster1 avatar Oct 28 '25 19:10 Redster1

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 09 '25 10:12 github-actions[bot]

This issue should remain open because the problem still exists and this issue has a clear proposal.

Redster1 avatar Dec 09 '25 12:12 Redster1