Addy Osmani's guide: build an 80-line Token Weather context-window mod for Claude Code
ClaudeDevs · x · 2026-10-02
Anthropic added pre-built sample mods to the Claude Code Playground repo and published a getting-started guide by Addy Osmani.
- The guide builds Token Weather, an 80-line mod that shows a live forecast of the context window above the prompt (Clear at 18%, Showers at 67%, Storm at 81%)
- Explains the mechanics: a plugin folder with hooks. pointing at a module exporting register(on), where on(event, matcher, hook) sees every session event
- Also tours two larger mods: Blast Radius and Replay Theater
- Requires Claude Code 2.1.287+; mods are on by default and type declarations are written to .claude-plugin/types/
More from coding & agent
- Generic API-catalog MCP server vs one tool per job: a context-bloat experiment — MandeepKaur9407 · 2026-11-16
- Berkeley paper: LLMs answer with stale values even when the update is in context — ombre-ai · 2026-11-16
- skills-gate: one gate skill fronts 148 agent skills at just 389 tokens — Distinct-Pie2389 · 2026-11-16
- Open-weight Karpo-Decision-31B tops Decision Index at 73.9, one forward pass per answer — CodeByPoonam · 2026-11-16
- shadcn boosts @uisdk: one-shot UI rebuild that's instantly E2E-testable by AI — shadcn · 2026-11-16
- AI agent deletes 43,599 lines of OpenClaw test code in one PR — vincent_koc · 2026-11-16