ClaudeModsClaude Code mod ディレクトリ
☰
● 0 人がオンライン ・閲覧 0 回
+ 作品を投稿
← 作品一覧へ
チュートリアル · 開発・デバッグ / その他 / セキュリティ・プライバシー / ツール・連携 / ワークフロー・CI

Claude Code が Mods を発表:TypeScript プラグインで動作とインターフェースをカスタマイズ — Claude Code プラグイン · ClaudeMods

この作品を報告あなたの作品ですか?所有者確認へ

ClaudeMods でこの Claude Code プラグインのソースと必要な権限を確認できます。 Anthropic が Claude Code に Mods を導入:プラグイン内に TypeScript モジュールとしてパッケージ化され、ツール呼び出し、プロンプト、ターン、スラッシュコマンド、UI 描画などのイベントをフックして書き換えたり傍受したりできる;/plugin でインストール、2.1.287+ が必要。公式サンプルには

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

翻訳済み

この mod について

Claude Code は Mods をサポートしました:プラグインとともに配布される小さな TypeScript モジュールで、Claude Code の動作を変更し、インターフェースをカスタマイズし、機能を置き換えることができます。Mod はリアルタイムで発生するイベント——ツール呼び出し、プロンプト、ターン、スラッシュコマンド、および毎回の UI 描画——をフックし、リスニング、書き換え、またはイベントを下流に渡さずに直接応答できます。

インストール方法:CLI またはデスクトップアプリで /plugin を使用;数行の TypeScript を書くだけで作成でき、Claude に生成させてセッション内でホットリロードすることもできます。Claude Code 2.1.287 以降が必要で、Mods はデフォルトで有効です。

Anthropic は 3 つの例を提供しています:

  • Token Weather:プロンプトボックスの上に配置され、コンテキストウィンドウの使用状況(どれだけ埋まっているか)を予測し、直近 12 ターンのミニトレンドチャートを表示します。
  • Blast Radius:rm -rf、git reset --hard、強制プッシュなどの危険なシェルコマンドを実行前に傍受し、そのコマンドが何に影響するかをサイドバーに表示します。
  • Replay Theater:Claude が 1 ターンで行ったすべてのファイル編集を記録し、/replay を実行すると diff を一つずつ確認できます。

Anthropic は Mods を使用して /diff と AGENTS.md のサポートを実装しました。Mod は非公開にすることも、Claude ディレクトリに提出することもできます。サンプル Mod は Claude Code Playground リポジトリにあります。

インストール

まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。

在 CLI 或桌面应用中使用 /plugin
原文 / 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

元のソースを見る ↗

関連作品