ClaudeModsClaude Code mod directory
☰
● 0 online · Views 0 times
+ Submit a project
← Back to projects
Tutorial resources · Development & debugging / Other / Security & privacy / Tools & integrations / Workflows & CI

Claude Code Launches Mods: Customize Behavior and Interface with TypeScript Plugins — Claude Code plugin · ClaudeMods

Report this workIs this your work? Claim it

Explore this Claude Code plugin on ClaudeMods and review its source and permissions. Anthropic introduces Mods for Claude Code: packaged as TypeScript modules within plugins, they can hook into events such as tool calls, prompts, turns, slash commands, and UI rendering to rewrite or intercept them; installed via /plugin, requires version 2.1.287+. Official examples include

SShakthi@v_shakthi

1/

Claude Code now takes mods. You change how it behaves, customize the UI, and swap in your own features. A mod is a small TypeScript module that ships inside a plugin. It hooks events as they happen: tool calls, prompts, turns, slash commands, and every UI draw. It can watch an event, rewrite it, or answer it without passing it on. Install with /plugin in the CLI or the desktop app. Write one in a few lines of TypeScript, or have Claude build it and hot reload it in the session. You need Claude Code 2.1.287 or later. Mods are on by default. Anthropic shipped three examples. Token Weather sits above the prompt and forecasts your context window: how full it is, plus a sparkline of the last 12 turns. Blast Radius catches risky shell commands such as rm -rf, git reset --hard, and a force push before they run, then shows what the command would touch in a side pane. Replay Theater records every file edit Claude makes in a turn. Run /replay and step through the diffs one at a time. Anthropic already used mods to build /diff and AGENTS md support. Keep yours private, or submit them to the Claude directory. Sample mods are in the Claude Code Playground repo. Mods run with the same access to your machine as Claude Code. Install only from sources you trust. On Team and Enterprise plans, a built-in mod loads first and blocks overrides of permission deny rules. Getting started: https://claude.dev/blog/getting-started-with-claude-code-mods/ #ClaudeCode #ClaudeAI #Anthropic #DeveloperTools #TypeScript #AIEngineering #DevTools #Plugins

Translated

About this mod

Claude Code now supports Mods: small TypeScript modules distributed with plugins that can alter Claude Code's behavior, customize the interface, and replace functionality. Mods can hook into live events—tool calls, prompts, turns, slash commands, and every UI render—and can listen, rewrite, or respond directly without passing the event further.

Installation: Use /plugin in the CLI or desktop app; writing a mod takes just a few lines of TypeScript, or you can have Claude generate one and hot-reload it in the session. Requires Claude Code 2.1.287 or later, with Mods enabled by default.

Anthropic provides three examples:

  • Token Weather: positioned above the prompt box, predicts context window usage (how full it is) and shows a mini trend chart for the last 12 turns.
  • Blast Radius: intercepts dangerous shell commands like rm -rf, git reset --hard, and force push before execution, and displays in the sidebar what the command will affect.
  • Replay Theater: records every file edit Claude makes in a turn; running /replay lets you view diffs one by one.

Anthropic has implemented /diff and AGENTS.md support using Mods. Mods can remain private or be submitted to the Claude directory; example Mods are located in the Claude Code Playground repository.

Installation

Check the author's README for the marketplace and plugin name first. Commands may change as the repository evolves.

在 CLI 或桌面应用中使用 /plugin
Original text / README

Claude Code now takes mods.

You change how it behaves, customize the UI, and swap in your own features. A mod is a small TypeScript module that ships inside a plugin. It hooks events as they happen: tool calls, prompts, turns, slash commands, and every UI draw. It can watch an event, rewrite it, or answer it without passing it on.

Install with /plugin in the CLI or the desktop app. Write one in a few lines of TypeScript, or have Claude build it and hot reload it in the session. You need Claude Code 2.1.287 or later. Mods are on by default.

Anthropic shipped three examples.

Token Weather sits above the prompt and forecasts your context window: how full it is, plus a sparkline of the last 12 turns.

Blast Radius catches risky shell commands such as rm -rf, git reset --hard, and a force push before they run, then shows what the command would touch in a side pane.

Replay Theater records every file edit Claude makes in a turn. Run /replay and step through the diffs one at a time.

Anthropic already used mods to build /diff and AGENTS md support. Keep yours private, or submit them to the Claude directory. Sample mods are in the Claude Code Playground repo.

Mods run with the same access to your machine as Claude Code. Install only from sources you trust. On Team and Enterprise plans, a built-in mod loads first and blocks overrides of permission deny rules.

Getting started: https://claude.dev/blog/getting-started-with-claude-code-mods/

#ClaudeCode #ClaudeAI #Anthropic #DeveloperTools #TypeScript #AIEngineering #DevTools #Plugins

View original source ↗

Similar projects