claude-code - 💡(How to fix) Fix Feature Request: Context window usage progress bar

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Root Cause

  • Reduces anxiety about hitting the context limit unexpectedly
  • Helps developers optimize their prompt and tool usage patterns
  • Especially valuable for users running long /loop or autonomous sessions
RAW_BUFFERClick to expand / collapse

Problem

Currently, there is no way to know how much of the 1M context window is being used during a conversation. Users only find out when context is already near exhaustion (summarization kicks in, or responses degrade).

Proposed Solution

Add a small, unobtrusive progress bar or percentage indicator below the chat input box showing context window usage.

Visual example: [鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻慮 Context: ~45% (450K / 1M tokens)

Or simpler: Context: 450K / 1M | 45%

Behavior

  • Updates in near real-time as conversation grows
  • Color-coded: green (<60%), yellow (60-85%), red (>85%)
  • Optional: can be toggled on/off in settings
  • Minimal performance impact (token counting happens server-side)

Why This Matters

  • Reduces anxiety about hitting the context limit unexpectedly
  • Helps developers optimize their prompt and tool usage patterns
  • Especially valuable for users running long /loop or autonomous sessions

Alternatives Considered

  • A /context slash command (one-shot check instead of persistent indicator)
  • A warning-only approach (only show when >80% used)

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Feature Request: Context window usage progress bar