Token Weather

See how full Claude Code's context window is

·

source at 569c528

·

Apache-2.0 license

A one-line forecast above the prompt shows how full the context window is, as a weather icon, a percentage, tokens used out of the window and a chart of recent turns.

7 installs

What this mod can do

  • Reviewed at commit 569c528
Good to know (3)
  • It measures the full window, so it can read lower than Claude Code's notice, which counts to auto-compact.
  • Updates once per turn, not during one, and reads 0% until the first response reports usage.
  • Another plugin that draws above the prompt competes for the same band.
Are mods safe?

Preview

Terminal

☀ Clear 22% of context 44k / 200k last turns ██ steady [-]

Claude Desktop

Token Weather in Claude Desktop

What it does

In the author's words

A live forecast of the context window, drawn above the prompt: a weather icon, the fill percentage, and a chart of the last turns.

What you see
A one-line weather band above the prompt
Works in
Terminal and Claude Desktop
Slash commands
None
Uses your tokens
No
Changes files
Nothing
Network access
None
Reviewed commit
569c528
Preview recorded with
Claude Code 2.1.309

How it works

  1. Takes a first reading when the session starts
  2. After each main-loop turn, reads context tokens and window size (subagent turns skipped)
  3. Picks a forecast from the share used, from ☀ Clear under 25% to ↯ Compact soon at 90%
  4. Draws the band with a chart of the last 12 turns and what the last turn added

Common questions

How do I check how much of the context window Claude Code has used?

Token Weather shows it above the prompt after every turn: the percentage used, the tokens used out of the window and a weather word for the level. It reads the same figures the status line gets (total_input_tokens, context_window_size, used_percentage).

Why is its percentage different from Claude Code's context notice?

The band measures against the full context window, while Claude Code's notice counts toward the auto-compact point, which is lower. In the author's test the band read 81% when the notice read 90%.

What do the weather icons mean?

☀ Clear under 25% used, ☁ Cloudy from 25%, ☂ Showers from 50%, ☇ Storm from 75% and ↯ Compact soon from 90%.

Badge for your README

Own this listing? Add it to your README. The badge shows the install count as it grows.

Reviewed on statuslin.es
[![Reviewed on statuslin.es](https://statuslin.es/badge/mods/token-weather.svg)](https://statuslin.es/mods/token-weather?utm_source=readme-badge)

Or show the preview card:

Preview on statuslin.es
[![Preview on statuslin.es](https://statuslin.es/og/mods/token-weather.png)](https://statuslin.es/mods/token-weather?utm_source=readme-badge)

More like this

Token Weather Usage in Claude Desktop

One line above the prompt: context tokens with their weather, a bar per recent prompt, your 5-hour and 7-day limits against the time elapsed, the prompt cache with its time left, the session cost with the last prompt's share in dollars and in points of the 5-hour limit, the subagents running, and a one-click pill for the GOs Claude proposes. Labels in English, French or Russian. After Token Weather (Anthropic, Apache-2.0) and the ideas of usage-meter (HolyGrail) and prompt-cache-control (Daniel San).

Deck in Claude Desktop

A cockpit for Claude Code: plan bars and subagent strips, context, usage limits with reset countdowns and burn rates, spend, the model route and a pet. Six bar styles, three collapsed looks. CLI and Desktop.

Context Bar in Claude Desktop

Your context window as a stacked bar above the prompt, a color per category, with token counts and the compaction point. /context-bar shows or hides it.

Flightdeck in Claude Desktop

Flightdeck: a live agent dashboard for Claude Code. Main model vitals, an on-call architect, every permission check, subagent cards and swimlanes, a turn receipt and a session log, all from real session events

╭─ CONTEXT ────────────────────────────────────────────╮ │ ████▊░░░░░░░░░░░░░░░░░ 22% of 200K · GOOD │ ├─ STATS ──────────────────────────────────────────────┤ │ ↓ 44.0K ↑ 1.4K │ $0.41 │ ⏱ 10m 12s │ +128/-34 │ ├─ REPO ───────────────────────────────────────────────┤ │ ◆ Opus 4.8 · main · 16:21 │ ╰──────────────────────────────────────────────────────╯

A boxed multi-line panel with auto-sizing borders: a context section with a gradient bar and status word, a stats section (tokens, cost, duration, lines changed), and a repo section (model, git branch with file counts, clock, vim mode), in a terracotta Claude-brand palette.

app · main · Opus-4.8 · effort high · ctx 22% · 5h 26% ↻2h6m · 7d 7% ↻2d0h

One-line status bar showing your directory, git branch (with a * when dirty), model, live effort level, context-window usage, and 5-hour/7-day rate-limit usage.

Opus 4.8 [high] ~/app main 16:20:55 | ⛁ ██░░░░░░░░ 22% | 5h ●◔○○○ 26% ↻2h7m | 7d ◔○○○○○○ 7% ↻2d1h │ $0.41 ⏱ 10m

Two-line status with a block context bar and quarter-step dot meters (◔◑◕●) for the 5-hour and weekly limits (fill shows usage, color shows whether you are ahead of or behind pace), plus model, effort, git and cost. Needs no jq.

████▊░░░░░░░░░░░░░░░░░ 22% of 200K · GOOD │ ↓ 44.0K ↑ 1.4K │ $0.41 │ ⏱ 10m 12s │ +128/-34 │ 5h 26% ↻2h06m │ 7d 7% ↻2d0h │ ◆ Opus 5.5 · main · 03:53

One-line adaptation of @kyleledbetter's Dreambase Panel: a context bar with status word, token/cost/duration/lines-changed stats, and model + git branch + clock, all on a single line in a terracotta Claude-brand palette.