dsh-design-review
Manifest validMandatory cross-review for design proposals and lessons-learned: auto-detects design doc writes and enqueues them (tier=review) into the task queue, delivers the external reviewer verdict back to the
dsh-design-review
Mandatory cross-review of design documents and lessons-learned with an external ops agent (e.g. Hermes). Any session that writes a design document automatically files a review-handoff request (type=design);
lesson_review_submitfiles type=lesson reviews whose approved measures are appended toOPS-GUARDRAILS.md.
Why
Design decisions and operational lessons should not live and die inside a single conversation. This plugin makes cross-review mechanized: a design document written in any DSH session is automatically submitted to the external ops agent (Hermes) for review; an incident's lesson is reviewed for preventability — and approved preventive measures are permanently appended to the guardrails file so the same class of mistake is not repeated.
It pairs with dsh-reset-handoff and dsh-auto-approver: reset → external executor, approval → external verdict, design/lesson → external cross-review. All three speak the same review-handoff protocol.
How it works
any session writes a design doc (*.design.md / DESIGN.md / PROPOSAL.md / keyword match)
→ dsh-design-review (tools/execute intercept, own-write exempt)
→ files review-handoff request.json (type=design, single-slot safe)
→ Hermes cron reviews (reads doc, checks files, runs tests)
→ verdict injected back into the originating session + doc header marker
lesson_review_submit(incident, rootCause, lesson, ...)
→ files type=lesson request
→ Hermes reviews preventability + same-class risk + guardrail conflict
→ approved → measure appended to ~/.dsh/OPS-GUARDRAILS.md (append-only, dated, git-revertible)
Install
dsh plugin --profile <profile> add github:nicecx/dsh-design-review
Configuration
- id: dsh-design-review
name: 'dsh-design-review'
config:
mode: 'advisory' # advisory | mandatory | off (default advisory)
patterns: # design-doc path patterns (narrow default)
- '**/*.design.md'
- 'DESIGN.md'
- 'PROPOSAL.md'
keywords: # content heuristic for .md first 40 lines
- 设计方案
- 技术方案
- 架构设计
- 'Design Proposal'
queueMode: 'skip' # skip (safe, default) | queue (explicit pending queue)
gitGate: false # mandatory extra: block git commit until approved (default off)
| mode | behavior |
|---|---|
advisory | auto-submit + notify the session; non-blocking. Default. |
mandatory | auto-submit + hard notice "review pending, hold implementation"; optional gitGate. |
off | inert. |
Tools
| Tool | Purpose |
|---|---|
design_review_submit(title, docPath, changeFiles?, tests?) | File a type=design review (auto-detection also fires on design-doc writes). |
lesson_review_submit(title, incident, rootCause, lesson, impact?, reproducible?) | File a type=lesson review; approved measures append to OPS-GUARDRAILS.md. |
review_status() | Latest request, verdict, queue length. |
Safety design
- Own-write exemption: the plugin's own doc-header markers never re-trigger interception (no infinite loop).
- Single-slot protection: never overwrites a pending
request.json;queueMode=skip(default) or explicitqueuewith a drain loop. - watchdog integration: the result poll is registered with
dsh-task-watchdog(not a bare setTimeout). - Guardrail append: append-only, dated, with incident ref + source; conflict detection against existing rules; file is git-tracked for rollback.
- fail-closed: 30 min without a verdict → marked
failed-review(never silently treated as approved).
License
MIT
联动(20260902-003 approved,独立部署·协议联动)
与 dsh-task-queue(队列中枢)联动:设计文档/lesson auto-submit 入队 review tier → 消费端出队 → 单槽检查写 request.json → Hermes 审核 → 结论按 sessionId 路由回发起会话;approved 守则追加 OPS-GUARDRAILS + 缺陷模式传播扫描。详见协作契约「二·五 架构总览」。
Comments
Loading…
Similar plugins
by AmethystLuna
设计与代码的建模与自动化审查:把断言抽成可执行模型再判定——UML、状态机与协议、数据模型与迁移、并发断言路由、结构审查、外部检查器导出、报告对比。dsh 原生插件。 | Modeling and automated review for designs and code — claims as executable models: UML, state machines and protocol
★ 0
MIT
JavaScript
Oct 24, 2026
dsh plugin --profile web add dsh-model-everythingby zriyox
一句话大需求先别急着跑:拦一下问你要不要先规划,自动生成带验收清单的 plan.md 再开工 — DeepSeek Harness 插件 / Catches one-sentence mammoth tasks and scaffolds plan.md + a capped goal first
★ 3
MIT
TypeScript
Aug 15, 2026
dsh plugin --profile web add dsh-goal-scaffoldby slhssb
Independent-model advisory review for DeepSeek Harness: after each tool step, a reviewer model audits the agent's operations and injects concerns/guidance into the next step.
★ 0
MIT
TypeScript
Aug 14, 2026
dsh plugin --profile web add @slhssb/dsh-advisorby zhangzhangco
Automatic tier-based model routing for DeepSeek Harness (dsh): a virtual `smart` model classifies every request by difficulty (hard / normal / easy) and by vision need, then delegates it to the models you already configured.
★ 0
NOASSERTION
JavaScript
Sep 22, 2026
dsh plugin --profile web add dsh-tier-routerby yaodongH
dsh-doc-review — DeepSeek Harness Web 文档审阅弹窗插件:设计文档与方案审阅以全幅渲染 Markdown 弹窗呈现 (Design documents & plan reviews in a full rendered-Markdown modal)
★ 0
MIT
TypeScript
Sep 25, 2026
dsh plugin --profile web add dsh-doc-reviewby ninetyhe-90
Lets the primary model ask an independent reviewer model to review a decision it has already made, with off, shadow and advisory modes. Requires your own service implementing POST /v1/decision.
★ 33
MIT
JavaScript
Oct 22, 2026
dsh plugin --profile web add dsh-decision-review