DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Auto Review — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

@gbthui/dsh-auto-review

Auto Review

DeepSeek Harness 插件,使用审核模型在交互式审批前回应审批请求。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add @gbthui/dsh-auto-review@0.1.0
README兼容性版本

兼容性与来源证明

Auto Review 以 @gbthui/dsh-auto-review 发布,当前版本为 0.1.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
npm
Registry 更新时间
2026/9/20

版本

0.1.0stable
2026/8/15

相关插件

正在加载相关插件…

最新版
0.1.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
278.7 kB
文件数
45
Surface
any
许可证
Apache-2.0
发布源
npm
GitHub
★ 1
周下载
36
最近提交
2026/8/15
查看源码 ↗项目主页 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 security-access 分类下经过校验的插件。

Doctor@linxin666/dsh-doctorDSH 配置档案的事务性救援模式,配备受监督的启动器、隔离的恢复容器、确定性修复、健康监控以及本地 Web 恢复控制台Pocketdsh-pocket把 DeepSeek Harness 装进你的口袋:一个包、一个设置页,手机扫码即同步访问电脑上的 DSH(局域网 + 公网,实时同屏)。DSCODE@toddzheng024/dscode-bundle完整的 DeepSeek 编码代理,支持持久化 shell、Ultra 协作和自动权限审查。Auto Reviewdsh-auto-review针对 DeepSeek Harness 审批请求的第二模型 AI 自动审查:只读审查子代理在审批应答链上决定允许或拒绝,并采用故障关闭回退机制和完整的会话日志审计。

README

dsh-auto-review

English | 中文

dsh-auto-review is a DeepSeek Harness plugin that uses a reviewer model to answer approval requests. Its behavior is similar to Codex's approvals_reviewer = "auto_review": when an agent requests an operation that the sandbox does not permit, usually a sandbox escalation, the reviewer decides first. Requests not answered by the plugin continue to interactive approval.

The plugin does not change sandbox configuration. It only handles approval requests.

Install

Install Node.js and make sure pnpm is on PATH, then add the published package to the web profile:

npx @deepseek-ai/dsh plugin --profile web add @gbthui/dsh-auto-review

dsh plugin installs the package through pnpm and adds it to the profile's bundle configuration. The plugin is enabled by default and uses the current session model as its reviewer, so no settings change is required.

To install the current unreleased main branch instead, use the git spec:

npx @deepseek-ai/dsh plugin --profile web add https://github.com/gbthui/dsh-auto-review.git

A newly installed bundle is loaded the next time the profile starts. If the web profile is already running, stop that process and start it again using the same launch method. The npm launch command documented by DeepSeek Harness is:

npx @deepseek-ai/dsh web

Start a new session and run /auto-review status to verify it. See the deployment guide for other profiles, file/registry installs, and manual setup.

Configuration

Configuration is only needed when you want a separate reviewer. For example, to use an OpenAI-compatible endpoint:

# ~/.dsh/settings.yaml
dsh-auto-review:
  reviewer:
    baseURL: https://api.deepseek.com/v1
    model: deepseek-v4-flash
    apiKeyFile: ~/.dsh/reviewer.env   # KEY=VALUE file; apiKey / apiKeyEnv also work
    thinking: off

See the configuration reference for all options.

How it works

agent attempts an operation the sandbox does not permit
        |
        v
harness requests approval
        |
        v
dsh-auto-review answers first
        +-- allow -> allowed-once -> retry the operation
        +-- deny  -> rejected     -> return the denial to the agent

Features

The plugin registers as the first answerer for approval/request. Escalation requests reach the reviewer first, and each grant applies only to the current request.

The reviewer receives the pending request, your user messages, the agent's recent activity, and summaries of tool results. Only user messages can authorize an action. The agent's chain of thought is not sent to the reviewer. Raw tool output is omitted by default. With rawToolResults: true, up to 400 characters from each tool result may be included.

An unresolved tool call, a pending request over maxInputChars, or a latest user message over the context budget is rejected before the reviewer runs. Reviewer call or result-processing errors return unavailable by default. With denyOnReviewerError: false, those requests continue to the next answerer. Malformed reviewer output is retried once; a second parse failure follows denyOnReviewerError as well.

allowRules can grant requests without review by exact tool name and literal string prefix. A rule can grant a workspace-write escalation only when it declares that target. danger-full-access cannot be granted through allowRules.

The circuit breaker is scoped to the current turn. With the defaults, it trips after three consecutive denials or ten denials in the latest fifty approval outcomes. allow and unavailable reset the consecutive-denial count; unavailable does not count as a denial.

Every decision is written to ~/.dsh/auto-review-audit.jsonl. Tool inputs are stored as sha256 hashes by default. Set includeToolInput to true to store the original input.

/approve N displays the tool, directory, complete arguments, and fingerprint for a denied action. Displaying the record does not authorize anything. After the record is displayed, /approve N confirm permits one retry of that exact action. The retry still passes through the reviewer.

Documentation

  • Deployment Guide · 部署指南
  • Configuration Reference · 配置参考

Tests

npm test runs the test suites through test/run-tests.ts: test/units.test.ts, the behavior tests under test/behavior/, test/pipeline.test.ts, and test/policy-cases.test.ts. Cases that require a live reviewer are skipped when no reviewer endpoint is configured.

test/behavior/required-behaviors.ts lists the behavior checks that must pass in CI. CI checks these separately from the coverage thresholds; passing coverage does not replace the required behavior checks.

npm run test:coverage runs the same tests under c8/V8 coverage. CI requires at least 95% statements, 85% branches, 100% functions, and 95% lines across src/**/*.ts. Source files not loaded by a test are included in the coverage calculation. Text, JSON summary, and LCOV reports are generated under coverage/.

test/policy-matrix.test.ts runs the adversarial policy corpus for N rounds and records TP/FP/TN/FN. The default is 30 rounds per case. AR_MATRIX_ROUNDS changes the count, and AR_MATRIX_FAIL_ON_FALSE_ALLOW=1 makes a false allow fail the test.

npm run test:e2e runs the Cordis/AgentLoop E2E path: sandbox denial, approval/request, reviewer allowed-once, retry execution, and reviewer denial. It requires the explicit AR_E2E_API_KEY environment variable. AR_E2E_BASE_URL and AR_E2E_MODEL are optional. Tests run directly on the TypeScript source through tsx.

Development

The code is TypeScript with strict mode and erasable-only syntax enabled. The package entry is compiled into lib/ by npm run build. lib/ is committed, so git installs do not need a build step. Registry publishing runs the build through prepack.

Node does not type-strip source files under node_modules, so a source-only package entry breaks profiles installed with pnpm. Tests run through tsx.

The security boundary is split across src/ modules. index.ts is the entry point. policy contains the reviewer policy; evidence handles trusted and untrusted context and authorization completeness; facts provides read-only fact tools; reviewer handles model calls and verdict parsing; approval-answerer contains the decision path and /approve records; breaker implements the circuit breaker; audit writes JSONL records; config defines the schema; and util contains small helpers.

npm install
npm run typecheck
npm test
npm run test:coverage

The tests also import DeepSeek Harness packages. CI installs fixed 0.1.0-rc.6 versions of the Harness test dependencies from npm. For local development, install the same versions without saving them to this package, or link them from a matching Harness checkout. The dependency list and versions used by CI are in .github/workflows/ci.yml.

License

Apache-2.0. See LICENSE.