AGCMD
AI Agent Commands

Claude Code mods, explained

Mods are the biggest change to how Claude Code can be customised since hooks and skills. Here is what they are, what they can reach, and how to try one safely.

What a mod is

A mod is a plugin that changes how Claude Code looks and behaves. It is made of JavaScript or TypeScript event handlers. Claude Code calls a handler when something happens, such as a tool call, a submitted prompt, or part of the interface being drawn, and the handler can watch the event, change it, or take it over.

Unlike settings hooks (shell commands you configure in settings.json), skills (Markdown instructions) and MCP servers (external tools), a mod runs inside Claude Code. That is why it can do things the others cannot:

  • Draw an interface: a pane beside the transcript or a band above the prompt, with tabs, buttons and text fields.
  • Restyle Claude Code itself: replace a tool call's row, the spinner, or the dialog Claude asks questions in.
  • Step into a tool call or request: hold a risky command and ask you first, answer a call without running it, or send a request to a different model.
  • Add a /command that runs your own function immediately, even while Claude is working.

Some of Claude Code's own features are already mods. /diff is one, and so is the loader for AGENTS.md. Run /plugin and open the Installed tab to see them under Built-in.

Where mods run

Mods are on by default in the terminal from v2.1.287 and in the Desktop app's Code tab from v2.1.286. Their hooks also run in the VS Code extension, in claude -p and in cloud sessions, but only the terminal and the Desktop app show what a mod draws.

Installing one

A mod installs as a plugin from a marketplace:

/plugin install token-chart@your-org        # inside a session
claude plugin install token-chart@your-org  # from your shell

Anthropic publishes sample mods in the claude-code-playground repository: token-weather draws a forecast of your context window above the prompt, blast-radius holds risky shell commands such as rm -rf or a force push and shows what they would change, and replay-theater adds a /replay command that steps through the edits Claude made in the last turn.

You can also just ask Claude Code for one. Describe the pane or command you want, and the built-in plugin-authoring skill writes the mod.

Trust before you install

This is the part to read twice. A mod runs with your permissions, inside Claude Code. Once loaded it can read and write your files, read environment variables and settings (including API keys), see every prompt and tool call, rewrite them, approve a tool call before you are asked, and spend usage on your plan. Mods are not sandboxed.

Before installing, list what a mod does without running it:

claude plugin validate ./some-mod

The hooks: and calls: lines show which events it handles and what it asks Claude Code to do. To turn mods off for one session, start with --safe-mode. To turn off every installed mod, set "disableAllHooks": true in ~/.claude/settings.json.

The "You Should Know" mod

One built-in mod worth enabling: cc-plugin-you-should-know runs a side agent that watches your back during longer tasks and shows a note above the prompt when it finds something you might miss. It is off by default; enable it with /plugin enable cc-plugin-you-should-know@builtin if it is available for your account.

Source: the mods overview in the Claude Code docs.