Building a Claude Code Mod: Hooks, State, and the Runtime Event Chain
This guide walks through building a Claude Code Mod from scratch using the Token Weather example, explaining the plugin structure, event hooks, state management, UI rendering, and the three hook patterns (observe, rewrite, answer), while comparing Claude Code's host-centric runtime control plane with DeepSeek Harness's plugin-first architecture.
