Anthropic just gave Claude Code a modding engine
Anthropic just launched Claude Code Mods, letting developers hack the AI coding tool with simple TypeScript functions. Mods can intercept tool calls, rewrite prompts, draw custom UI elements, and even replace native features like /diff. Better yet, you can ask Claude to write and hot-reload mods for itself. Keep in mind that mods run without sandboxing and hold full machine access.

Tinkering with developer tools used to mean waiting months for an official update, or wrestling with brittle webhook configs that could only watch from the sidelines.
Anthropic just rolled out Claude Code Mods, letting developers completely reshape how Claude Code acts and looks using lightweight TypeScript functions. The update works across both the CLI and the desktop app.
Hijack prompts, tweak buttons, swap core tools
Instead of treating the AI client like a black box, Claude Code now fires events whenever it does anything. That includes invoking a tool, drawing terminal UI, or prompting for local permissions.
A mod is simply a TypeScript function hooked into these events. It can execute before, after, wrap around, or completely override built-in behavior. You can rewrite prompts before they touch the model, scrub API keys from terminal output, or add custom buttons to the interface.
Anthropic even converted its own built-in features, like the /diff command, into default mods. That means you can disable native utilities and slot in your own alternatives. You can even ask Claude Code to write a mod for itself and hot reload it immediately inside your active session.
Raw machine access meets enterprise guardrails
Power like this comes with a glaring catch: mods are not sandboxed. They run locally with the exact same machine-level permissions as Claude Code itself.
Installing an untrusted mod is functionally identical to piping an unverified bash script straight into your terminal. If a malicious author wants to exfiltrate files or execute local binaries, nothing inside the runtime stops them.
To keep enterprise IT departments from revolting, Anthropic packages mods inside plugins subject to workspace controls. Team and Enterprise accounts automatically load a built-in sec-default mod first, preventing user-installed mods from quietly neutering safety rules.
Why it matters
Anthropic is turning Claude Code into the Neovim of AI agents. Rather than trying to please every engineering workflow under the sun, they are shipping a minimal core and letting developers script their own bespoke tooling.
For engineers, this makes Claude Code wildly adaptable. If you want pipeline status checks sitting beside your chat, or an audit logger intercepting every command, a few lines of TypeScript get it done. It is immediately useful if you already live in the CLI.
However, skipping sandbox isolation feels like an accident waiting to happen once community plugin registries take off. While OpenAI keeps its consumer interfaces tightly locked down, Anthropic is winning over hardline developers by offering total control, assuming those developers do not shoot themselves in the foot first.
Sources (1)
- claude.com(opens in a new tab)Originalclaude.com