ClaudeCodeMod

All shelves / Mods / Usage

token-weather (hamzafer)

By hamzafer

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

Draws the context-window forecast above the prompt, plus how long the prompt cache has left.

Draws

Install

The marketplace name is claude-code-mods.

In your shell
claude plugin marketplace add hamzafer/claude-code-mods
claude plugin install token-weather@claude-code-mods
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.2.2
License
MIT
Repo stars
381
Last change
2026-10-15

What it can reach

  • Draws in the session
  • Reads usage or context figures

Claude Code 2.1.287 or later. The author says to restart after installing. Levels go by percent of the window, from Clear to Compact soon, so a 1M window stays Clear until 250k tokens. ❄ cache 4:15 estimates how long the prompt cache stays warm, counting down from the end of the last model request, tool steps included; it turns yellow under a minute and reads cache cold at zero. The countdown is an estimate from timing, not read from the API, and a model switch or /compact starts a fresh cache. It reads the cache lifetime, 5m or 1h, from the last response's usage in the transcript, and cacheTtl overrides it. It shows after the first request and hides after /clear, and with cache-clock set up the countdown hides.

Not the same repo as Anthropic's sample. The install name is token-weather@claude-code-mods. The marketplace, claude-code-mods, holds all of hamzafer's mods, cache-clock and context-bar among them. This one installs on its own, or from the checklist that npx claude-code-mods@latest opens. Watching the context window and the cache is why this page files it under usage. token-weather, Anthropic's sample, draws a one-line forecast of the context window above the prompt, fuller going from clear toward a storm. cache-clock, by the same author, draws a prompt-cache line under the status line with the time left, hits and misses, and what the next message re-caches once it goes cold. This one puts the forecast and an estimated cache countdown on one line.

Demo

The token-weather section on the author's GitHub page
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • session.endWhen a session ends
  • turn.stepAt each step of a turn
  • 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 source, 3 files. They load when you open them.

Facts

Author
hamzafer
Category
Usage
Marketplace
claude-code-mods
Repo
hamzafer/claude-code-mods
Folder
mods/token-weather
Version
0.2.2
License
MIT
Repo stars
381
Last change
2026-10-15
Language
TypeScript
Files
9

Other mods in Usage

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.context-inspectorYeonwooSungDraws what fills the context window and how much of it is waste: re-reads, near-duplicate output, and what compaction kept, with advice and its evidence.
All 183 in Usage