dsh-tool-gate

按项目控制工具可见性:每一步装配前,会话从工作目录向上最多 32 层查找 `.dsh/tool-gate.json`,据此裁剪交给模型的工具集 —— 支持 allow / deny 名单与 `prefix*` 通配,找不到规则文件时为 off;另有 `tool_gate_status` 工具报告当前模式、规则文件来源与被隐藏的工具。

插件介绍

按项目控制工具可见性:每一步装配前,会话从工作目录向上最多 32 层查找 `.dsh/tool-gate.json`,据此裁剪交给模型的工具集 —— 支持 allow / deny 名单与 `prefix*` 通配,找不到规则文件时为 off;另有 `tool_gate_status` 工具报告当前模式、规则文件来源与被隐藏的工具。

安装方式

从 GitHub 安装

dsh plugin --profile web add github:xuxue04403/dsh-tool-gate

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.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。