DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

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

dsh-pr-gate

Pr Gate

DeepSeek Harness 的确定性写入门禁:对代理写入的每个文件执行范围策略和残留扫描,并在会话中实时运行——CI 门禁已移至写入时刻

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

npx -y @deepseek-ai/dsh plugin --profile web add github:zhengqiuyang/dsh-pr-gate#7e4e936555da3e1b82bdf5e0d55b90f8962a0a49
README兼容性版本

兼容性与来源证明

Pr Gate 以 dsh-pr-gate 发布,当前版本为 0.1.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/10/12

版本

0.1.0stable
2026/10/12

相关插件

正在加载相关插件…

最新版
0.1.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
any
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/10/12
查看源码 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Web App@deepseek-ai/dsh-web-appdsh 浏览器界面捆绑包:位于 dsh-base 之上的 Web 补丁层,加上运行时粘合插件(提供前端 dist、Web 界面提示符、bash 运行时变量和 URL 行)Sdk Minimal@deepseek-ai/dsh-sdk-minimal独立的最小 SDK 配置包:JSON-RPC、一个 DeepSeek 适配器、持久化 Shell 和 JSONL 会话Sdk App@deepseek-ai/dsh-sdk-appdsh SDK 配置包:基于 dsh-base 提供 stdio JSON-RPC 服务和进程生命周期管理Experimental Inspector@deepseek-ai/dsh-experimental-inspector用于 Host 调试和 Client Runtime 检查的实验性跨 realm CDP hub

README

dsh-pr-gate

Deterministic write gate for DeepSeek Harness (dsh) — the CI gate moved to the moment of the write.

Every file the agent writes (write / edit / str_replace_editor) passes the same scope policy and residue rules that agent-pr-gate applies to PRs in CI — deny-before-write in tools/pre-execute, residue scan of the written text in tools/post-execute, and a durable content-hashed JSONL ledger of every decision. Zero LLM calls in the trust path: the parts of the gate that must NOT be an LLM live here.

Why now (checked 2026-10-12)

The review/guard lane in the dsh ecosystem is entirely LLM-shaped: answer-reviewer plugins re-read turns with a second model, dsh-gungnir verifies goal completion from exit codes, and the closest action-guard (cc-safety-net, 1.6k★ in the Claude ecosystem) blocks destructive commands. Nobody gates what the agent writes deterministically — scope policy, residue markers, or a durable record the CI can consume. That slot is empty, and this plugin is the agent-pr-gate engine living inside the runtime instead of waiting for the PR.

What it does

StageHookDeterministic action
Before the writetools/pre-executeScope policy: deny globs always win; a non-empty allow list means "only these". Denied writes never touch the disk
After the writetools/post-executeResidue scan of the written text: injection text aimed at reviewers, skipped tests, debug markers. warn (default) logs + ledgers; block also fails the write with corrective feedback
AlwaysJSONL ledgerOne line per decision — tool, path, action, sha256 of content, matched pattern, residue kinds. agent-pr-gate CI can consume it as the session-side record

One policy, two enforcement points

Point policyFile at your repo's agent-pr-gate.yaml and the live session enforces the same allow/deny the CI gate enforces on PRs — all policy entries are unioned. Inline allow/deny config works without a file.

Install

dsh plugin --profile default add github:zhengqiuyang/dsh-pr-gate

git installs build from source; authorize the build once in the profile's pnpm-workspace.yaml:

allowBuilds:
  dsh-pr-gate: true

Configure

- id: dsh-pr-gate
  name: dsh-pr-gate
  config:
    tools: [write, edit, str_replace_editor]
    allow: [src/**, docs/**]     # non-empty = only these
    deny: ["**/*.pem", .github/workflows/**]
    policyFile: ""               # or e.g. agent-pr-gate.yaml
    residueMode: warn            # warn | block
    ledgerPath: .dsh-pr-gate/session.jsonl

Develop

npm install
npm test   # syncs the vendored agent-pr-gate core, builds, runs unit tests

The scope glob semantics and residue rules are vendored from the sibling agent-pr-gate checkout (npm run sync; CI runs sync --check).

Roadmap

  • bash command write-heuristics (redirect/shell-write detection, warn-only)
  • Ledger → GitHub check-run bridge (session attestations surfaced in CI)
  • Per-policy selection by agent preset, matching the CI gate's policy classes
  • Claims-vs-diff at turn end (the agent's final summary vs. the session ledger)

Kill criteria

If dsh ships first-party deterministic write gating, or reviewer plugins converge on deterministic enforcement (they are all LLM-based today), this freezes at its last working version with a postmortem here. The engine stays owned by agent-pr-gate either way.