CodedEthique
Plugins

Claude Mods let plugins change deeper system behavior

Recent updates to Claude Code give plugins more power to alter system functions, bringing new features and bigger security risks.

  • 3 min read
  • 9

Plugins for Claude Code can now go much deeper when changing how the system works. Since version 2.1.287, developers have been able to use new hooks called "Claude Mods" to rewrite core behaviors, not just add features on top.

Plugins get more control

Every new changelog for Claude Code since v2.1.287 has added more abilities for mods. Plugins can now change things like prompt autocompletion, how agents are started, and even permission checks for running tools. These mods can intercept many events inside Claude Code. They can add things to the display, stop operations, or rewrite content as it is being processed.

Before mods, plugins could only act at certain points: before and after a tool ran, or when prompts were sent. Now, mod hooks go into finer detail, interacting with screen rendering and the text of prompts themselves. For example, since v2.1.300, plugins can now rewrite the instructions and model for workflow agents at the point those agents are created. Before, they could only block an agent from being created.

Built-in oversight and easier installs

The update that brought mods also introduced "You should know," a built-in mod. This feature adds another agent to watch your work and point out anything you or Claude might miss. It works in first-party sessions when telemetry is on. Later updates tweaked its language and made it better at knowing who is making judgments.

Plugin installation got easier at the same time. Since v2.1.292, the --marketplace <source> option lets you add a marketplace and install a plugin in one command. The same checks used in the older add command still run, and any restrictions set by an organization will still apply. As installation gets simpler, it becomes more important to know exactly what a new plugin will do.

Security fixes and risks

The deeper reach of mods also brought security headaches, and the changelog shows regular fixes. In v2.1.290, a bug was fixed where user-installed mods could unload organizational plugins or ignore guardrails during confirmation checks. Now, if a mod tries to do this, it gets unloaded instead.

Other fixes followed. In v2.1.299, a problem was resolved where the proto key could be stripped from mod hook values. That had allowed some security checks to be bypassed. The same update also stopped Write or Edit tools from adding mods to the session folder without confirmation under certain approval settings. And v2.1.295 fixed an issue where a mod's guard could let calls through on reload.

These updates show that mods can even change the safety systems of other plugins. The power they offer means more things could go wrong if a plugin is not carefully checked.

What to check before installing a mod

The changelog for v2.1.290 says claude plugin validate now lists all the hooks a plugin registers, especially those that affect permissions, and shows if each one has a .catch. Running this command before installing a new plugin gives you a quick look at where it might reach into the system.

If you are building mods yourself, Claude Code has a built-in plugin-authoring skill. It checks your code for secrets like API keys before you share it and can help you write simple install instructions for other users. Mods are hot-reloaded, so changes are applied as soon as you save, but that also means it's easy to run unfinished mods by mistake.

Check the official Claude Code changelog for more about recent fixes and features. Full plugin documentation is at Claude Code Plugin Documentation.