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
- Thorsten Ball: Reconsider everything you assumed about coding models 4-6 months ago — pvncher · 2026-10-02
- Benzi: compiler-backed coding agent claims 78.2% SWE-bench Verified at under 10¢ per fix — DonkeyTheKing · 2026-10-02
- GPT-6.1 Astra builds Gaussian Splats via Blender MCP, viewed in SuperSplat — willeastcott · 2026-10-02
- Hoshikage Pulse: an Opus 5.5-built rhythm game with 128 songs, playable in browser — TAbrodi · 2026-10-02
- Conductor Mobile launches: run and control a team of cloud coding agents from iPhone — charlieholtz · 2026-10-02
- Do AI agents actually save time, or do you spend more time fixing their mistakes? — MantisReka · 2026-10-02