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 版本。本地开发时需要将仓库放置在正确路径,避免依赖找不到导致的报错问题。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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)。

npm version license DeepSeek Harness Awesome DSH Plugin

维护状态:官方已在 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 目录改由 client remote.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 →

← 上一个 Prev dsh-moments-aieo 下一个 Next dsh-nebulagraph-v5 →