claude-code - 💡(How to fix) Fix [FEATURE] VS Code extension: Always-visible context indicator in the prompt box [1 comments, 2 participants]

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…
GitHub stats
anthropics/claude-code#52468Fetched 2026-04-24 06:06:25
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×4commented ×1unlabeled ×1
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

In the Claude Code VS Code extension's graphical panel, the context indicator in the prompt box only appears after context usage crosses ~50%. Before that threshold, there's no at-a-glance way to see how much of the context window has been used.

Best-practices guidance recommends keeping context below 50% for optimal performance, but by the time the indicator appears, users have already reached that threshold. Running /context gives a breakdown on demand, but its output is verbose when I often just want the current percentage. The CLI statusline shows the percentage continuously, but the graphical panel does not.

Proposed Solution

Add a VS Code extension setting (e.g. claudeCode.alwaysShowContextIndicator) that, when enabled, displays the context-usage percentage in the prompt box at all times — matching the behavior of the CLI statusline.

Alternative forms that would also solve the problem:

  • A configurable threshold for when the indicator becomes visible (e.g. 25%, 50%, 80%).
  • A lightweight slash command (e.g. /c) that outputs only a short line like Context: 42% without the full /context breakdown.

Alternative Solutions

Several prior issues have requested this and were closed as stale / not planned rather than resolved, suggesting ongoing demand:

  • #21781 (VS Code extension: Option to always show context percentage)
  • #18456 (VSCode Extension: Display context usage percentage in UI)
  • #25580 (Option to always show remaining context percent in status bar)
  • #29493 (Add context window usage visualization to VS Code Copilot UI)
  • #16526 (Real-time token/context usage display in VSCode extension UI)
  • #516 (Always show available context percentage)

Priority

Medium - Would be very helpful

Feature Category

Configuration and settings

Use Case Example

Example scenario:

  1. I open the Claude Code panel in VS Code and start a new conversation about refactoring a module.
  2. I @-mention a few source files and ask Claude to plan some changes.
  3. Partway through, I want to know whether I'm close to the recommended <50% context threshold so I can decide whether to compact or start a fresh session.
  4. Today, the prompt box shows nothing until I'm already past ~50%, and /context prints a long breakdown when I just want the number.
  5. With this feature enabled, I'd see the current percentage (e.g. "Context: 34%") in the prompt box at all times and could proactively /compact before performance degrades — matching how the CLI statusline already works.

Additional Context

This would bring the VS Code extension to parity with the CLI statusline, which already shows context percentage continuously. No UI mockups attached; the existing indicator's visual treatment would work — it would just appear below the current threshold as well.

extent analysis

TL;DR

Add a VS Code extension setting to always show the context-usage percentage in the prompt box.

Guidance

  • Introduce a new setting, e.g., claudeCode.alwaysShowContextIndicator, to control the visibility of the context indicator.
  • Consider adding a configurable threshold for when the indicator becomes visible, allowing users to customize the behavior.
  • Implement a lightweight slash command, e.g., /c, to output a short line with the current context percentage.
  • Update the prompt box to display the context-usage percentage continuously, matching the behavior of the CLI statusline.

Example

No code snippet is provided as the issue focuses on feature request and UI behavior.

Notes

The proposed solution aims to bring the VS Code extension to parity with the CLI statusline, which already shows context percentage continuously. The implementation should ensure a seamless user experience and provide an option for users to customize the behavior.

Recommendation

Apply workaround: Introduce the claudeCode.alwaysShowContextIndicator setting to provide users with an option to always display the context-usage percentage in the prompt box, addressing the current limitation and improving the overall user experience.

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