Addy Osmani's Guide to Claude Code Mods: JS Files That Hook Every Session Event
daniel_mac8 · x · 2026-10-03
Addy Osmani published a getting-started guide to Claude Code mods; danielmac8 reshares it, calling mods a huge opportunity and announcing upgrades to his claude-mod-builder skill.
What mods are: small JS/TS files running inside your Claude Code session (2.1.287+, on by default). Under the hood they're hooks shipped inside plugins that see every session event; they can rewrite what Claude Code does and draw custom UI in terminal or desktop. No API knowledge needed—just describe the mod you want and allow hot reload.
The guide: builds Token Weather (80 lines), a live context-window forecast above the prompt (Clear 18% / Showers 67% / Storm 81%), then tours two larger mods, Blast Radius and Replay Theater. Type declarations for your build are written to the mod's .claude-plugin/types/ folder on each load.
More from coding & agent
- Stitch embeds AI agents in banking: the safety story is harnesses, not hack-proofing — alex_verem · 2026-11-17
- Agent Identity 101: one sequence diagram explains delegated, agent, and MCP auth patterns — adnan_hashmi · 2026-11-17
- Running Voice Agents in Production: Dev Shares 1,200 Calls/Day and 5,000 Calls/Month Setups — FullStackFrenzy · 2026-11-17
- How Comet improved a financial incident remediation agent's score from 0.34 to 0.57 with Opik — dl_weekly · 2026-11-17
- Jason Weston: Harness Optimization Hits 56.0, Distillation Adds 5.5 More — jaseweston · 2026-11-17
- Meta's Self-Improving Memory: agents discover their own memory skills and distill them into weights — jaseweston · 2026-11-17