You can now customize what Claude Code does with mods

Mods are now available in Claude Code, letting you add small TypeScript functions that run before, after, or instead of what Claude Code does.

Feature
Plugins
Department
Engineering
Related links
Share
A Claude Code mod that holds git push, with the Push guard question it raises in the terminal

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.

Earlier updates

Sep 30, 2026
Sep 29, 2026
Sep 28, 2026
Sep 25, 2026
Sep 24, 2026
All updates