---
title: "Claude Code推出mods外掛系統：用TypeScript重寫行為和接口"
url: "https://claudemods.dev/zh-tw/builds/claude-code-just-got-mods-a-way-to-customize-how-it-behaves--cf8db7"
source: "https://x.com/i/status/2105768033419743253"
source_type: "resource"
author: "AGTP"
author_handle: "AGTPinsights"
stars: 0
category: "多代理與協作"
categories: ["agents", "other", "themes", "tools", "workflow"]
tags: ["claude-dev", "customization", "hooks", "mods", "next-steps", "playground", "plugins", "typescript"]
permission_level: null
scan_complete: false
install: "claude plugin marketplace add anthropics/claude-plugins-community\nclaude plugin install next-steps@claude-community"
added: "2026-10-04T10:40:45.023Z"
updated: "2026-10-04T10:40:45.023Z"
locale: "zh-tw"
content_locale: "zh-tw"
---

# Claude Code推出mods外掛系統：用TypeScript重寫行為和接口

Claude Code 添加了 mods 功能，允許使用幾行 TypeScript 自訂行為和介面，透過 /plugin 作為外掛安裝，構建在鉤子上； Anthropic 表示 /diff 和 AGENTS.md 支援是透過 mod 構建的。

## Description

十月，2、2026、ClaudeDevs 宣布 Claude Code 支援 mod：使用幾行 TypeScript（或讓 Claude 編寫它們）來更改其行為、自訂 UI 或替換功能。 Mod 打包在外掛中，並透過 CLI 或桌面應用程式中的 /plugin 安裝；在下面，它們是鉤子——在 Claude Code 內部執行的小型 JS/TS 模組，可以攔截工具調用、提示、模型請求和渲染，並更改結果。他們還可以添加自己的 UI 和命令，甚至分叉代理以進行額外的工作（例如每輪寫入記憶體的分類器）。 Anthropic 表示 /diff 和 AGENTS.md 支援是透過 mod 實現的。與 Claude Code 2.1.287 一起發布，包括 106 CLI 變更；範例 mod 正在新增至 Claude Code Playground 儲存庫中，claude.dev 部落格上有 Addy Osmani 的初學者指南。範例 next-steps mod 可以建議下一步。注意：mods 與 Claude Code 具有相同的機器存取權限，官方建議僅安裝來自可信任來源的 mods；您可以將它們保密或將它們提交到 claude.ai/directory。社群反應熱烈，有些使用者甚至在 Claude Code 微調器中執行 Doom。

## Install

```
claude plugin marketplace add anthropics/claude-plugins-community
claude plugin install next-steps@claude-community
```

## Original README

Claude Code just got mods, a way to customize how it behaves and looks. Here's what you need to know.

The ClaudeDevs account announced it on Oct 2, 2026, one day after the http://Claude.dev launch. The post says you can now mod Claude Code to change how it behaves, customize the UI, and swap in your own features. It had 685.1K views within hours.

A mod is a few lines of TypeScript, or you can have Claude build it for you by prompting it. Mods ship inside plugins, so you install them with /plugin in the CLI or desktop app. Under the hood, mods are hooks. Each one is a small JavaScript or TypeScript module that runs inside Claude Code. It can intercept internal events like tool calls, prompts, model requests and renders, and change what actually happens. It can also add its own UI and commands. Mods can even fork agents to do extra work, such as a custom classifier that writes memories every turn.

Anthropic says it used mods to build features like /diff and AGENTS.md support. Claude Code 2.1.287 carries the release, with 106 CLI changes. Pre-built sample mods are being added to the Claude Code Playground repo. A getting started guide is on the http://claude.dev blog, written by Addy Osmani. One user says mods have been in early preview for a couple of weeks.

One example is the next-steps mod, which suggests what to do next, including picking skills and other commands. Install it with:
claude plugin marketplace add anthropics/claude-plugins-community
claude plugin install next-steps@claude-community

Mods run with the same access to your machine as Claude Code itself. Anthropic says to only install mods from sources you trust. You can keep a mod to yourself, or submit it to the Claude directory at http://claude.ai/directory.

Builders are reacting fast. Boris Cherny calls it customizing Claude by just prompting it. Lydia Hallie describes mods as middleware for Claude Code. Thariq says all software is becoming malleable. Users are asking for the same in Codex, and one got Doom running in the Claude Code spinner.

Key numbers:
- 685.1K views on the announcement post
- Claude Code 2.1.287
- 106 CLI changes in that release
- Announced Oct 2, 2026

Mods are a plugin-based way to rewrite Claude Code's behavior and UI in TypeScript.
