←新闻详情

The Decoder更新于 10月13日 12:45

Anthropic 为 Claude Code 推出 Mods 插件系统

Claude Code's new Mods system lets developers rewrite the AI coding tool from the inside

AI 导读

Anthropic 为 Claude Code 发布 Mods,这是一套运行在工具内部的中间件,开发者可用 JavaScript 或 TypeScript 函数挂载工具调用、用户提示词和 UI 渲染等事件,从而自定义界面与行为,/diff 等内置功能已用 Mods 实现。官方在 GitHub 提供示例 Mods,Mods 以用户权限运行且不做沙箱隔离,Anthropic 提醒只从可信来源安装,企业可控制允许加载的 Mods。首个官方 Mod 插件名为 You Should Know,会启动一个独立智能体监视 Claude 输出,发现用户可能遗漏的重要信息时发出 Heads up 提示,可用 /plugin enable cc-plugin-you-should-know@builtin 开启。

推荐理由

AI 评分 71

原文给出了 Mods 的插件机制、权限模型和官方示例,读者可据此判断 Claude Code 的可扩展边界。

主题

标签

正文

当前显示原文,中文全文译文尚未就绪。

Anthropic released "Mods" for Claude Code, essentially middleware that runs directly inside the tool. The plugin-based system lets developers change how Claude Code looks and works. Mods are JavaScript or TypeScript functions that hook into specific events, from tool calls and user prompts to UI rendering. That means developers can add custom panels next to the chat, intercept tool calls, or wire up entirely new commands. Some built-in features like the /diff command are already built as Mods, the company says.

Anthropic provides sample Mods on GitHub . Mods run with the user's permissions and aren't sandboxed, so Anthropic warns users to only install them from trusted sources. They work in the CLI, the desktop app, and partly in the VS Code extension. Organizations can control which Mods are allowed to load.

The first official Mod plugin is called "You Should Know." It spins up a separate agent that watches Claude's output and sends a "Heads up" message when it spots important information users might have missed. You can turn it on with /plugin enable cc-plugin-you-should-know@builtin .

来源

The Decoder