SeverusZh/dsh-yolo-mode
dsh-yolo-mode —— 一款利用LLM驱动的自动批准插件,用于DeepSeek Harness沙箱升级(内置预设+自定义权限级别,默认关闭)。
Project Overview项目介绍
This is a native plugin built exclusively for DeepSeek Harness that enables LLM-powered automatic approval of sandbox escalation requests. It works by intercepting escalation requests when the session is in a writable sandbox mode with the approval strategy set to ask. It then routes requests to an LLM to decide whether to approve, deny, or escalate the request to manual review, following a fail-closed principle where all uncertain or error paths default to denial. To install the latest version, run the command dsh plugin --profile web add dsh-yolo-mode via the DSH CLI.
After installation, the plugin automatically mounts its two entry points via the bundled patch file, so no manual configuration insertion is needed. Users can choose from six built-in permission presets, ranging from fully manual (off) to fully automatic approval (yolo), or create a fully custom permission hierarchy that sets rules per tool and per target mode. It also includes a graphical settings panel and a decision statistics panel to help users track approval outcomes. This plugin is ideal for users who want to reduce repetitive manual approval work while maintaining full security control.
This plugin is released under the open-source MIT license, so it is free to use and modify. The current version 0.5.0 supports DSH version 0.1.2-alpha.4 and newer, while older DSH versions require the compatible 0.4.1 release of this plugin. Every approval decision is logged to a JSONL audit file that includes full context for easy traceability. For local development, you must place the checked-out repository in the correct $DSH_HOME/profiles/ file path to avoid peer dependency errors. After installation completes, you must restart DSH and refresh your browser for changes to take full effect.
这是一款专为 DeepSeek Harness 开发的原生插件,核心功能是通过大模型自动裁决沙箱的升权申请。当会话处于可写沙箱模式,且审批策略为人工询问模式时,插件会拦截升权请求,按照用户配置的权限层级由大模型裁决放行、拒绝或转人工处理。所有不确定或异常路径默认不放行,遵循故障关闭(fail-closed)安全原则。
用户可通过 DSH 命令行一键安装,插件自带的配置补丁会自动挂载入口,无需手动修改。插件提供从全人工到全放行的多个内置权限预设,也支持自定义逐工具、逐模式的权限策略,还提供图形化设置面板与决策统计面板。适合希望减少人工审批重复操作,同时保留安全管控的 DSH 用户使用。
插件采用 MIT 许可开源,免费使用,每次裁决都会生成 JSONL 格式的审计日志,方便追溯排查。当前 v0.5.0 版本支持 DSH 0.1.2-alpha.4 及以上版本,旧版本 DSH 需要使用指定的 0.4.1 版本。本地开发时需要将仓库放置在正确路径,避免依赖找不到导致的报错问题。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-yolo-mode(SeverusZh/dsh-yolo-mode)
仓库:https://github.com/SeverusZh/dsh-yolo-mode
本站详情页:https://www.yhbd.top/plugins/severuszh-dsh-yolo-mode/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 3 · 最近提交 2026-09-29 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add dsh-yolo-mode
把 SeverusZh/dsh-yolo-mode 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-yolo-mode
DeepSeek Harness 插件:用大模型自动裁决沙箱升权申请(LLM-powered auto-approval)。
当会话处于可写沙箱模式、审批策略为 ask 时,dsh-yolo-mode 拦截 escalate sandbox to ... 升权申请,按你选择的预设或自定义权限层级由大模型裁决「放行 / 拒绝 / 转人工」。任何不确定或失败路径都不会放行(fail-closed)。
维护状态:官方已在 DSH 中提供实验性 Auto review 能力(
@deepseek-ai/dsh-experimental-auto-review,LLM 逐工具授权审查,在ask审批策略下替代人工审批),与本插件的「LLM 裁判自动审批」功能重叠。因此本插件可能在未来停止维护;如需官方原生的自动审批,可评估该实验性功能。当前版本仍会跟进 DSH 兼容(最近实测 0.2.0-rc.1)。
兼容性:v0.6.3 支持 DSH 0.1.5-rc.1+(
@deepseek-ai/dsh-*peer 放宽为>=0.1.7-rc.1),已在 0.1.5-rc.1 / 0.1.5-rc.2 / 0.1.6-alpha.2 / 0.1.7-rc.1 / 0.1.7-rc.2 / 0.2.0-rc.1 实测(真实-Cordis 探针通过;设置子系统已迁移至 0.1.7 的SettingsForms——插件 Config schema + volatile 热更 + 自建设置页;0.1.7-rc.2 上 provider/model 目录改由 clientremote.llm+remote.session读取;0.2.0-rc.1 上通过新的兼容性门禁并正常加载)。旧版 DSH(0.1.0-rc.6 / rc.8)请使用最后兼容的 npm 版本 0.4.1。
功能特性
- LLM 自动裁决:在
workspace-write会话中,对danger-full-access/workspace-write升权申请调用大模型分级(allow / deny / unsure),确定时免去人工弹窗。 - 内置预设:
off/strict/balanced(默认)/permissive/yolo/custom,覆盖从「全部转人工」到「确定性全放行」的完整光谱。 - 自定义层级:
levels支持逐目标模式、逐工具(tools.<toolName>)的allow / judge / delegate / deny策略,及error/unsure回退。 - 每预设默认提示词:
judge.systemPrompt留空时按预设自动选用对应裁判提示词(strict 最保守、permissive 宽松、custom 按层级表)。 - 图形化配置:设置面板「YOLO 审批」页在线修改预设 / 生效模式 / 裁判模型(下拉选择)/ 层级表,保存即生效;输入栏状态 chip + 决策统计面板。
- 完整审计:每次裁决落 JSONL 日志,含工具、目标模式、当前模式、理由、决策与结果;状态弹窗一键「打开日志」用系统默认应用查看。
- fail-closed:超时、非法输出、模型不可用、并发溢出等一切异常路径都回退为「拒绝」或「转人工」。
安装
1. 安装插件包
# 从 npm
dsh plugin --profile web add dsh-yolo-mode
# 或从本地路径
dsh plugin --profile web add <项目绝对路径>
2.(可选)覆盖插件配置
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
cuddly-guacamole/dsh-auto-approval-llm
kenryu42/cc-safety-net
hashgraph-online/hol-guard
SeaOf0/dsh-redteam-model
howmp/dsh-pentest
PerryLink/dsh-auto-review