
Mods are now available in Claude Code, letting you change how it behaves. They're small TypeScript functions that hook into what Claude Code does, like calling a tool, asking for permission, or drawing part of the screen, and run before it, after it, or instead of it.
You can now use a mod to rewrite a prompt, block or retry a tool call, redact secrets from tool output, or add buttons and panes to the terminal or the desktop app. Ask Claude Code to write one, and it can install and hot reload it in your session.
Mods ship inside plugins, so your existing plugin controls apply. On Team and Enterprise plans, and on any machine with managed settings, a built-in mod called sec-default loads first and is designed to stop mods that users install from doing risky things, like overriding your permission deny rules.
Mods aren't sandboxed, so install them only from sources you trust. The built-in /diff is now a mod you can turn off or replace.
