---
title: "Claude Code が Mods を発表：TypeScript プラグインで動作とインターフェースをカスタマイズ"
url: "https://claudemods.dev/ja/builds/claude-code-now-takes-mods-you-change-how-it-behaves-customi-4ab582"
source: "https://x.com/i/status/2105828457888551307"
source_type: "resource"
author: "Shakthi"
author_handle: "v_shakthi"
stars: 0
category: "開発・デバッグ"
categories: ["debug", "other", "security", "tools", "workflow"]
tags: ["Blast Radius", "Claude Code", "Replay Theater", "Token Weather", "TypeScript", "mods", "イベントフック", "プラグイン"]
permission_level: null
scan_complete: false
install: "在 CLI 或桌面应用中使用 /plugin"
added: "2026-10-04T10:40:45.280Z"
updated: "2026-10-04T10:40:45.280Z"
locale: "ja"
content_locale: "ja"
---

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

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

## Description

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 リポジトリにあります。

## Install

```
在 CLI 或桌面应用中使用 /plugin
```

## Original 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
