petershk/explain-permission
explain-permission
一个 Claude Code 插件,会在你批准每个权限请求前打开侧边面板,用直白的英语说明 WHAT、WHY 和 RISK。
关于这个 mod
explain-permission 是一个 Claude Code 插件。当 Claude 在执行某项操作前停下来问“可以这样做吗?”,它会在对话旁打开一个面板,用白话解释这个请求:WHAT(青色)说明实际会在电脑或网络上做什么;WHY(洋红色)根据对话内容说明为什么需要该操作;RISK(绿/黄/红)标出低、中或高风险,并指出哪些内容会被传送、删除、发布或收费。对话框会立即出现,说明则在几秒后补上。
用法:使用 claude --plugin-dir /path/to/explain-permission 启动,或输入 /explain-permission 手动打开面板。全屏模式下它停靠在右侧,否则位于提示输入框上方,并会在宽度至少 144 列的终端中自动打开。
注意:需要支持 mods(function hooks,early access 功能)的新版 Claude Code。每次说明都会在你的账户上额外发起一次模型调用,并把当前对话发送给 Claude;失败时改用 Haiku,且不带对话。它只负责解释,不会替你批准或拒绝任何请求。
安装(GitHub):这个目录同时也是插件市集,可以执行 claude plugin marketplace add petershk/explain-permission 和 claude plugin install explain-permission@hermann-mods,或在 Claude Code 中使用 /plugin。需要 Claude Code 2.1.287 或更高版本。
安装
请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。
claude plugin marketplace add petershk/explain-permission claude plugin install explain-permission
原文 / README
explain-permission
A Claude Code mod. When Claude stops to ask "is this ok?" before running something, a pane opens beside the conversation and explains the request in plain English:
- WHAT (cyan): what it will actually do on your computer or online
- WHY (magenta): why it's needed for what you asked, based on the conversation
- RISK (green / yellow / red): low, medium or high, and anything that gets sent, deleted, published or paid for
The dialog appears right away; the explanation fills in a few seconds later. Read the pane before you answer.
Use it
claude --plugin-dir /path/to/explain-permission
Type /explain-permission to open the pane yourself. It docks on the right in fullscreen mode, and otherwise sits
above the prompt. It opens by itself on terminals at least 144 columns wide.
Good to know
- Needs a recent Claude Code with mods (function hooks), an early-access feature.
- Each explanation is one extra model call on your own account. It asks Claude, with the conversation so far, and falls back to Haiku without the conversation if that fails.
- It only explains. It never approves or denies anything for you.
Made by Hermann Peterscheck · https://hermann.fyi
Install from GitHub
This folder is also a plugin marketplace. Once it's in a GitHub repo:
claude plugin marketplace add petershk/explain-permission
claude plugin install explain-permission@hermann-mods
or the same with /plugin inside Claude Code. Needs Claude Code 2.1.287 or later.
