Feature Request: Token Counter / Context Window Usage Indicator for VS Code Extension

Resolved 💬 2 comments Opened Mar 25, 2026 by heshangcode Closed Mar 25, 2026

Summary

Add a token counter or context window usage indicator to the VS Code extension, showing how many tokens have been used in the current conversation and how much context window capacity remains.

Problem

Currently, the VS Code extension does not provide any visibility into context/token usage. Users have no way to know:

  • How many tokens the current conversation has consumed
  • How much context window capacity is remaining before the conversation needs to be compressed or restarted

This leads to suboptimal user experience when working with large codebases or long conversations, as users may unexpectedly hit context limits without warning.

Proposed Solution

Add a visual indicator (e.g., in the chat interface or status bar) that displays:

  1. Tokens used in the current conversation
  2. Remaining capacity (either as percentage or token count)
  3. Optional: A warning when approaching the context limit (e.g., 80%+ usage)

Use Cases

  • When analyzing large codebases, users can monitor context usage and decide when to start a fresh conversation
  • Helps users understand the cost implications of their conversations (for API token usage awareness)
  • Enables better context management decisions (e.g., when to clear history or compress context)

Additional Context

The CLI version of Claude Code may benefit from a similar feature, but this request specifically targets the VS Code extension experience.

Thank you for considering this feature!

View original on GitHub ↗

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