DSH HUB
首页插件商店插件包社区排行榜资源发布指南
插件源码
返回插件目录

yanggaihao5-sys /

yanggaihao5-sys/dsh-supervision-mode

仅 Topic 仓库

Supervision mode for DeepSeek Harness: standard preset + S1-S11 cost/evidence rules + a non-blocking read-only supervisor subagent returning <=120-char verdicts. Pure-YAML preset bundle.

★ 0 Stars0 Forks0 IssuesN/A 社区评分0 已确认安装
查看 GitHub
README来源: main@d39c4262

dsh-supervision-mode

A supervision mode for DeepSeek Harness (dsh). The main coding agent keeps every tool and permission it had — and gains two things:

  1. A supervision rule set (S1–S11) appended to its persona: explicit cost rules for when not to act (delegate to the user, stop retrying, ask before escalating), and evidence rules for what may be claimed as a conclusion.
  2. A non-blocking, read-only supervisor subagent — one optional tool. The supervisor reads a task card and answers in at most three lines (≤120 chars): verdict, rule hit, one instruction.

The supervisor is not a code reviewer. It is a cost supervisor: its only KPI is reducing user waiting time and permission requests. "This should not be done by an agent" is a valid answer.

This repo is an installable dsh plugin bundle (pure YAML — zero host code) defining two presets:

Preset Contents
普通模式·监督 (supervised) the standard preset's complete, unchanged plugin list + S1–S11 in persona.prefix + one tool-supervisor row in the delegation group
只读监督者 (supervisor) read-only agent: read / glob / grep / skill only. No shell, no write, no subagent — structurally, not by persona text

How the loop works

main agent ── supervisor(prompt = task card) ──► read-only supervisor
    ▲                                              │
    └── [SUPERVISOR] verdict (≤120 chars) ◄────────┘
        arrives as a completion notice at the next step boundary

Dispatch is non-blocking: the tool call returns immediately, and the verdict shows up in the main conversation at the next step boundary (usually within the same turn). It is a second pair of eyes at a stage boundary, not a gate that blocks execution. Simple tasks need no call.

Trigger points (S7)

  • ① at the start of every user turn, before the first execution tool call (edit / write / pwsh / bash / subagent / workflow) — unconditional; if work already started, dispatch immediately once;
  • ② before the first permission escalation;
  • ③ after the second failure of the same sub-goal;
  • ④ when direction changes (a conclusion is retracted, an attribution is corrected);
  • ⑤ before writing a conclusion into a ledger/state/design document (pairs with S10).

Task card format

Every call carries a card with two mandatory lines:

  • 【原文】 — the user's message verbatim (first + last sentence allowed if > ~1500 chars, annotated 「中段省略」; paraphrases are rejected by the supervisor);
  • 【计数】 — expected minutes / failure count / escalation count / repeat-call count (— if unknown).

Plus the current goal, what is done, recent errors, and involved paths.

Verdict format

When a rule is hit, the supervisor answers exactly three lines:

[SUPERVISOR] 判定:继续 / 换路 / 停手/交用户手做
依据:条号 + 计数原值(未触发项写 —)
给用户:一句话最小指令

No rule hit → one line: [SUPERVISOR] OK. The full persona lives in bundle/fragments/supervisor-persona.txt.

Install

# from a local clone (or `npm i` style link):
dsh plugin --profile web add "file:$PWD"
dsh web        # restart once — bundle layers compose at boot

Then select the 「普通模式·监督」 preset for a session; the supervisor tool exists only there. The bundle adds no changes to the main agent's tools, permissions, sandbox, or approval policy.

The rule set (S1–S11), one line each

Rule Summary
S1 Before acting: state intent / deliverable / time cap. Copy-move work > 5 min ⇒ hand it to the user with a checklist.
S2 Permission escalation: ask first "can the user do this in a minute?" If yes, don't escalate — output the checklist. A refusal is final; no retry by another route.
S3 Two failures of the same sub-goal ⇒ no third attempt with the same approach — change route or stop.
S4 No over-engineering: new converters/parsers/encoders for a single image, pixel, or format ⇒ stop and ask.
S5 Deliverables carry checkable numbers (size, pixel diff, colour, volume, file count, hash); missing = not done.
S6 After the user says "don't stamp / I delete nothing / fast execution", any contrary action is a violation — stop.
S7 Five trigger points, task card with 【原文】+【计数】, verdict ≤3 lines.
S8 If the supervisor tool fails: no skipping — self-check S1–S6 and write 「监督自检:①…⑥」 in the reply.
S9 User-built systems: check the profile registry (package.json link:, presets) and ask once — never full-repo-search, never build a duplicate.
S10 Attribution/verdict claims need mechanism evidence: source file:line, runtime counts, or official docs. Otherwise write "candidate · not proven".
S11 Commands for the user's terminal: every option name must have a source (ledger quote, --help output, or source code). Unknown option names are not allowed.

Full Chinese text (the source of truth): bundle/fragments/progress-rules.txt.

Does it raise the ceiling ~20%?

Author's estimate (2026-11), not yet measured. On agent workloads where failures cluster in avoidable loops — the same failing call repeated, verdicts judged against a stale baseline, permission retries on a path that was refused — supervision should raise the effective ceiling by roughly 20%. Treat this as a hypothesis: PROTOCOL.md §7 gives the A/B design that would turn it into a number (same task set, two arms, loop/retry/correction metrics).

Files

bundle/
  package.json                      bundle manifest (dsh.bundle.patch → cordis.patch.yml)
  cordis.patch.yml                  generated presets (supervised + supervisor)
  fragments/
    progress-rules.txt              S1–S11 (the supervised persona prefix)
    supervisor-persona.txt          read-only supervisor persona (⓪–⑦ rules)
  skills/
    supervisor-map/SKILL.md         routing table: task type → which skills to load (example)
    pitfall-index/SKILL.md          pitfall-tier index (example)
  tools/
    generate.mjs                    regenerate cordis.patch.yml from fragments/
    validate.mjs                    validate every plugin row against the installed dsh schemas
PROTOCOL.md                         the protocol in more detail + measurement design

License / affiliation

MIT. Unofficial community project — not affiliated with DeepSeek.

—/ 5

暂无评分

需要先验证清单

Commit d39c4262b387

社区评论

还没有评论,来写第一条。

DSH HUB

社区维护的 DSH 插件索引。不是 GitHub 或 DeepSeek AI 的官方产品。

社区资源API关于