dsh-approval-translator

Adds an Explain this action button under the permission approval dialog: one click asks the session model for a plain-language description of the pending operation — what it does, which files it touches, whether it modifies or deletes anything, and the privacy risk — then gives a risk level and an allow or reject recommendation. Explanations are generated in Simplified Chinese, for readers who cannot parse the command.

Overview

Adds an Explain this action button under the permission approval dialog: one click asks the session model for a plain-language description of the pending operation — what it does, which files it touches, whether it modifies or deletes anything, and the privacy risk — then gives a risk level and an allow or reject recommendation. Explanations are generated in Simplified Chinese, for readers who cannot parse the command.

Installation

Install from GitHub

dsh plugin --profile web add github:zhaoqiminggg/dsh-approval-translator

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.