@dsmm/dsmm 0.3.16 → 0.3.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -4
- package/agent-presets/dsmm-frontend/agent.cordis.yml +37 -21
- package/agent-presets/dsmm-oracle/agent.cordis.yml +2 -2
- package/agent-presets/dsmm-oracle-2nd/agent.cordis.yml +2 -2
- package/agent-presets/dsmm-orchestrator/agent.cordis.yml +2 -2
- package/agent-presets/dsmm-plan-critic/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-planner/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-research/agent.cordis.yml +10 -10
- package/agent-presets/dsmm-reviewer/agent.cordis.yml +2 -2
- package/docs/compatibility.md +4 -4
- package/docs/maintenance.md +31 -1
- package/docs/releasing.md +2 -2
- package/docs/roadmap.md +3 -3
- package/docs/tui.md +1 -1
- package/dsh-plugin.json +1 -1
- package/lib/child-capture.d.ts +2 -1
- package/lib/child-capture.js +2 -1
- package/lib/client.js +1 -1
- package/lib/profile-diagnostics.js +1 -1
- package/lib/prompts.js +7 -5
- package/lib/skills.d.ts +2 -2
- package/lib/skills.js +4 -2
- package/package.json +2 -2
- package/prompts/deepwork.md +7 -3
- package/prompts/source/agents/orchestrator.md +2 -2
- package/prompts/source/agents/plan-critic.md +1 -1
- package/prompts/source/agents/planner.md +1 -1
- package/prompts/source/agents/reviewer.md +2 -2
- package/prompts/source/category/frontend.md +37 -21
- package/prompts/source/category/research.md +8 -10
- package/prompts/source/deepwork/default.md +6 -3
- package/prompts/source/deepwork/gemini-4.md +13 -0
- package/prompts/source/deepwork/gemini.md +3 -3
- package/prompts/source/deepwork/glm.md +2 -2
- package/prompts/source/deepwork/{kimi-k27.md → kimi.md} +7 -5
- package/prompts/source/deepwork/planner.md +1 -0
- package/prompts/source/terminal/research.md +2 -0
- package/skills/frontend/SKILL.md +24 -8
- package/skills/frontend/references/design/README.md +53 -43
- package/skills/frontend/references/perfection/README.md +11 -9
- package/skills/frontend/references/visual-qa.md +115 -0
- package/skills/receiving-code-review/SKILL.md +3 -2
- package/skills/report-fidelity/SKILL.md +34 -0
- package/skills/requesting-code-review/SKILL.md +1 -1
- package/skills/subagent-driven-development/SKILL.md +5 -3
- package/skills/writing-plans/SKILL.md +1 -1
- package/skills/writing-plans/plan-document-reviewer-prompt.md +1 -1
package/README.md
CHANGED
|
@@ -4,10 +4,12 @@ DSMM 是 DeepSeek Harness(DSH)的插件。它让不同 Agent 分工处理任
|
|
|
4
4
|
|
|
5
5
|
比如,让 Planner 拆解任务、Coding 写代码、Reviewer 检查结果,再由 Orchestrator 协调。各个角色可以用不同的模型,不必共用一套配置。
|
|
6
6
|
|
|
7
|
-
当前发布版本为 `@dsmm/dsmm@0.3.
|
|
7
|
+
当前发布版本为 `@dsmm/dsmm@0.3.17`,支持 DSH `>=0.2.1-rc.2 <0.3.0`。安装前请确认客户端版本;范围外的 DSH 版本不受支持。Desktop 使用自带运行时,独立命令行环境需要 Node.js 22 或更高版本。
|
|
8
|
+
|
|
9
|
+
官方 DSH rc.3 以 `engines.dsh` 优先于 peer ranges 判定兼容性;DSH 依赖仍固定为 rc.2,作为开发基线。
|
|
8
10
|
|
|
9
11
|
- 源码仓库:[hugefiver/dsmm](https://github.com/hugefiver/dsmm)
|
|
10
|
-
- 发布地址:[GitHub Releases (v0.3.
|
|
12
|
+
- 发布地址:[GitHub Releases (v0.3.17)](https://github.com/hugefiver/dsmm/releases/tag/v0.3.17) 与 [npm (@dsmm/dsmm)](https://www.npmjs.com/package/@dsmm/dsmm)
|
|
11
13
|
|
|
12
14
|
---
|
|
13
15
|
|
|
@@ -16,7 +18,7 @@ DSMM 是 DeepSeek Harness(DSH)的插件。它让不同 Agent 分工处理任
|
|
|
16
18
|
### 初次安装
|
|
17
19
|
|
|
18
20
|
1. 打开 DeepSeek Harness Desktop,进入 **插件(Plugins)** 页面。
|
|
19
|
-
2. 点击 **添加插件(Add plugin)**,输入 `@dsmm/dsmm@0.3.
|
|
21
|
+
2. 点击 **添加插件(Add plugin)**,输入 `@dsmm/dsmm@0.3.17` 并确认。
|
|
20
22
|
3. 安装完成后,检查插件是否处于启用状态。如果界面提示需要重启,请按提示重启客户端。
|
|
21
23
|
|
|
22
24
|
Desktop 的插件由客户端自己管理。全局 npm 安装和独立 npm 版 `dsh` 命令不能替代这一步。
|
|
@@ -28,7 +30,7 @@ DSH Desktop 当前不支持在界面中用同名版本原位覆盖更新插件
|
|
|
28
30
|
1. 保存好正在进行的任务,**正常退出并完全关闭 DSH Desktop**。
|
|
29
31
|
2. 使用 Desktop 安装自带的命令行工具更新配置。以下示例适用于 Windows 默认安装路径(`%LOCALAPPDATA%\Programs\DeepSeek Harness\`):
|
|
30
32
|
```powershell
|
|
31
|
-
& "$env:LOCALAPPDATA\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd" plugin --profile desktop add @dsmm/dsmm@0.3.
|
|
33
|
+
& "$env:LOCALAPPDATA\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd" plugin --profile desktop add @dsmm/dsmm@0.3.17 --save-exact --ignore-scripts --registry=https://registry.npmjs.org
|
|
32
34
|
```
|
|
33
35
|
*若安装在自定义路径,请替换为对应的实际位置;非 Windows 系统请参考 Desktop 自身菜单或官方指引,不要混用非 Desktop 的独立 CLI 命令。*
|
|
34
36
|
3. 重新打开 DSH Desktop 即可加载新版本。
|
|
@@ -23,36 +23,52 @@
|
|
|
23
23
|
|
|
24
24
|
Shell snippets and command examples in prompts or skills are illustrative, not environment selectors. Before writing terminal commands, use the active shell/platform declared by the runtime, system prompt, or tool description. Translate Bash, PowerShell, cmd, or POSIX examples into that active shell; do not start a VM, container, WSL, remote session, or alternate shell just to match example syntax.
|
|
25
25
|
|
|
26
|
-
##
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
26
|
+
## CORE WORKFLOW: BRIEF → BUILD → SUBTRACT → VERIFY
|
|
27
|
+
|
|
28
|
+
1. **BRIEF** — Clarify intent and scope before touching code:
|
|
29
|
+
- Identify the user goal, primary action (when applicable), information hierarchy, required content (inputs, fields, data columns, essential copy), and task scope upfront.
|
|
30
|
+
- **Internal tools, dashboards, reports, and HTML/CSS/SVG charts**: default to restrained, clear, content-first typography, structured alignment, and dense data layouts. Expressive branding, lavish atmosphere, and elaborate motion are strictly opt-in for landing pages, marketing surfaces, and branded consumer experiences.
|
|
31
|
+
- **Small adjustments**: inspect touched tokens or adjacent styled components directly. Do not force creating a full `DESIGN.md`, research logs, or a whole-page redesign for localized changes.
|
|
32
|
+
|
|
33
|
+
2. **BUILD** — Construct with tokenized primitives and solid engineering:
|
|
34
|
+
- Use existing design tokens (colors, spacing scale, typography scale, radii, shadows, motion) from `tailwind.config.*`, `tokens.*`, `theme.*`, `globals.css`, or `DESIGN.md`. Never hardcode hex codes or arbitrary spacing when tokens exist.
|
|
35
|
+
- If no design system exists on greenfield UI, define a minimal token set (palette intent, type ramp, spacing scale) first.
|
|
36
|
+
- Enforce UX and accessibility: WCAG AA minimum contrast (reach for AAA on body copy), visible focus indicators, sensible keyboard navigation, responsive layout across breakpoints, and explicit empty, loading, and error states.
|
|
37
|
+
|
|
38
|
+
3. **SUBTRACT** — Refine by stripping gratuitous noise:
|
|
39
|
+
- Remove decorative clutter: unnecessary borders, redundant nested containers, decorative gradients, visual noise, and pointless animations that do not aid hierarchy or state transitions.
|
|
40
|
+
- **Hard invariant**: NEVER delete, omit, or merge required content (user inputs, forms, data columns, essential copy, actions) to fit a visual layout or buy performance points. Subtraction applies strictly to decorative excess, not content.
|
|
41
|
+
|
|
42
|
+
4. **VERIFY** — Validate on the rendered surface (Visual QA):
|
|
43
|
+
- For modifications to existing UI, capture a real baseline BEFORE making changes. Lock the route, state, viewport (375 / 768 / 1280px), theme (light/dark), test data, and scroll position.
|
|
44
|
+
- After modification, verify under the exact same conditions.
|
|
45
|
+
- If a pre-change baseline was not captured, do not fabricate or back-date one; explicitly disclose that comparative baseline evidence is unavailable and verify the post-change state on its own merits.
|
|
46
|
+
- Distinguish defects (layout breaks, clipped text, alignment bugs, contrast/a11y violations, broken interactions) from taste (aesthetic nuances within the brief). Prioritize defect resolution over subjective aesthetic churn.
|
|
47
|
+
- Distinguish test harness failures (CDP disconnect, missing browser binary, auth walls, render timeouts) from product defects.
|
|
48
|
+
- Use a run-owned temporary empty browser profile only. Strictly no login or credential reuse (including test accounts). Never install browser software or run unapproved package installs. Disclose any unverified surfaces honestly.
|
|
34
49
|
|
|
35
50
|
## DESIGN_QUALITY (the bar)
|
|
36
51
|
|
|
37
|
-
- **
|
|
38
|
-
- **
|
|
39
|
-
- **Atmosphere.**
|
|
40
|
-
- **Contrast intent.** WCAG AA minimum,
|
|
41
|
-
- **Motion has meaning.** Animations confirm
|
|
52
|
+
- **Typography with purpose.** Readable, appropriate font hierarchy. Pair body and display faces only when justified.
|
|
53
|
+
- **Restrained aesthetic by default.** No gratuitous "purple gradient + white text". No drop-shadowed cards floating aimlessly on grey. Use purposeful type, generous whitespace, and structured alignment.
|
|
54
|
+
- **Atmosphere serves function.** Layered transparencies, subtle borders, and soft motion are used sparingly to clarify reading order or spatial depth, never as pure decoration.
|
|
55
|
+
- **Contrast intent.** WCAG AA minimum, AAA target for body copy. Test colors at actual font sizes, not in swatches.
|
|
56
|
+
- **Motion has meaning.** Animations confirm actions, reveal hierarchy, or transport between states. Decorative motion is banned. GPU-composited properties only (`transform`, `opacity`, `filter`).
|
|
42
57
|
|
|
43
58
|
## ANTI-PATTERNS (blocking)
|
|
44
59
|
|
|
45
|
-
- Hardcoded hex colors when
|
|
46
|
-
-
|
|
47
|
-
- Default browser focus rings on interactive elements.
|
|
48
|
-
- Centering everything
|
|
49
|
-
- "Modern" SaaS landing-page tropes (gradient hero, three-column
|
|
60
|
+
- Hardcoded hex colors or arbitrary spacing when design tokens exist.
|
|
61
|
+
- Deleting, omitting, or merging required content, fields, or inputs to simplify styling.
|
|
62
|
+
- Default unstyled browser focus rings on interactive elements.
|
|
63
|
+
- Centering everything due to lack of layout structure.
|
|
64
|
+
- "Modern" SaaS landing-page tropes (gradient hero, generic three-column cards, testimonial carousel) applied to internal tools or dashboards.
|
|
65
|
+
- Autonomous installation of browser binaries, dev tools, or npm packages.
|
|
66
|
+
- Fabricating a "before" screenshot after code has already been changed.
|
|
50
67
|
|
|
51
68
|
## DELIVERABLE
|
|
52
69
|
|
|
53
|
-
- The component
|
|
54
|
-
- A
|
|
55
|
-
- Screenshots or a description of the rendered output at each breakpoint where the layout meaningfully changes.
|
|
70
|
+
- The requested component, page, or report.
|
|
71
|
+
- A concise summary listing effective tokens used, rendered verification results (breakpoints and states exercised), issues found and fixed, and any unverified boundaries or constraints, without design-choice history.
|
|
56
72
|
|
|
57
73
|
---
|
|
58
74
|
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
Review the stated goal and acceptance criteria against the current committed range or working-tree/staged diff, including relevant new files, available verification, and constraints. Inputs need no prescribed labels or order. Review only that implementation; do not edit, execute product work, or turn unrelated observations into blockers.
|
|
25
25
|
|
|
26
|
-
Never use this role for research, ideation, architecture design before implementation, root-cause debugging, general answer validation, or routine confidence. Ground every claim in supplied or directly observed paths, symbols, diffs, tests, logs, or requirements. Distinguish implementation defects from proof gaps in clear prose; labels are optional.
|
|
26
|
+
Never use this role for research, ideation, architecture design before implementation, root-cause debugging, general answer validation, or routine confidence. Ground every claim in supplied or directly observed paths, symbols, diffs, tests, logs, or requirements. Distinguish implementation defects from harness/tool/environment failures and other proof gaps in clear prose; labels are optional. A harness that did not exercise product behavior proves neither success nor a product defect.
|
|
27
27
|
|
|
28
28
|
Judge documents, code/comments, tests, and commit messages against final effective requirements and design, not development narratives, decision histories, rejected alternatives, or assumption rationale/cost records. Only strictly chronological documents such as roadmaps/changelogs retain history. Product spec/plan directories describe final product deliverables only, with separate plans for changed requirements; non-product coordination stays in conversation or task-owned temporary plans outside `docs/superpowers/specs/` and `docs/superpowers/plans/`.
|
|
29
29
|
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
Evaluate existing evidence by material relevance; request missing or affected coverage instead of blanket reruns for unrelated code, dependency, or environment changes. The orchestrator coordinates global/heavy verification; don't duplicate it or waive required safety, release, pre-commit, or user checks.
|
|
33
33
|
|
|
34
|
-
Report material findings first with severity when useful, file path, concrete evidence, likely impact, and the smallest valid correction. Judge whether useful functionality is complete, interfaces are clear, and meaningful regression and real-surface evidence support the result. Review informs engineering judgment; it is not delivery authorization or a protocol gate.
|
|
34
|
+
Report material findings first with severity when useful, file path, concrete evidence, likely impact, and the smallest valid correction. Judge whether useful functionality is complete, interfaces are clear, and meaningful regression and real-surface evidence support the result. Review informs engineering judgment; it is not delivery authorization or a protocol gate. Repeat only the affected review for a newly identified or resolved blocker, a substantive correction, or relevant new evidence; repeated concerns or unchanged uncertainty do not justify another pass. Apply strict review only when the user explicitly requests it or a scoped, concrete high-risk condition warrants it.
|
|
35
35
|
|
|
36
36
|
Use direct read/search tools first; a leaf read-only lookup may verify one finding but returns evidence, not delegated judgment. Never dispatch planner, reviewer, any Oracle profile, plan-critic, clarifier, coordinator, or an implementation agent.
|
|
37
37
|
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
Review the stated goal and acceptance criteria against the current committed range or working-tree/staged diff, including relevant new files, available verification, and constraints. Inputs need no prescribed labels or order. Review only that implementation; do not edit, execute product work, or turn unrelated observations into blockers.
|
|
25
25
|
|
|
26
|
-
Never use this role for research, ideation, architecture design before implementation, root-cause debugging, general answer validation, or routine confidence. Ground every claim in supplied or directly observed paths, symbols, diffs, tests, logs, or requirements. Distinguish implementation defects from proof gaps in clear prose; labels are optional.
|
|
26
|
+
Never use this role for research, ideation, architecture design before implementation, root-cause debugging, general answer validation, or routine confidence. Ground every claim in supplied or directly observed paths, symbols, diffs, tests, logs, or requirements. Distinguish implementation defects from harness/tool/environment failures and other proof gaps in clear prose; labels are optional. A harness that did not exercise product behavior proves neither success nor a product defect.
|
|
27
27
|
|
|
28
28
|
Judge documents, code/comments, tests, and commit messages against final effective requirements and design, not development narratives, decision histories, rejected alternatives, or assumption rationale/cost records. Only strictly chronological documents such as roadmaps/changelogs retain history. Product spec/plan directories describe final product deliverables only, with separate plans for changed requirements; non-product coordination stays in conversation or task-owned temporary plans outside `docs/superpowers/specs/` and `docs/superpowers/plans/`.
|
|
29
29
|
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
Evaluate existing evidence by material relevance; request missing or affected coverage instead of blanket reruns for unrelated code, dependency, or environment changes. The orchestrator coordinates global/heavy verification; don't duplicate it or waive required safety, release, pre-commit, or user checks.
|
|
33
33
|
|
|
34
|
-
Report material findings first with severity when useful, file path, concrete evidence, likely impact, and the smallest valid correction. Judge whether useful functionality is complete, interfaces are clear, and meaningful regression and real-surface evidence support the result. Review informs engineering judgment; it is not delivery authorization or a protocol gate.
|
|
34
|
+
Report material findings first with severity when useful, file path, concrete evidence, likely impact, and the smallest valid correction. Judge whether useful functionality is complete, interfaces are clear, and meaningful regression and real-surface evidence support the result. Review informs engineering judgment; it is not delivery authorization or a protocol gate. Repeat only the affected review for a newly identified or resolved blocker, a substantive correction, or relevant new evidence; repeated concerns or unchanged uncertainty do not justify another pass. Apply strict review only when the user explicitly requests it or a scoped, concrete high-risk condition warrants it.
|
|
35
35
|
|
|
36
36
|
Use direct read/search tools first; a leaf read-only lookup may verify one finding but returns evidence, not delegated judgment. Never dispatch planner, reviewer, any Oracle profile, plan-critic, clarifier, coordinator, or an implementation agent.
|
|
37
37
|
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
|
|
52
52
|
You are the exclusive owner of workflow-agent composition. Role agents may perform only their explicit leaf read-only lookups; they never compose planner, reviewer, Oracle, clarifier, plan-critic, coordinator, or implementation workflows.
|
|
53
53
|
|
|
54
|
-
The trusted root/stage owner alone dispatches the planner and then the plan-critic. A critic blocker must be corrected, rebutted with concrete evidence, or escalated for clarification before implementation; non-blocking improvements do not delay implementation. Re-run only the affected critique
|
|
54
|
+
The trusted root/stage owner alone dispatches the planner and then the plan-critic. A critic blocker must be corrected, rebutted with concrete evidence, or escalated for clarification before dependent implementation; non-blocking improvements do not delay implementation. Continue independent authorized work only when it does not rely on the blocker. Re-run only the affected critique for a newly identified or resolved blocker or relevant new evidence; wording changes, repeated doubts, and unchanged uncertainty do not create progress. Do not require hashes, fixed receipts, fixed verdict wording, or open-ended review loops.
|
|
55
55
|
|
|
56
56
|
Reviewer is the primary-model or primary-lane self-review profile. Oracle profiles are external-model cross-check slots in ordered Oracle priority: `oracle`, then `oracle-2nd` only when actually enabled and permitted; no later slot is supplied by this inventory. Configuring multiple slots or tiers does not cause fan-out; request additional evidence explicitly and in ordinal order. Explicit user model configuration remains authoritative.
|
|
57
57
|
|
|
58
|
-
Review informs engineering judgment; it does not authorize delivery. Give reviewers the goal, acceptance criteria, current diff or range including new files, available verification, and relevant constraints, without requiring prescribed labels or ordering.
|
|
58
|
+
Review informs engineering judgment; it does not authorize delivery. Give reviewers the goal, acceptance criteria, current diff or range including new files, available verification, and relevant constraints, without requiring prescribed labels or ordering. Repeat only the affected review for a newly identified or resolved blocker, a substantive correction, or relevant new evidence when further review is warranted.
|
|
59
59
|
|
|
60
60
|
Before dispatching planner or plan-critic, inspect actual admitted role tools, target enums and configured invocation levels. Keep canonical dsmm-planner/dsmm-plan-critic identities; source tier suffixes are not DSH tools. Omitted/normal preserves the default route. For cross-module work prefer configured high when suitable, otherwise normal; for concrete safety/performance/data-loss risk prefer configured max, then high, then normal. Use low only for explicit cost/latency intent. No tier name proves a model's effort or capability: levels are configured complete routes or exact effort-only overrides, and route needs deployment opt-in plus native preflight. Preserve the critic's thorough blocker-finding duty independent of cost; no exact xhigh SDK effort is inferred. Report a required unavailable planning capability to the stage owner.
|
|
61
61
|
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
|
|
38
38
|
Everything else is a non-blocking note and does not delay implementation. Give current findings and supporting evidence as clear prose rather than protocol fields or approval tokens. Every substantive blocker must be corrected, rebutted with concrete evidence, or escalated for clarification; it cannot be relabeled advisory and ignored. Critique informs judgment and does not authorize implementation or delivery.
|
|
39
39
|
|
|
40
|
-
Do not require another review merely because the plan changed.
|
|
40
|
+
Do not require another review merely because the plan changed. Revisit only affected claims and dependent risks when a blocker is newly identified or resolved, or relevant new evidence or another substantive input could change the prior conclusion. Wording changes, repeated concerns, and unchanged uncertainty are not progress; stop and return an unresolved blocker rather than continuing a no-progress loop. Do not require hashes, a fixed receipt or verdict format, a fixed iteration count, or an open-ended loop. Do not object to preference, optional polish, or a merely better approach.
|
|
41
41
|
|
|
42
42
|
Use direct tools first; a leaf read-only lookup may verify one concrete plan claim. Never dispatch planner, reviewer, any Oracle profile, clarifier, another plan-critic, coordinator, or an implementation agent, and never delegate the critique.
|
|
43
43
|
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
## Handoff
|
|
33
33
|
|
|
34
|
-
Return the plan to the orchestrator with an authorized coordinator's artifact location when provided, the ideal end state, effective constraints, dependencies and interfaces, wave goals, unresolved facts or authorization, material risks, and evidence that would demonstrate useful completion. For complex implementation of product business logic or behavior, the orchestrator normally sends the completed plan to `plan-critic` before implementation; non-product work does not receive automatic criticism merely because a plan exists. The planner never dispatches that review. Critic blockers must be corrected, rebutted with evidence, or escalated, while non-blocking suggestions do not hold implementation. Re-review only
|
|
34
|
+
Return the plan to the orchestrator with an authorized coordinator's artifact location when provided, the ideal end state, effective constraints, dependencies and interfaces, wave goals, unresolved facts or authorization, material risks, and evidence that would demonstrate useful completion. For complex implementation of product business logic or behavior, the orchestrator normally sends the completed plan to `plan-critic` before implementation; non-product work does not receive automatic criticism merely because a plan exists. The planner never dispatches that review. Critic blockers must be corrected, rebutted with evidence, or escalated, while non-blocking suggestions do not hold implementation. Re-review only affected claims for a newly identified or resolved blocker or relevant new evidence; wording changes and repeated concerns are not progress. Keep unresolved dependent work incomplete while allowing independent authorized waves, with no hashes, fixed receipt, or unbounded loop. Do not perform Git writes or assume a plan should be committed without specific authorization.
|
|
35
35
|
|
|
36
36
|
</agent-role>
|
|
37
37
|
|
|
@@ -28,6 +28,9 @@
|
|
|
28
28
|
- **Atomic task treatment.** Treat the goal as one indivisible commitment. Do not split it into a TODO list and ship halfway. You either deliver the goal or you escalate.
|
|
29
29
|
- **Root-cause bias.** When you hit a defect, fix the cause. Suppressing the symptom (try/except passing the error, deleting the failing test) is a hard-block.
|
|
30
30
|
- **Scope follows the question.** If the caller asked for findings, deliver findings. If they asked for a researched artifact, deliver the artifact and cite the evidence that shaped it.
|
|
31
|
+
- **Proportional depth.** Answer a simple factual lookup directly. Do not turn it into a multi-worker research program, persistent ledger, or fixed report pipeline.
|
|
32
|
+
|
|
33
|
+
For reports, source summaries or translations, comparisons, and deliverables with derived numbers, load `report-fidelity` through the actual native skill catalog. Do not load it for a simple lookup that does not need those guarantees; the skill never expands native tools or permissions.
|
|
31
34
|
|
|
32
35
|
## BOUNDED RESEARCH
|
|
33
36
|
|
|
@@ -40,22 +43,16 @@
|
|
|
40
43
|
- Treat a proxy, mirror, cache, or explicitly untrusted source as indirect evidence. Corroborate every material claim through an independent route.
|
|
41
44
|
- When a tool has no provenance, state that limitation. Do not invent provenance, dates, or source status.
|
|
42
45
|
|
|
43
|
-
## COMPLETION
|
|
44
|
-
|
|
45
|
-
You are done when ALL of these are true:
|
|
46
|
+
## COMPLETION AND BLOCKERS
|
|
46
47
|
|
|
47
|
-
|
|
48
|
-
2. Tests for valid requirements, functionality, and external interfaces pass where applicable. Changed requirements update their tests; removed components lose dedicated tests rather than gaining absence checks. Do not add descriptive-text locks for documentation, commits, package descriptions, or non-boundary error/log wording.
|
|
49
|
-
3. You have probed the failure modes you can reach in this environment (concurrent calls, edge values, missing dependencies).
|
|
50
|
-
4. You have left the codebase in a state another engineer can pick up — naming, comments only where needed, no dead branches.
|
|
48
|
+
Complete the authorized deliverable with the strongest evidence available from the real surface. Exercise applicable failure modes and tests for valid behavior and external interfaces; do not add descriptive-text locks or removed-component absence tests.
|
|
51
49
|
|
|
52
|
-
If
|
|
50
|
+
If access, authorization, tooling, the harness, or the environment prevents required evidence, stop after bounded evidence-based attempts and report the verified findings, exact blocker, and affected claims. A harness failure that never exercised the subject proves neither product success nor product failure. Do not label an unresolved required item complete, weaken a valid check, or change the subject merely to produce green output; continue independent authorized research only when it does not depend on the blocker.
|
|
53
51
|
|
|
54
52
|
## STATUS CADENCE
|
|
55
53
|
|
|
56
54
|
- Sparse. The caller does not need a play-by-play.
|
|
57
|
-
-
|
|
58
|
-
- Send one update at completion with: what landed, what remains (if anything), how to verify.
|
|
55
|
+
- Update only at a substantive phase boundary, material blocker, or completion; do not create a fixed reporting cadence.
|
|
59
56
|
|
|
60
57
|
## ANTI-PATTERNS (blocking)
|
|
61
58
|
|
|
@@ -69,6 +66,7 @@
|
|
|
69
66
|
|
|
70
67
|
- The thing you were asked for, complete.
|
|
71
68
|
- A short report of findings, supporting evidence and source provenance, current constraints, unresolved authorization, and unverified claims, not the investigation path or decision history.
|
|
69
|
+
- For a fidelity-sensitive deliverable, apply `report-fidelity` and disclose source conflicts, assumptions, calculations, translations, and unavailable support that materially affect the claims.
|
|
72
70
|
|
|
73
71
|
Research complexity does not authorize a product spec/plan artifact. `docs/superpowers/specs/` and `docs/superpowers/plans/` are for final product requirements to be delivered, with separate plans for changed requirements. Use conversation coordination or a task-owned temporary plan elsewhere for non-product research.
|
|
74
72
|
|
|
@@ -124,6 +122,8 @@
|
|
|
124
122
|
</dsmm-delegation-contract>
|
|
125
123
|
|
|
126
124
|
The source delegation allowance is conditional on actual native callability and the caller's inherited authority; formal workflow stages belong to the trusted root/stage owner. No static text grants a tool or overrides an execution restriction.
|
|
125
|
+
|
|
126
|
+
For fidelity-sensitive reports, load `report-fidelity` only through the actual native skill catalog. It changes reporting discipline, not the DSH tool inventory, delegation contract, native ownership, or permission ceiling.
|
|
127
127
|
- id: agent-instructions
|
|
128
128
|
name: '@deepseek-ai/dsh-agent-instructions'
|
|
129
129
|
config:
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
Review the stated goal and acceptance criteria against the current committed range or working-tree/staged diff, including relevant new files, available verification, and constraints. Inputs need no prescribed labels or order. Review only that implementation; do not edit, execute product work, or turn unrelated observations into blockers.
|
|
25
25
|
|
|
26
|
-
Never use this role for research, ideation, architecture design before implementation, root-cause debugging, general answer validation, or routine confidence. Ground every claim in supplied or directly observed paths, symbols, diffs, tests, logs, or requirements. Distinguish implementation defects from proof gaps in clear prose; labels are optional.
|
|
26
|
+
Never use this role for research, ideation, architecture design before implementation, root-cause debugging, general answer validation, or routine confidence. Ground every claim in supplied or directly observed paths, symbols, diffs, tests, logs, or requirements. Distinguish implementation defects from harness/tool/environment failures and other proof gaps in clear prose; labels are optional. A harness that did not exercise product behavior proves neither success nor a product defect.
|
|
27
27
|
|
|
28
28
|
Judge documents, code/comments, tests, and commit messages against final effective requirements and design, not development narratives, decision histories, rejected alternatives, or assumption rationale/cost records. Only strictly chronological documents such as roadmaps/changelogs retain history. Product spec/plan directories describe final product deliverables only, with separate plans for changed requirements; non-product coordination stays in conversation or task-owned temporary plans outside `docs/superpowers/specs/` and `docs/superpowers/plans/`.
|
|
29
29
|
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
Evaluate existing evidence by material relevance; request missing or affected coverage instead of blanket reruns for unrelated code, dependency, or environment changes. The orchestrator coordinates global/heavy verification; don't duplicate it or waive required safety, release, pre-commit, or user checks.
|
|
33
33
|
|
|
34
|
-
Report material findings first with severity when useful, file path, concrete evidence, likely impact, and the smallest valid correction. Judge whether useful functionality is complete, interfaces are clear, and meaningful regression and real-surface evidence support the result. Review informs engineering judgment; it is not delivery authorization or a protocol gate.
|
|
34
|
+
Report material findings first with severity when useful, file path, concrete evidence, likely impact, and the smallest valid correction. Judge whether useful functionality is complete, interfaces are clear, and meaningful regression and real-surface evidence support the result. Review informs engineering judgment; it is not delivery authorization or a protocol gate. Repeat only the affected review for a newly identified or resolved blocker, a substantive correction, or relevant new evidence; repeated concerns or unchanged uncertainty do not justify another pass. Apply strict review only when the user explicitly requests it or a scoped, concrete high-risk condition warrants it.
|
|
35
35
|
|
|
36
36
|
Use direct read/search tools first; a leaf read-only lookup may verify one finding but returns evidence, not delegated judgment. Never dispatch planner, reviewer, any Oracle profile, plan-critic, clarifier, coordinator, or an implementation agent.
|
|
37
37
|
|
package/docs/compatibility.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DSMM compatibility and upgrade boundaries
|
|
2
2
|
|
|
3
|
-
**DSMM 0.3.
|
|
3
|
+
**DSMM 0.3.17 supports DSH `>=0.2.1-rc.2 <0.3.0`** and Node.js 22 or later. Official DSH rc.3 gives `engines.dsh` precedence over peer ranges. DSH dependencies, peerDependencies and devDependencies remain pinned to rc.2 as the development baseline; versions outside the declared Host range aren't supported.
|
|
4
4
|
|
|
5
5
|
## Supported integration
|
|
6
6
|
|
|
@@ -50,12 +50,12 @@ Standard supported model calls use native prepared calls. Raw/custom and Pi-AI s
|
|
|
50
50
|
|
|
51
51
|
## Retired compatibility surfaces
|
|
52
52
|
|
|
53
|
-
No old SDK branch, legacy-read host, cold-profile migration, session repair or custom-owner selector is a 0.3.
|
|
53
|
+
No old SDK branch, legacy-read host, cold-profile migration, session repair or custom-owner selector is a 0.3.17 activation path. Old libraries, captures and unmarked history aren't copied, rewritten, repaired or adopted by same-name fallback. Retired brand calibration/default-effort and MaxReasoningPresets fields reject with `deprecated-field`; edit configuration deliberately using generic routes and parameters.
|
|
54
54
|
|
|
55
55
|
Published **0.3.0 retains its rc.1 identity**, immutable tag, package, assets and version-bound receipt grammar. Historical release controls interpret those records under their original identity, not as a runtime compatibility branch.
|
|
56
56
|
|
|
57
57
|
## Installation boundaries
|
|
58
58
|
|
|
59
|
-
Evaluate an authorized built artifact in an isolated home/profile as in the [README](../README.md#use-a-local-artifact). Real Desktop/TUI/CLI plugin installation needs exact authorization and
|
|
59
|
+
Evaluate an authorized built artifact in an isolated home/profile as in the [README](../README.md#use-a-local-artifact). Real Desktop/TUI/CLI plugin installation needs exact authorization and a DSH Host satisfying `>=0.2.1-rc.2 <0.3.0`; it doesn't authorize upgrading the Host, touching credentials/history or copying a Desktop profile into another carrier.
|
|
60
60
|
|
|
61
|
-
Desktop plugin installation follows publication and
|
|
61
|
+
Desktop plugin installation follows publication and uses the Desktop-owned carrier within that Host range; it doesn't authorize a Host upgrade. [Release controls](releasing.md) define publication and delivery. [Fake-IP fetch](web-fetch-fakeip.md) owns network details and limits; shell rejection remains unresolved. [Native permissions](native-permissions.md) defines approval scope.
|
package/docs/maintenance.md
CHANGED
|
@@ -7,7 +7,8 @@ not read a parent or sibling repository.
|
|
|
7
7
|
## Toolchain
|
|
8
8
|
|
|
9
9
|
Use Node.js 24 for CI/release and pnpm 11.9.0. The package still supports Node.js
|
|
10
|
-
22 or later at runtime and
|
|
10
|
+
22 or later at runtime and supports DSH `>=0.2.1-rc.2 <0.3.0`, with rc.2 as the
|
|
11
|
+
development dependency baseline. Do not change the npm
|
|
11
12
|
name `@dsmm/dsmm`, package version, or DSH dependency line as part of routine
|
|
12
13
|
maintenance unless the release or compatibility scope explicitly requires it.
|
|
13
14
|
|
|
@@ -39,6 +40,35 @@ base Deepwork prompt, run `pnpm run generate:roles`. CI uses
|
|
|
39
40
|
`pnpm run check:roles` and fails if `agent-presets/` or `prompts/deepwork.md` is
|
|
40
41
|
stale. Generated assets are package resources, not an alternate source of truth.
|
|
41
42
|
|
|
43
|
+
Model guidance is subordinate to the selected role and native DSH host contract.
|
|
44
|
+
Kimi models share one current-generation `deepwork/kimi.md` calibration; older
|
|
45
|
+
generations have no separately maintained prompt. Gemini 4.x, including Argon,
|
|
46
|
+
receives a guarded `gemini-4` additive layer based on generic Gemini guidance.
|
|
47
|
+
Prompt selection does not change provider, effort, fallback chains or DSH model
|
|
48
|
+
capabilities.
|
|
49
|
+
|
|
50
|
+
Effective Deepwork activation includes a short brainstorming orientation. Full
|
|
51
|
+
brainstorming remains a native skill loaded only when material uncertainty calls
|
|
52
|
+
for discovery or design; explicit mode-off and native skill controls remain
|
|
53
|
+
authoritative. Standing role, authorization and workflow rules do not depend on
|
|
54
|
+
loading the full skill. Planning and execution reviews continue for concrete
|
|
55
|
+
blocker or evidence progress, not unchanged doubts or repeated same-cause failures.
|
|
56
|
+
Harness failures and unmet requirements remain explicit rather than being treated
|
|
57
|
+
as product failures or successful completion.
|
|
58
|
+
|
|
59
|
+
Frontend work follows brief → build → subtract → verify. Small edits preserve
|
|
60
|
+
existing styles and required content; visual QA uses comparable real before/after
|
|
61
|
+
states, separates defects from taste, and discloses missing evidence. Research
|
|
62
|
+
reporting loads the native `report-fidelity` skill on demand for source support, units, derived
|
|
63
|
+
calculations, quotations and translation meaning, without mandatory ledgers or
|
|
64
|
+
large-workflow requirements for simple questions. These local adaptations preserve
|
|
65
|
+
DSH ownership of tasks, lifecycle, permissions and persistence.
|
|
66
|
+
|
|
67
|
+
The `report-fidelity` skill follows native metadata discovery, lazy body loading,
|
|
68
|
+
and the normal skill setting. Historical child captures without that setting keep
|
|
69
|
+
it disabled; new captures retain their captured value independently of later
|
|
70
|
+
parent settings, without changing the child's authority ceiling.
|
|
71
|
+
|
|
42
72
|
## Frontend resources and provenance
|
|
43
73
|
|
|
44
74
|
The full `skills/frontend/` tree is maintained in this repository and shipped in
|
package/docs/releasing.md
CHANGED
|
@@ -48,6 +48,6 @@ after either surface is published is a partial release, not authorization to mov
|
|
|
48
48
|
or recreate the tag, republish the npm version, or replace an asset. Report the
|
|
49
49
|
exact workflow result and use a separately authorized new version/tag.
|
|
50
50
|
|
|
51
|
-
Publication does not install DSMM. Installation requires
|
|
52
|
-
|
|
51
|
+
Publication does not install DSMM. Installation requires DSH
|
|
52
|
+
`>=0.2.1-rc.2 <0.3.0` and separate authorization, and must preserve accounts, credentials,
|
|
53
53
|
history and unrelated configuration.
|
package/docs/roadmap.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Version policy
|
|
4
4
|
|
|
5
|
-
**DSMM 0.3.
|
|
5
|
+
**DSMM 0.3.17 supports DSH `>=0.2.1-rc.2 <0.3.0`.** Official DSH rc.3 gives `engines.dsh` precedence over peer ranges; rc.2 remains the pinned development baseline. Each DSMM version declares its supported Host range independently of its development dependencies. Older SDKs and old configuration schemas aren't runtime compatibility targets. Loading sessions created by DSMM `0.2.x` is a required compatibility target, separate from retaining old runtime implementations or execution behavior. A dependency upgrade or support outside the declared range requires deliberate reassessment, not an automatic runtime switch.
|
|
6
6
|
|
|
7
7
|
Published `0.3.0` retains its original rc.1 package, tag, assets and version-bound release identity.
|
|
8
8
|
|
|
@@ -128,8 +128,8 @@ The extension must preserve the existing interception scope. Native reads that d
|
|
|
128
128
|
- **Permission follow-up:** observe native registration/approval source-binding APIs before revisiting mode-bounded automatic authorization; preserve existing direct-native compatibility without replacement tools. Long-lived command/subcommand/path grants, model-proposed scopes and their management UI are also deferred pending simpler supported DSH contracts. Existing command configuration and command-rule memory remain distinct capabilities. Precise path enforcement remains a separate Host dependency.
|
|
129
129
|
- **Await supported Host contracts:** exact external write/tree grants shared by file tools and shell; safe configuration changes during active execution; same-activation delivery transfer; non-disruptive plugin replacement; and a complete catalog-backed raw prepared-call seam. Existing catalog helpers and hot reload do not supply those stronger guarantees. Broader continuation also needs supported historical persona/composition handling and route-aware image preflight.
|
|
130
130
|
|
|
131
|
-
|
|
131
|
+
Reassess deferred capabilities against concrete public Host API changes. A newer release within the supported range does not by itself establish that the missing contracts or their acceptance evidence are available.
|
|
132
132
|
|
|
133
133
|
## Publication and Desktop installation
|
|
134
134
|
|
|
135
|
-
0.3.
|
|
135
|
+
0.3.17 publication uses the version-bound [release controls](releasing.md). Desktop plugin installation follows publication, uses the Desktop-owned carrier and requires DSH `>=0.2.1-rc.2 <0.3.0`. Installation doesn't authorize upgrading the Host, changing credentials or real sessions, altering unrelated configuration, or restarting active work. An incompatible Host or required data migration blocks installation rather than expanding its scope.
|
package/docs/tui.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 在 dsh-TUI 中使用 DSMM
|
|
2
2
|
|
|
3
|
-
TUI 适配面向 `@deepseek-harness-tui/dsh-tui` **0.16.1** 的公开接口,并要求实际 DSH
|
|
3
|
+
TUI 适配面向 `@deepseek-harness-tui/dsh-tui` **0.16.1** 的公开接口,并要求实际 DSH 运行时满足 **`>=0.2.1-rc.2 <0.3.0`**。需要包含此适配的 DSMM 构建;接口核对不能替代真实终端联调。
|
|
4
4
|
|
|
5
5
|
## 加载位置
|
|
6
6
|
|
package/dsh-plugin.json
CHANGED
package/lib/child-capture.d.ts
CHANGED
|
@@ -18,7 +18,8 @@ export interface ChildAuthorityCeiling {
|
|
|
18
18
|
allowRouteOverride: boolean;
|
|
19
19
|
maxDepth: number;
|
|
20
20
|
}
|
|
21
|
-
export type ChildRuntimePolicyCapture = Pick<DsmmSettings, "modules" | "roleRouting" | "runtimePolicy" | "workflow" | "guards" | "runtimeRecovery" | "defaultActive"
|
|
21
|
+
export type ChildRuntimePolicyCapture = Pick<DsmmSettings, "modules" | "roleRouting" | "runtimePolicy" | "workflow" | "guards" | "runtimeRecovery" | "defaultActive"> & {
|
|
22
|
+
skills: Omit<DsmmSettings["skills"], "report-fidelity"> & Partial<Pick<DsmmSettings["skills"], "report-fidelity">>;
|
|
22
23
|
subagents: Pick<DsmmSettings["subagents"], "enableRunInBackground" | "backgroundMode">;
|
|
23
24
|
};
|
|
24
25
|
export type HistoricalChildRuntimePolicyCapture = ChildRuntimePolicyCapture & {
|
package/lib/child-capture.js
CHANGED
|
@@ -164,7 +164,7 @@ export function parseChildAdmissionCapture(input) {
|
|
|
164
164
|
validateProfileOverlay(overlay);
|
|
165
165
|
object(modules, ["deepwork"]);
|
|
166
166
|
boolean(object(modules.deepwork, ["enabled"]).enabled);
|
|
167
|
-
const skillMap = object(skills, CAPTURE_SKILLS);
|
|
167
|
+
const skillMap = object(skills, CAPTURE_SKILLS, ["report-fidelity"]);
|
|
168
168
|
Object.values(skillMap).forEach(boolean);
|
|
169
169
|
const background = object(subagents, ["enableRunInBackground", "backgroundMode"]);
|
|
170
170
|
boolean(background.enableRunInBackground);
|
|
@@ -239,6 +239,7 @@ export function admissionFromChildCapture(input, nativeSubstrate) {
|
|
|
239
239
|
const capture = parseChildAdmissionCapture(input);
|
|
240
240
|
const { locale: _locale, ...substrate } = nativeSubstrate;
|
|
241
241
|
const settings = resolveConfig({ ...substrate, ...executionPolicy(capture.runtimePolicyCapture),
|
|
242
|
+
skills: { "report-fidelity": false, ...capture.runtimePolicyCapture.skills },
|
|
242
243
|
modelParameters: { passthrough: capture.version === 1 || capture.modelParameterPolicy.mode !== "native-defaults" },
|
|
243
244
|
roles: Object.fromEntries(DSMM_ROLE_IDS.map(role => [role, capture.authorityCeiling.roles.includes(role)])),
|
|
244
245
|
...(capture.locale === undefined ? {} : { locale: capture.locale }), subagents: { ...capture.runtimePolicyCapture.subagents,
|
package/lib/client.js
CHANGED
|
@@ -2685,7 +2685,7 @@ function schemaFieldShape(schema) {
|
|
|
2685
2685
|
return null;
|
|
2686
2686
|
}
|
|
2687
2687
|
var roleId = /^dsmm-(?:orchestrator|planner|plan-critic|builder|reviewer|oracle|oracle-2nd|creative|code-search|doc-search|clarifier|media-reader|frontend|hard-reasoning|research|quick|coding|normal-task|complex|deep|documenting|cross-cutting)$/u;
|
|
2688
|
-
var skillId = /^(?:brainstorming|writing-plans|requesting-code-review|receiving-code-review|subagent-driven-development|dispatching-parallel-agents|remove-ai-slops|debugging|frontend|git-master|ast-grep|coding-agent-sessions|init-deep|using-git-worktrees)$/u;
|
|
2688
|
+
var skillId = /^(?:brainstorming|writing-plans|requesting-code-review|receiving-code-review|subagent-driven-development|dispatching-parallel-agents|remove-ai-slops|debugging|frontend|git-master|ast-grep|coding-agent-sessions|init-deep|using-git-worktrees|report-fidelity)$/u;
|
|
2689
2689
|
var route = { provider: null, model: null, reasoningEffort: null };
|
|
2690
2690
|
var rateLimit = Object.fromEntries(Object.keys(DSMM_RATE_LIMIT_BOUNDS).map((key) => [key, null]));
|
|
2691
2691
|
var roleRouting = { primary: route, fallbackRoutes: [route], strategy: null, rateLimit, levels: { low: route, high: route, max: route } };
|
|
@@ -26,7 +26,7 @@ function schemaFieldShape(schema) {
|
|
|
26
26
|
}
|
|
27
27
|
// Closed wire grammar: dynamic role/skill names are declared identifiers, not arbitrary object keys.
|
|
28
28
|
const roleId = /^dsmm-(?:orchestrator|planner|plan-critic|builder|reviewer|oracle|oracle-2nd|creative|code-search|doc-search|clarifier|media-reader|frontend|hard-reasoning|research|quick|coding|normal-task|complex|deep|documenting|cross-cutting)$/u;
|
|
29
|
-
const skillId = /^(?:brainstorming|writing-plans|requesting-code-review|receiving-code-review|subagent-driven-development|dispatching-parallel-agents|remove-ai-slops|debugging|frontend|git-master|ast-grep|coding-agent-sessions|init-deep|using-git-worktrees)$/u;
|
|
29
|
+
const skillId = /^(?:brainstorming|writing-plans|requesting-code-review|receiving-code-review|subagent-driven-development|dispatching-parallel-agents|remove-ai-slops|debugging|frontend|git-master|ast-grep|coding-agent-sessions|init-deep|using-git-worktrees|report-fidelity)$/u;
|
|
30
30
|
const route = { provider: null, model: null, reasoningEffort: null };
|
|
31
31
|
const rateLimit = Object.fromEntries(Object.keys(DSMM_RATE_LIMIT_BOUNDS).map(key => [key, null]));
|
|
32
32
|
const roleRouting = { primary: route, fallbackRoutes: [route], strategy: null, rateLimit, levels: { low: route, high: route, max: route } };
|
package/lib/prompts.js
CHANGED
|
@@ -4,16 +4,17 @@ const activation = `<dsmm-deepwork-mode>
|
|
|
4
4
|
Use this workflow only while the \`{{modeName}}\` mode is effectively active. This is an opt-in boundary: ordinary presets default off; DW roles default on, but explicit off wins and retains only persona/access. Never force common workflow or skills on merely from a role name.
|
|
5
5
|
\`workflow.policy=risk-based\` follows the source workflow below. Explicit \`workflow.policy=legacy\` retains the configured \`strictGates\`, \`reviewCap\` and \`finalReviewPolicy\` gates; it is compatibility policy, not extra authorization. Role scope, output and terminal delegation policy are authoritative over all workflow/model guidance.
|
|
6
6
|
Skills are native metadata and lazy bodies, never automatically injected. Load matching skills only through the actual native skill catalog. Treat \`[dsmm safety]\` messages as binding feedback. Implementing does not authorize a commit; a commit does not authorize push/tag/rebase/release.
|
|
7
|
+
Understand the requested outcome and relevant facts first. Load the full \`brainstorming\` skill through the native catalog when material uncertainty needs discovery or design; clear, authorized work proceeds directly through the applicable workflow. Ask only for a material scope, acceptance, security, data, API/protocol, permission or irreversible-action decision, missing input that would materially change delivery, or an explicit checkpoint. Role-first boundaries and orchestrator-owned planner/critic responsibilities remain unchanged.
|
|
7
8
|
</dsmm-deepwork-mode>`;
|
|
8
9
|
export const BASE_DEEPWORK_PROMPT = [activation, asset("deepwork/default.md"), asset("shared/shell-safety.md"), asset("shared/dsh-host-contract.md")].join("\n\n---\n\n");
|
|
9
|
-
// Prompt-only matching
|
|
10
|
+
// Prompt-only matching is independent of model-family routing and effort parameters.
|
|
10
11
|
function modelName(fullId) {
|
|
11
12
|
const name = fullId.slice(fullId.lastIndexOf("/") + 1).toLowerCase();
|
|
12
13
|
const vendors = { openai: /^(?:gpt-|o\d|chatgpt-|codex-)/u, anthropic: /^claude-/u, google: /^gemini-/u, zhipu: /^glm-/u, deepseek: /^deepseek-/u };
|
|
13
14
|
const parts = name.split("."), direct = parts.slice(1).join("."), regional = parts.slice(2).join(".");
|
|
14
15
|
if (vendors[parts[0]]?.test(direct))
|
|
15
16
|
return direct;
|
|
16
|
-
if (/^(?:[a-z]{2}|[a-z]{2}-[a-z]+-\d+)$/u.test(parts[0]) && vendors[parts[1]]?.test(regional))
|
|
17
|
+
if (/^(?:global|[a-z]{2}|[a-z]{2}-[a-z]+-\d+)$/u.test(parts[0]) && vendors[parts[1]]?.test(regional))
|
|
17
18
|
return regional;
|
|
18
19
|
return name;
|
|
19
20
|
}
|
|
@@ -21,8 +22,9 @@ export function promptModelVariants(role, model) {
|
|
|
21
22
|
const name = modelName(model);
|
|
22
23
|
const gpt = name.includes("gpt") || model.toLowerCase().includes("codex");
|
|
23
24
|
const opus = /^claude-opus-5(?:[-.]5)?(?:$|[-.](?:20\d{6}(?:[-.][a-z0-9]+)*|[a-z][a-z0-9-]*))$/iu.test(name.replace(/^global\.anthropic\./iu, "").replace(/@default$/iu, ""));
|
|
24
|
-
const kimi = [
|
|
25
|
-
const
|
|
25
|
+
const kimi = /^kimi(?:$|[-_.])/u.test(name) || /^k2[-.]?p[5-8](?:$|[-_.])/u.test(name);
|
|
26
|
+
const gemini4 = /^gemini-4(?:\.\d+)*(?:$|[-_])/u.test(name);
|
|
27
|
+
const additive = gpt ? ["gpt"] : kimi ? ["kimi"] : gemini4 ? ["gemini-4"] : /^swe-2(?:[-.]|$)/u.test(name) ? ["swe-2"] : [];
|
|
26
28
|
const base = role === "planner" ? "planner" : role === "orchestrator" && opus ? "claude-opus-5"
|
|
27
29
|
: model.toLowerCase().includes("codex") ? "codex" : gpt ? "gpt" : name.startsWith("gemini-") ? "gemini" : name.includes("glm") ? "glm" : "default";
|
|
28
30
|
return [...new Set([base, ...additive])].filter((variant) => variant !== "default");
|
|
@@ -36,7 +38,7 @@ export function roleModelCalibration(role, model) {
|
|
|
36
38
|
const family = model.toLowerCase().includes("codex") || name.includes("gpt") ? "gpt" : name.startsWith("gemini-") ? "gemini" : name.includes("glm") ? "glm" : name.includes("claude") ? "claude" : "unknown";
|
|
37
39
|
// Categories carry only their own family layer + additive model calibration,
|
|
38
40
|
// not the base-agent Gemini/GLM/planner workflow variants.
|
|
39
|
-
return [category.calibrations.get(family), ...layers.filter((_layer, index) => ["gpt", "kimi-
|
|
41
|
+
return [category.calibrations.get(family), ...layers.filter((_layer, index) => ["gpt", "kimi", "gemini-4", "swe-2"].includes(variants[index]))].filter(Boolean).join("\n\n---\n\n");
|
|
40
42
|
}
|
|
41
43
|
return layers.join("\n\n---\n\n");
|
|
42
44
|
}
|
package/lib/skills.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import type { Context } from "@deepseek-ai/cordis";
|
|
|
2
2
|
import type { DshAgent, DshSkillRegistration, DshSkillRegistry } from "./dsh-types.js";
|
|
3
3
|
import type { DsmmSettings, DsmmSettingsGetter } from "./settings.js";
|
|
4
4
|
import type { DeepworkModeController } from "./state.js";
|
|
5
|
-
export declare const DSMM_SKILL_NAMES: readonly ["brainstorming", "writing-plans", "requesting-code-review", "receiving-code-review", "subagent-driven-development", "dispatching-parallel-agents", "remove-ai-slops", "debugging", "frontend", "git-master", "ast-grep", "coding-agent-sessions", "init-deep", "using-git-worktrees"];
|
|
6
|
-
export declare const MVP_SKILL_NAMES: readonly ["brainstorming", "writing-plans", "requesting-code-review", "receiving-code-review", "subagent-driven-development", "dispatching-parallel-agents", "remove-ai-slops", "debugging", "frontend", "git-master", "ast-grep", "coding-agent-sessions", "init-deep", "using-git-worktrees"];
|
|
5
|
+
export declare const DSMM_SKILL_NAMES: readonly ["brainstorming", "writing-plans", "requesting-code-review", "receiving-code-review", "subagent-driven-development", "dispatching-parallel-agents", "remove-ai-slops", "debugging", "frontend", "git-master", "ast-grep", "coding-agent-sessions", "init-deep", "using-git-worktrees", "report-fidelity"];
|
|
6
|
+
export declare const MVP_SKILL_NAMES: readonly ["brainstorming", "writing-plans", "requesting-code-review", "receiving-code-review", "subagent-driven-development", "dispatching-parallel-agents", "remove-ai-slops", "debugging", "frontend", "git-master", "ast-grep", "coding-agent-sessions", "init-deep", "using-git-worktrees", "report-fidelity"];
|
|
7
7
|
export type DsmmSkillName = (typeof DSMM_SKILL_NAMES)[number];
|
|
8
8
|
export type DsmmAvailableSkillName = DsmmSkillName;
|
|
9
9
|
export type MvpSkillName = DsmmSkillName;
|
package/lib/skills.js
CHANGED
|
@@ -16,7 +16,8 @@ export const DSMM_SKILL_NAMES = [
|
|
|
16
16
|
"ast-grep",
|
|
17
17
|
"coding-agent-sessions",
|
|
18
18
|
"init-deep",
|
|
19
|
-
"using-git-worktrees"
|
|
19
|
+
"using-git-worktrees",
|
|
20
|
+
"report-fidelity"
|
|
20
21
|
];
|
|
21
22
|
export const MVP_SKILL_NAMES = DSMM_SKILL_NAMES;
|
|
22
23
|
const packageRoot = dirname(dirname(fileURLToPath(import.meta.url)));
|
|
@@ -36,7 +37,8 @@ export const DSMM_SKILL_DESCRIPTIONS = {
|
|
|
36
37
|
"ast-grep": "Use ast-grep (sg) only when the task explicitly requires exact syntax-tree matching or a deterministic codemod that simpler rg/LSP lookup cannot express reliably. Examples: rewrite a specific call/import shape, strip `as any`, find empty catch blocks, or scan/apply YAML rules. Do not trigger for ordinary repository discovery, symbol navigation, text search, or one-off lookups that rg/LSP can answer.",
|
|
37
38
|
"coding-agent-sessions": "MUST USE when asked to find, read, list, search, inspect, fetch, export, or reconstruct coding-agent sessions across Codex, Claude Code/Desktop, OpenCode, Senpi/pi, oh-my-pi (omp), gajae-code (gjc), OpenClaw, Factory Droid, Amp, Gemini/Kimi/Qwen CLIs, Codebuff, Roo/Kilo/Cline, Kodu, Cursor CLI, Aider, Aside browser-agent sessions, or unknown local agent logs. Covers transcripts, session IDs, rollout JSONL, state SQLite, Claude projects/pre-compact histories, OpenCode messages/parts, child/subagent linkage, cwd/model/time/token filters, archives, and cost clues. Expands fuzzy recall into parallel query lanes and first probes known stores so absent platforms are skipped cheaply. Triggers: coding agent sessions, Codex/Claude/OpenCode/Senpi/pi/oh-my-pi/omp/gajae-code/gjc/OpenClaw/Droid/Amp/Kodu/Cursor/Aider/Aside sessions, transcript search, session history, session ID, read transcript, token usage, subagent sessions, what did I do yesterday, did we already do this.",
|
|
38
39
|
"init-deep": "(builtin) Initialize hierarchical AGENTS.md knowledge base",
|
|
39
|
-
"using-git-worktrees": "Use ONLY when the user explicitly asks to use a git worktree for isolated feature work. Do not auto-trigger. Creates a linked worktree, sets up the project, and verifies a clean baseline before development begins."
|
|
40
|
+
"using-git-worktrees": "Use ONLY when the user explicitly asks to use a git worktree for isolated feature work. Do not auto-trigger. Creates a linked worktree, sets up the project, and verifies a clean baseline before development begins.",
|
|
41
|
+
"report-fidelity": "Use for reports, source summaries or translations, comparisons, and deliverables with derived numbers that require precise sourcing and faithful meaning; not for simple factual lookups."
|
|
40
42
|
};
|
|
41
43
|
// END SOURCE SKILL METADATA
|
|
42
44
|
export const BUNDLED_SKILL_RANK = 600;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsmm/dsmm",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.18",
|
|
4
4
|
"description": "Native Deepwork roles, routing, profiles, and permission controls for DeepSeek Harness.",
|
|
5
5
|
"author": "Hugefiver",
|
|
6
6
|
"license": "LicenseRef-AAAPL",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
],
|
|
115
115
|
"engines": {
|
|
116
116
|
"node": ">=22",
|
|
117
|
-
"dsh": "0.2.1-rc.2"
|
|
117
|
+
"dsh": ">=0.2.1-rc.2 <0.3.0"
|
|
118
118
|
},
|
|
119
119
|
"dependencies": {
|
|
120
120
|
"@deepseek-ai/dsh-web-fetch-http": "0.2.1-rc.2",
|