ClaudeMods
☰
EN
● 0 online · Views 0 times
SponsorsSubmit a project
GitHub repositories · by BrightGold70

token-weather

A Claude Code mod that draws a live forecast of the context window above the prompt, showing fill percentage, the last turn's addition, and a colored bar of what fills the window.

BrightGold70@BrightGold70

BrightGold70/skills/tree/main/mods/token-weather

Translated

About this mod

token-weather is a Claude Code plugin that renders a live context-window forecast above the prompt. It displays the current fill percentage, how much the last turn added, and a colored bar reflecting what fills the window in /context's colours.

Install on a Mac:

  1. Link the mod into your mods directory:
mkdir -p ~/.claude/mods
ln -sfn ~/orca/skills/mods/token-weather ~/.claude/mods/token-weather
  1. Register it by adding to the "env" block of ~/.claude/settings.json:
"CLAUDE_CODE_PLUGIN_DIRS": "/Users/<you>/.claude/mods/token-weather"

Multiple plugin folders are joined with ':'.

  1. Validate and test, then restart Claude Code:
claude plugin validate ~/.claude/mods/token-weather
claude plugin test ~/.claude/mods/token-weather

A running session never picks up a newly registered mod; the plugin table is fixed at launch, so restart after registering.

Files: .claude-plugin/plugin.json (manifest), hooks/hooks.json → hooks/register.tsx (hooks module), hooks/weather.ts (pure helpers with tests), types/index.d.ts (the $.state contract).

Installation

Check the author's README for the marketplace and plugin name first. Commands may change as the repository evolves.

claude plugin marketplace add BrightGold70/skills
claude plugin install token-weather
Original text / README

token-weather

A Claude Code mod: a live forecast of the context window, drawn above the prompt — fill percentage, what the last turn added, and a bar of what fills the window in /context's colours.

Install on a Mac

The mod loads from ~/.claude/mods/token-weather, which is a symlink into this checkout, so a git pull updates it and the settings line is the same on every machine.

# 1. Link the mod (adjust the checkout path if yours differs). If a real
#    ~/.claude/mods/token-weather directory already exists, move it away first:
#    `ln -sfn` onto a directory puts the link INSIDE it instead of replacing it.
mkdir -p ~/.claude/mods
ln -sfn ~/orca/skills/mods/token-weather ~/.claude/mods/token-weather

# 2. Register it: add to the "env" block of ~/.claude/settings.json
#      "CLAUDE_CODE_PLUGIN_DIRS": "/Users/<you>/.claude/mods/token-weather"
#    Several plugin folders are joined with ':'. Use an absolute path or ~.

# 3. Check it, then restart Claude Code
claude plugin validate ~/.claude/mods/token-weather
claude plugin test ~/.claude/mods/token-weather

A running session never picks up a newly registered mod — the plugin table is fixed at launch — so restart after step 2. claude plugin list reports a fresh process, not your session, and can say loaded while the session you are in has not.

Files

  • .claude-plugin/plugin.json — manifest
  • hooks/hooks.json → hooks/register.tsx — the hooks module
  • hooks/weather.ts — pure helpers; hooks/weather.test.ts tests them
  • types/index.d.ts — the $.state contract

.claude-plugin/types/ is written by Claude Code at every load (API typings for tsc -p) and ignores itself; it is never committed.

Other works with the same name

Similar projects