Three Official Claude Code Mods Examples: Usage Bar, Command Guard, Replay Theater
xiaohu · x · 2026-10-02
xiaohu summarizes Claude Code's official Mods examples and underlying mechanics. A Mod is a JS/TS module packaged in a Plugin, running in-session and subscribing to events to observe, rewrite input, or return results directly.
Official examples: a context-usage bar above the input box (80 lines of code, hot-reloadable with adjustable thresholds), Blast Radius listing files and disk usage before deletion, and Replay Theater for stepping through each edit's diff via r or /replay. Mods follow the Plugin spec (plugin. manifest plus hooks config), and the built-in /diff panel is itself a Mod that can be disabled or replaced.
More from coding & agent
- Dev argues Rust would be better if modules, not crates, were the compilation unit — zetalyrae · 2026-10-25
- Formal Verification Yields to Static Analysis, Which Yields to Better Language Design — xennygrimmato_ · 2026-10-25
- 'Slurm's defense remains annoyingly strong': dev watches agents hit HPC wall — sloppenheimer · 2026-10-25
- 5 open-source tools turn user interviews into a full content marketing workflow — sven_ai · 2026-10-25
- Codex usage window hits day 20, reset imminent — dotey · 2026-10-25
- Six-step agent factory turns one concept image into rigged Blender game assets — AI_Andrew · 2026-10-25