Context Bar is a beta extension for VS Code that shows Claude Code context window usage directly in the status bar.
It gives you a quick visual readout of how much context has been used, plus token totals, without leaving your editor.
Features
- Shows Claude Code context usage in the status bar
- Displays a compact bar, percentage, and used tokens
- Updates automatically from the latest transcript in
~/.claude/projects - Adds a tooltip with input, output, and total window size
- Includes a
Context Bar: Configure Claude Codecommand
How It Works
The extension watches the latest Claude Code transcript in ~/.claude/projects and reads usage data from the newest assistant message that contains token usage information.
When usage data is available, the status bar updates automatically.
Setup
- Install the extension.
- Start or resume a Claude Code session so transcript files exist under
~/.claude/projects. - Optional: run
Context Bar: Configure Claude Codefrom the Command Palette to write the bundled helper command into~/.claude/settings.json. - Keep coding. The status bar updates as new usage data appears.
Status Bar Display
- Green for lower usage
- Yellow as usage grows
- Red when the context window is getting tight
Hover the status bar item to see detailed token counts.
Beta Notes
This is a beta release. The formatting, setup flow, and Claude Code integration may change as the extension evolves.