Extending Claude Code Itself with Claude Code Mods

Claude Code Mods are TypeScript/JavaScript functions that run inside the Claude Code process to observe, rewrite, or answer events. This article builds a mod that blocks dangerous Bash commands and explains how Mods work, their design, and security.