/context command shows inconsistent token usage vs status bar

Resolved 💬 3 comments Opened Feb 11, 2026 by MattAttaway Closed Feb 11, 2026

Description

The /context command and the status bar show significantly different context window usage, and the /context output is internally inconsistent.

What I observed

At the end of a long session:

  • Status bar showed 126,188 (16%) in red — indicating ~16% of the context window remaining (~84% used)
  • /context command showed 126k/200k tokens (63%) used, with 147k free (73.3%)

The problem

  1. /context internal math doesn't add up. If 126k out of 200k is used (63%), free space should be ~74k (37%) — not 147k (73.3%). The reported used + free (126k + 147k = 273k) exceeds the 200k window.
  1. The two indicators disagree. The status bar (red, 16% remaining) suggests the window was nearly full, while /context reported 73% free.
  1. The status bar appeared to be the more accurate indicator, since the session was behaving as if context was nearly exhausted.

Expected behavior

/context and the status bar should report consistent context window usage, and the internal math in /context (used + free = total) should add up.

Environment

  • macOS (Darwin 24.6.0)
  • Claude Code CLI (latest as of Feb 2025)
  • Model: Claude Opus 4.6

View original on GitHub ↗

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