AI Catchup

Claude Code Mods Let Developers Customize the CLI and Desktop App

By 6 min read

Anthropic introduced Claude Code mods as a plugin-based way to customize how Claude Code behaves and looks. Small JavaScript or TypeScript modules can add interface elements, change tool calls, or replace built-in features. Mods run with Claude Code's access to your machine, so review their source before installing.

Anthropic has introduced Claude Code mods, JavaScript or TypeScript functions that let developers change how Claude Code behaves and looks. Mods can rewrite prompts, change or block tool calls, add interface elements, or replace built-in features. They ship inside plugins, so developers can install and share them through Claude Code's plugin system. (Anthropic's Claude Code mods announcement)

The launch turns Claude Code's customization layer into something developers can extend with small JavaScript or TypeScript modules instead of waiting for a built-in setting. Anthropic says you can write a mod yourself or ask Claude Code to create one. (Anthropic's Claude Code mods announcement)

Key Takeaways

What a Mod Can Change

Claude Code emits events as it works, and a mod can run before an event, after it, or instead of its default handling. Anthropic's examples include rewriting a prompt, blocking or retrying a tool call, approving or denying a permission request, and redacting secrets from tool output before Claude reads it. (Anthropic's Claude Code mods announcement)

Mods can also add or replace parts of the interface, including buttons, inputs, and custom panels. Anthropic says built-in features such as /diff now ship as mods, which means users can disable that mod or replace it with their own version. (Anthropic's Claude Code mods announcement)

Claude Code v2.1.287 added a built-in mod named You should know. A side agent watches for details that the user or Claude might miss. To enable it, run /plugin enable cc-plugin-you-should-know@builtin; Anthropic's release notes qualify the command for first-party sessions with telemetry on. (Claude Code v2.1.287 release notes)

Install and Share Mods Through Plugins

Anthropic says mods are available in the Claude Code CLI and desktop app. You can install a plugin that includes a mod from the Claude directory or by running /plugin in the CLI. To share a mod, package it in a plugin and submit that plugin to the directory. (Anthropic's Claude Code mods announcement)

Mods are on by default. In the terminal, use Claude Code v2.1.287 or later; the Desktop app includes its own copy of Claude Code, and mods work there from v2.1.286. A mod's hooks run in every kind of session that loads the plugin, but only the terminal and the Desktop app show what it draws: in the VS Code extension's chat panel and in claude -p, hooks run and nothing draws. (Claude Code docs, "Mods overview")

If you ask Claude to write a mod, it loads only in the session that made it. To keep it, copy its directory out of the session's mods folder, then load it with claude --plugin-dir or add it to a marketplace so others can install it. (Claude Code docs, "Create a mod") Our step-by-step guide to building a Claude Code mod walks through the files, hooks, state, and tests.

The official getting-started guide shows how to build a first mod as a plugin, add a hooks module in JavaScript or TypeScript, validate it, and test it in Claude Code; its example module is a .mjs file. It also explains how plugins can be installed from a marketplace. (Claude Code mods getting-started guide)

Review the Security Boundary

Mods run with the same access to your machine as Claude Code itself; Anthropic says they are not sandboxed. A mod can interact with events and tool calls in the session, so read its source and install only from publishers you trust. (Anthropic's Claude Code mods announcement)

Plugin controls still matter for managed teams. Anthropic says administrators can allow or block plugin marketplaces. On Team and Enterprise plans, and on any machine with managed settings, the built-in sec-default mod loads ahead of every mod a person installs and blocks certain risky actions; administrators who load their own mods first should keep sec-default in the list if they want those restrictions. (Anthropic's Claude Code mods announcement) (Claude Code docs, "Mods reference")

Why the Release Matters

Mods give developers a way to tailor Claude Code's behavior and interface to a project or team workflow, while keeping distribution inside the existing plugin model. Before installing a third-party mod, review both what it changes and the access it inherits from Claude Code. (Anthropic's Claude Code mods announcement)

Corrections and Updates

  • October 9, 2026: This page said the getting-started guide adds a TypeScript module; the guide's hooks module is JavaScript or TypeScript, and its example is a .mjs file. The summary, lede and FAQ now say JavaScript or TypeScript too.
  • October 9, 2026: Added the minimum Claude Code versions for mods, where mods draw, and that a mod written by Claude stays in its session until you copy it out.
  • October 3, 2026: Added activation details for the built-in You should know mod.

Sources

Related coverage

Frequently Asked Questions

What are Claude Code mods?

Mods are JavaScript or TypeScript functions that change Claude Code's behavior or interface. They ship inside plugins, so you can install or share them through Claude Code's existing plugin workflow.

Where can I use a Claude Code mod?

Anthropic says mods are available in the Claude Code CLI and desktop app: the terminal needs v2.1.287 or later and the Desktop app's Code tab v2.1.286 or later. In the VS Code extension's chat panel and in claude -p, a mod's hooks run but nothing it draws appears. Install mod plugins from the Claude directory or with /plugin.

Can Claude Code mods change tool calls?

Yes. A mod can block, rewrite, or retry a tool call, approve or deny a permission request, change the interface, or replace a built-in feature.

Are Claude Code mods sandboxed?

No. Anthropic says mods run with the same access to your machine as Claude Code itself. Install them only from sources you trust.

Get the weekly AI Catchup

Tools, practices, and what matters, in your inbox every week.