跳到正文
Ado Kukic· X:Ado Kukic(Anthropic 开发者关系,Claude Code) (@adocomplete)·· 2 小时前AI 评分48

Anthropic 员工演示 Claude Code mods 拦截危险 shell 命令

AI 导读

Anthropic 员工演示了 Claude Code mods 如何拦截危险 shell 命令。mods 是可挂载到事件上的函数,能改变 Claude Code 的外观与行为,并可在终端中绘制自己的 UI。该演示会暂缓执行有风险的 shell 命令,让用户先看清它将要删除的内容。

正文

Claude Code mods change how Claude Code looks and behaves. They are functions that hook into events, change what it does, and can draw their own UI in the terminal.

This one holds risky shell commands so you can see what it would delete.

来源:Ado Kukic · x.com