Claude Code gets "Mods": change the tool from the inside with JavaScript or TypeScript
What happened
Anthropic has added Mods to Claude Code. They're a kind of middleware: code that sits between your commands and the tool itself. A mod can intercept a tool call (for example, before a command runs), react to your prompt, add a panel to the interface, or add a new command. It works in the CLI and the desktop app, and only partly in the VS Code extension. An official "You should know" plugin also shipped: a separate agent watches what Claude outputs and flags anything important that slipped past you.
Why it matters
You can now build your own guardrails, like "never run DROP on the production Supabase database", or any panel your project needs, without waiting for Anthropic to add it. One caveat: mods run with your permissions and are not sandboxed, so only install ones you trust.