ClaudeCodeMod

All shelves / Mods / Usage

token-weather

By Anthropic

token-weather is a Claude Code usage mod by Anthropic.

Draws a one-line forecast of the context window above the prompt. Fuller goes from clear toward a storm.

Draws

Install

The marketplace name is claude-code-playground-mods.

In your shell
git clone https://github.com/anthropics/claude-code-playground.git
cd claude-code-playground/claude-code/mods
claude plugin marketplace add ./
claude plugin install token-weather@claude-code-playground-mods --scope user
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
0.1.0
License
Apache-2.0
Repo stars
287
Last change
2026-10-01

What it can reach

  • Draws in the session
  • Reads usage or context figures

Claude Code 2.1.287 or later, in a terminal: the band is drawn on the terminal surface only. No environment variables or configuration. A sample from Anthropic's DevRel playground, shared as-is: the README says it is not an official Anthropic product, and no support is implied. After each turn the band shows a weather word and icon, the percentage and tokens used out of the window, a chart of the last 12 turns, and how much the last turn added. Under 25% is Clear, then Cloudy, Showers from 50%, Storm from 75%, and Compact soon from 90%. The figures come from $.session.usage(), the same ones the status line shows, and the mod sends no token-count request. Subagent turns are skipped. The percentage is of the whole window, while Claude Code's own context notice counts toward the auto-compact point, so the two can differ: in the author's test the band read 81% when the notice read 90%. The band updates once per turn, the chart's bars are relative to the fullest turn shown, and the history resets when the session starts or the plugin reloads. Before the first response it reads 0%. Another mod that draws in the band above the prompt competes for it.

The install clones claude-code-playground and adds its mods folder as a local marketplace, claude-code-playground-mods, which holds the three mods in that folder, blast-radius and replay-theater among them. This one installs on its own. To try it once without installing, run claude --plugin-dir ./token-weather from the mods folder. The context fill is why this page files it under usage. context-meter, by midudev, draws how full the window is at the right end of the band, gray, then yellow from 50 percent, then red from 75. context-bar, by hamzafer, draws the window as one stacked bar with a color per category and the compaction point. This one names the fill as a forecast and charts the last 12 turns. hamzafer/claude-code-mods ships another plugin of the same name that also counts down the prompt cache. See token-weather (hamzafer).

Demo

token-weather while the context window is clear
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • turn.completeWhen a turn ends
  • ui.renderDraws into the sessionAbovePrompt

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
Anthropic
Category
Usage
Marketplace
claude-code-playground-mods
Repo
anthropics/claude-code-playground
Folder
claude-code/mods/token-weather
Version
0.1.0
License
Apache-2.0
Repo stars
287
Last change
2026-10-01
Language
JavaScript
Files
8

Other mods in Usage

token-weatherhamzaferDraws the context-window forecast above the prompt, plus how long the prompt cache has left.cache-clockhamzaferDraws a prompt-cache line under the status line: time left while warm, hits and misses, and how many tokens the next message re-caches once it goes cold.openai-balancehamzaferDraws your OpenAI API credit above the prompt: an estimated balance, today's spend, where the money went, and the last call.cost-meterSingh-APHolds a commandDraws session cost, context fill, and the 5-hour and 7-day windows on the status line, plus each turn's cost. An optional budget asks before the next tool call.session-meterarasovicDraws a pane of context by category, the 5-hour and 7-day windows and their pace, and the last 30 tool calls and model requests.cache-timerarasovicDraws a countdown above the prompt until the prompt cache expires, then how many tokens the next message writes again.turn-footerarasovicDraws tool calls, subagents, requests, tokens, and cache hit rate under each answer, and the running tool in the spinner.search-meterarasovicDraws a status line for the model's searches: green found on the first try, yellow found after misses, red found nothing.statusline-anywhereNathanABDraws the status line you already configured, in color, above the prompt in Claude Desktop. In a terminal it stays out of the way.statuspanexuanji86Draws a card above the prompt: model, context gauge, 5-hour and 7-day limits, directory, branch, and session cost. Press the gauge and confirm to run /compact.cache-taxkaranb192Keeps the one-hour prompt cache warm while you step away, and stops a send into a cold cache once with the estimated rewrite cost.token-optimizeralexgreenshDraws a status bar above the prompt in the desktop app: session quality, context fill, a cache countdown, and the 5-hour and weekly limits, with buttons to clean up, start fresh, or keep the cache warm.
All 183 in Usage