Feature Request: Token/context usage display in VS Code extension status bar
Feature Request
Summary: Show token/context window usage in the VS Code status bar when using the Claude Code VS Code extension.
---
Problem
The Claude Code CLI supports a custom statusLine command (configured in settings.json) that can display token counts and context window usage in the terminal. However, this feature does not integrate with the VS Code extension UI — the claudeCode.* extension settings have no equivalent option.
The only visual indicator of context usage in the extension is the thin progress bar at the top of the Claude panel, which gives no numeric information.
Proposed Solution
Add a VS Code status bar item that displays context window usage when a Claude Code session is active. For example:
Context: 34% | ~12,400 tokens
Ideally this would:
- Appear in the VS Code bottom status bar during an active session
- Update after each response turn
- Show at minimum: context used % and/or total tokens consumed
- Optionally: be toggleable or configurable via a
claudeCode.*setting
Why This Matters
- Users on the VS Code extension have no way to monitor context usage numerically
- It's easy to unknowingly approach context limits on long sessions, leading to unexpected
/compactprompts or degraded responses - The CLI already has this capability — parity with the extension would be valuable
Current Workaround
None within the extension. The CLI statusLine command works only in terminal mode.
---
Submitted via Claude Code VS Code extension v2.1.74 on Windows 11.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗