Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Context BarNew to Visual Studio Code? Get it now.
Context Bar

Context Bar

Preview

Daniel Euan

|
1 install
| (1) | Free
Beta: Track Claude Code context window usage in the status bar.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Context Bar

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 Code command

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

  1. Install the extension.
  2. Start or resume a Claude Code session so transcript files exist under ~/.claude/projects.
  3. Optional: run Context Bar: Configure Claude Code from the Command Palette to write the bundled helper command into ~/.claude/settings.json.
  4. 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.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft