dsh-pwsh-guard:在 Shell 工具上拦截文本读写,引导智能体用 read / grep / glob
dsh-pwsh-guard 是 Steven-Qiang 维护的 DSH 工作流插件,在 pwsh、bash、ops_bash 上注册 ctx.tools.guard,拒绝 Select-String、Get-Content、cat、rg、node -e 等 Shell 文本读写,并在拒绝信息中指向 read、grep、glob。支持按规则组关闭、allowPatterns 放行及自定义 rules。安装使用 plugin_manager install_bundle(npm 或 GitHub)。非沙箱,列目录等能力不在范围内。
阅读全文