dsh-plugin-approval-alert
doncelee229-cmyk
DeepSeek Harness 审批/选择方案系统级通知提醒,显示工作区名、点击跳转、多语言。Approval & decision alerts with native notifications for DeepSeek Harnes…
Jelee0145/dsh-auto-review
Codex-style automated approval review for DeepSeek Harness: an isolated reviewer subagent decides sandbox escalations by intrinsic risk and user authorization. Community Beta — not an official DeepSeek AI plugin.
PROJECT TOPICS
PROJECT README
Codex-style automated approval review for DeepSeek Harness (DSH). Instead of a human prompt or a blanket denial, sandbox-escalation requests are decided by an isolated reviewer subagent that judges two independent questions — how risky is this exact operation? and did the user actually authorize this effect? — and returns a structured allow/deny verdict.
Status: Community Beta (v0.1.0-beta.1). This is not an official DeepSeek AI product or plugin. It is a community project distributed separately from DSH. Expect rough edges; see Known Limitations.
A DSH agent that needs to write outside its sandbox retries the operation once with sandbox_permissions + a justification. DSH routes that escalation through the approval seam; Auto-Review claims the ask and hands the reviewer subagent:
The reviewer returns { verdict, riskLevel, userAuthorization, reason }. A critical risk is denied deterministically regardless of the model's verdict. Catastrophic commands hit a circuit breaker and are rejected without a review round; a same-operation denial fuse stops the agent from re-asking a denied operation with reworded justifications.
The reviewer is structurally isolated: it runs with zero tools, a fixed reviewer persona, its approval pinned to never, a delegation-depth cap, and — via the isolate capability — without inheriting the parent agent's preset (no parent tools, system-prompt sections, or conversation history). If the isolate capability is unavailable, Auto-Review fails closed — it never falls back to an un-isolated reviewer.
Auto-Review depends on three things that official DSH 0.1.0-rc.6 does not yet ship:
isolate start-time capability (isolated reviewer child);auto-review value in the approval-policy vocabulary;arguments seam (validated tool arguments reach the approval requester).This repository ships a minimal, hash-pinned compatibility patch (patches/) that adds exactly these three features to a supported DSH installation, plus an installer that applies it safely. There is no prompt-only isolation fallback: without the patch, Auto-Review fails closed.
| DSH version | Status |
|---|---|
0.1.0-rc.6 |
✅ supported (the patch manifest is pinned to this version) |
| anything else | ❌ refused — the installer exits without touching DSH |
The installer reads the installed DSH version and refuses to patch any other version. After upgrading DSH, run doctor and wait for a manifest that supports the new version (see After a DSH upgrade).
Platform: Windows is the primary verified platform. Linux/macOS are not claimed as fully supported (the isolate capability targets the in-process subagent providers, which are platform-independent, but the full flow has only been exercised on Windows).
Prerequisites: Node.js >= 22.19 (or >= 24), and a global install of the supported DSH version:
npm install -g @deepseek-ai/dsh@0.1.0-rc.6
Then download this repository and run the installer:
git clone https://github.com/Jelee0145/dsh-auto-review.git
cd dsh-auto-review
node scripts/install.mjs
The installer, in order:
npm root -g;.dsh-ar-orig suffix; re-running is idempotent; any failure rolls back everything changed in that run);<DSH_HOME>/profiles/node_modules/dsh-auto-review;<DSH_HOME>/profiles/<profile>/cordis.patch.yml (selects the auto-review approval policy, restates the permission presets with an auto-review row, and mounts the plugin).<DSH_HOME> is ~/.dsh by default (or $DSH_HOME). The default profile is web; pass --profile <name> for another.
Verify the result:
node scripts/doctor.mjs
Then start DSH as usual:
dsh web
(If your profile is not web, pass --profile <name> to both install.mjs and dsh.)
Paste this into any coding agent (Codex, Claude Code, a DSH agent, …):
请阅读https://github.com/Jelee0145/dsh-auto-review/blob/main/README.md安装 DSH Auto-Review。先检查我当前安装的 DSH 版本是否受支持,再使用仓库提供的安装脚本应用所需的 isolate compatibility patch 并安装 Auto-Review。不要修改 README 未要求的其他 DSH 代码,不要使用弱化的隔离 fallback。安装完成后运行项目提供的 doctor/验证步骤,并告诉我实际修改了哪些文件以及验证结果。如果版本或文件校验不匹配,请停止并告诉我原因,不要强行 patch。
Follow https://github.com/Jelee0145/dsh-auto-review/blob/main/README.md to install DSH Auto-Review. First check whether my installed DSH version is supported, then use the repository's installer to apply the required isolate compatibility patch and install Auto-Review. Do not modify DSH code beyond what the README requires, and do not use a weakened isolation fallback. After installing, run the project's doctor/verification steps and tell me which files were actually modified and what the results were. If the version or file checks do not match, stop and tell me why — do not force the patch.
After a successful install, escalations on sessions whose approval policy is auto-review are decided automatically:
The reviewer's reasoning is not injected into the parent conversation; it is reconstructable from the reviewer child's session (via list_agents).
The patch is pinned to DSH 0.1.0-rc.6. If you later run npm install -g @deepseek-ai/dsh@<newer>, the patched files are replaced by npm and the manifest no longer matches:
node scripts/doctor.mjs — it will report the version as unsupported;node scripts/uninstall.mjs
The uninstaller restores every patched DSH file from its .dsh-ar-orig backup (or by reversing the patch when the backup is gone), removes the plugin copy, removes the managed profile block, and deletes the install receipt. It is safe to run when already uninstalled.
DELETE on the file or FILE_DELETE_CHILD on its parent), and such operations never produce an escalation ask — Auto-Review never sees them. This is a pre-existing DSH sandbox boundary, not an Auto-Review defect.isolate capability removes the parent's preset (tools, system-prompt sections, conversation history), but the reviewer child still runs with the parent's cwd, so the host's workspace-instruction injection (e.g. AGENTS.md) still reaches it. This is developer context (not a privilege or a hidden-state leak); a cwd-neutral reviewer would need a further DSH capability and is deferred.auto-review/ the plugin (source + built lib; installed by the installer)
patches/ compatibility patch manifest (hash-pinned to one DSH version)
scripts/ install.mjs / uninstall.mjs / doctor.mjs (+ lib.mjs, gen-manifest.mjs)
profile/ reference copy of the managed profile entries
verify/ keyless mock-model verification harness (dev-only; not installed)
This project is community-maintained and is not affiliated with, endorsed by, or provided by DeepSeek AI. It patches a third-party installation of DeepSeek Harness; the patch is applied by an explicit install step (never by an npm postinstall), targets only the features listed above, and can be fully reverted with the uninstaller.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。