@dsmm/dsmm 0.2.0 → 0.3.0
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 +37 -67
- package/agent-presets/dsmm-builder/agent.cordis.yml +10 -2015
- package/agent-presets/dsmm-clarifier/agent.cordis.yml +24 -343
- package/agent-presets/dsmm-code-search/agent.cordis.yml +19 -6
- package/agent-presets/dsmm-coding/agent.cordis.yml +19 -438
- package/agent-presets/dsmm-complex/agent.cordis.yml +23 -1009
- package/agent-presets/dsmm-creative/agent.cordis.yml +25 -442
- package/agent-presets/dsmm-cross-cutting/agent.cordis.yml +29 -1013
- package/agent-presets/dsmm-deep/agent.cordis.yml +24 -1008
- package/agent-presets/dsmm-doc-search/agent.cordis.yml +19 -6
- package/agent-presets/dsmm-documenting/agent.cordis.yml +26 -439
- package/agent-presets/dsmm-frontend/agent.cordis.yml +21 -440
- package/agent-presets/dsmm-hard-reasoning/agent.cordis.yml +22 -441
- package/agent-presets/dsmm-media-reader/agent.cordis.yml +19 -6
- package/agent-presets/dsmm-normal-task/agent.cordis.yml +19 -438
- package/agent-presets/dsmm-oracle/agent.cordis.yml +25 -340
- package/agent-presets/dsmm-oracle-2nd/agent.cordis.yml +25 -340
- package/agent-presets/dsmm-orchestrator/agent.cordis.yml +29 -2025
- package/agent-presets/dsmm-plan-critic/agent.cordis.yml +24 -341
- package/agent-presets/dsmm-planner/agent.cordis.yml +14 -344
- package/agent-presets/dsmm-quick/agent.cordis.yml +19 -6
- package/agent-presets/dsmm-research/agent.cordis.yml +23 -8
- package/agent-presets/dsmm-reviewer/agent.cordis.yml +25 -340
- package/cordis.patch.yml +14 -0
- package/docs/agent-presets.md +36 -52
- package/docs/compatibility.md +47 -110
- package/docs/deferred-native-approval-risk.md +19 -0
- package/docs/design.md +2 -2
- package/docs/lsp.md +11 -21
- package/docs/migration-from-ocmm.md +2 -2
- package/docs/model-routing.md +84 -59
- package/docs/native-permissions.md +35 -0
- package/docs/profiles.md +40 -87
- package/docs/releasing.md +123 -2
- package/docs/roadmap.md +71 -17
- package/docs/settings-status.md +34 -169
- package/docs/skill-sync.md +52 -15
- package/lib/agent-registry.d.ts +36 -0
- package/lib/agent-registry.js +75 -0
- package/lib/child-admission-contract.d.ts +37 -0
- package/lib/child-admission-contract.js +2 -0
- package/lib/child-admission.d.ts +40 -0
- package/lib/child-admission.js +151 -0
- package/lib/child-capture.d.ts +85 -0
- package/lib/child-capture.js +205 -0
- package/lib/child-evidence.d.ts +17 -0
- package/lib/child-evidence.js +43 -0
- package/lib/client/ChildrenPanel.d.ts +43 -0
- package/lib/client/ChildrenPanel.js +82 -0
- package/lib/client/DeploymentPage.js +15 -8
- package/lib/client/EditableChoice.d.ts +17 -0
- package/lib/client/EditableChoice.js +49 -0
- package/lib/client/PermissionsPanel.d.ts +14 -0
- package/lib/client/PermissionsPanel.js +46 -0
- package/lib/client/ProfilesSection.js +30 -15
- package/lib/client/RoleAvailability.d.ts +7 -0
- package/lib/client/RoleAvailability.js +19 -0
- package/lib/client/SessionProfiles.js +27 -9
- package/lib/client/StructuredEditor.js +15 -7
- package/lib/client/children-controller.d.ts +98 -0
- package/lib/client/children-controller.js +296 -0
- package/lib/client/children-locales.d.ts +367 -0
- package/lib/client/children-locales.js +69 -0
- package/lib/client/controller.d.ts +6 -1
- package/lib/client/controller.js +14 -8
- package/lib/client/deployment-controller.js +1 -1
- package/lib/client/deployment-data.d.ts +2 -1
- package/lib/client/deployment-data.js +34 -5
- package/lib/client/deployment-locales.d.ts +4 -0
- package/lib/client/deployment-locales.js +11 -2
- package/lib/client/diagnostics.d.ts +14 -0
- package/lib/client/diagnostics.js +53 -0
- package/lib/client/index.d.ts +4 -0
- package/lib/client/index.js +96 -2
- package/lib/client/locales.d.ts +54 -0
- package/lib/client/locales.js +34 -16
- package/lib/client/permission-client.d.ts +16 -0
- package/lib/client/permission-client.js +38 -0
- package/lib/client/permission-controller.d.ts +62 -0
- package/lib/client/permission-controller.js +149 -0
- package/lib/client/permission-locales.d.ts +114 -0
- package/lib/client/permission-locales.js +75 -0
- package/lib/client/session-labels.js +4 -4
- package/lib/client/structured.js +19 -5
- package/lib/client/styles.d.ts +1 -1
- package/lib/client/styles.js +20 -0
- package/lib/client.js +5780 -1679
- package/lib/core-permission-authority.d.ts +18 -0
- package/lib/core-permission-authority.js +255 -0
- package/lib/core-permissions.d.ts +8 -0
- package/lib/core-permissions.js +33 -0
- package/lib/delivery-authority.d.ts +83 -0
- package/lib/delivery-authority.js +397 -0
- package/lib/deployment-config.d.ts +23 -0
- package/lib/deployment-config.js +61 -40
- package/lib/deployment-permission-rules.d.ts +55 -0
- package/lib/deployment-permission-rules.js +306 -0
- package/lib/dsh-types.d.ts +10 -4
- package/lib/guards.d.ts +1 -1
- package/lib/guards.js +29 -8
- package/lib/host-llm-startup.d.ts +41 -0
- package/lib/host-llm-startup.js +65 -0
- package/lib/host-llm.d.ts +92 -0
- package/lib/host-llm.js +325 -0
- package/lib/index.d.ts +15 -4
- package/lib/index.js +288 -48
- package/lib/live-pi-ai-owner.d.ts +18 -0
- package/lib/live-pi-ai-owner.js +144 -0
- package/lib/llm-runtime.d.ts +11 -0
- package/lib/llm-runtime.js +21 -0
- package/lib/managed-settings.d.ts +5 -0
- package/lib/managed-settings.js +14 -0
- package/lib/model-parameter-policy.d.ts +11 -0
- package/lib/model-parameter-policy.js +27 -0
- package/lib/model-routing.js +28 -17
- package/lib/modules.d.ts +13 -5
- package/lib/modules.js +17 -1
- package/lib/native-child-evidence.d.ts +40 -0
- package/lib/native-child-evidence.js +104 -0
- package/lib/native-pi-ai-wire.d.ts +37 -0
- package/lib/native-pi-ai-wire.js +261 -0
- package/lib/native-scope.js +1 -1
- package/lib/permission-bash.d.ts +6 -0
- package/lib/permission-bash.js +7 -0
- package/lib/permission-control.d.ts +73 -0
- package/lib/permission-control.js +205 -0
- package/lib/permission-controller.d.ts +68 -0
- package/lib/permission-controller.js +317 -0
- package/lib/permission-errors.d.ts +7 -0
- package/lib/permission-errors.js +21 -0
- package/lib/permission-fs-search.d.ts +5 -0
- package/lib/permission-fs-search.js +7 -0
- package/lib/permission-fs.d.ts +5 -0
- package/lib/permission-fs.js +7 -0
- package/lib/permission-native-access.d.ts +11 -0
- package/lib/permission-native-access.js +6 -0
- package/lib/permission-native-command.d.ts +10 -0
- package/lib/permission-native-command.js +93 -0
- package/lib/permission-native-rules.d.ts +75 -0
- package/lib/permission-native-rules.js +278 -0
- package/lib/permission-pwsh.d.ts +6 -0
- package/lib/permission-pwsh.js +7 -0
- package/lib/permission-remote.d.ts +26 -0
- package/lib/permission-remote.js +53 -0
- package/lib/permission-rpc.d.ts +29 -0
- package/lib/permission-rpc.js +152 -0
- package/lib/permission-rules.d.ts +115 -0
- package/lib/permission-rules.js +256 -0
- package/lib/permission-settings.d.ts +45 -0
- package/lib/permission-settings.js +48 -0
- package/lib/permission-shell.d.ts +38 -0
- package/lib/permission-shell.js +150 -0
- package/lib/permission-web.d.ts +5 -0
- package/lib/permission-web.js +7 -0
- package/lib/preset-registry.js +36 -25
- package/lib/profile-diagnostics.d.ts +45 -0
- package/lib/profile-diagnostics.js +148 -0
- package/lib/profile-locale.d.ts +3 -0
- package/lib/profile-locale.js +2 -0
- package/lib/profile-remote.d.ts +8 -0
- package/lib/profile-remote.js +163 -39
- package/lib/profile-rpc.d.ts +4 -3
- package/lib/profile-rpc.js +20 -16
- package/lib/profile-runtime.d.ts +40 -1
- package/lib/profile-runtime.js +368 -93
- package/lib/profile-store.d.ts +11 -0
- package/lib/profile-store.js +143 -11
- package/lib/profile-types.d.ts +70 -1
- package/lib/profile-types.js +1 -0
- package/lib/profiles.d.ts +16 -2
- package/lib/profiles.js +156 -79
- package/lib/prompt-content.js +1 -1
- package/lib/prompts.d.ts +37 -2
- package/lib/prompts.js +111 -9
- package/lib/recovery-policy.js +20 -7
- package/lib/role-control-remote.d.ts +38 -0
- package/lib/role-control-remote.js +211 -0
- package/lib/role-control-rpc.d.ts +51 -0
- package/lib/role-control-rpc.js +381 -0
- package/lib/role-control-types.d.ts +92 -0
- package/lib/role-control-types.js +8 -0
- package/lib/role-invocation.d.ts +47 -0
- package/lib/role-invocation.js +135 -0
- package/lib/role-llm-runtime.d.ts +17 -0
- package/lib/role-llm-runtime.js +62 -0
- package/lib/role-llm.d.ts +31 -0
- package/lib/role-llm.js +66 -0
- package/lib/role-policy.d.ts +46 -8
- package/lib/role-policy.js +421 -61
- package/lib/role-providers.d.ts +2 -2
- package/lib/role-providers.js +27 -72
- package/lib/role-routing.d.ts +11 -2
- package/lib/role-routing.js +42 -25
- package/lib/role-runs.d.ts +138 -0
- package/lib/role-runs.js +335 -0
- package/lib/role-subagents.d.ts +58 -3
- package/lib/role-subagents.js +179 -56
- package/lib/roles.d.ts +5 -6
- package/lib/roles.js +10 -39
- package/lib/route-json.d.ts +19 -0
- package/lib/route-json.js +129 -0
- package/lib/routing-policy.d.ts +2 -0
- package/lib/routing-policy.js +12 -2
- package/lib/runtime-integration.d.ts +81 -0
- package/lib/runtime-integration.js +702 -0
- package/lib/runtime-recovery.js +18 -8
- package/lib/session-persistence.d.ts +2 -1
- package/lib/session-persistence.js +1 -1
- package/lib/session-scope.js +4 -1
- package/lib/settings.d.ts +47 -13
- package/lib/settings.js +217 -82
- package/lib/skills.js +2 -2
- package/lib/status.d.ts +10 -1
- package/lib/status.js +11 -8
- package/lib/subagent-runtime.d.ts +57 -0
- package/lib/subagent-runtime.js +257 -0
- package/package.json +149 -89
- package/patches/subagent-runtime.yml +15 -0
- package/prompts/deepseek-flash.md +1 -1
- package/prompts/deepseek-v4-pro.md +2 -2
- package/prompts/deepwork.md +27 -18
- package/prompts/source/agents/clarifier.md +5 -3
- package/prompts/source/agents/orchestrator.md +18 -9
- package/prompts/source/agents/plan-critic.md +5 -1
- package/prompts/source/agents/planner.md +4 -2
- package/prompts/source/agents/reviewer.md +6 -0
- package/prompts/source/category/complex.md +4 -4
- package/prompts/source/category/creative.md +6 -4
- package/prompts/source/category/cross-cutting.md +10 -8
- package/prompts/source/category/deep.md +5 -3
- package/prompts/source/category/documenting.md +7 -1
- package/prompts/source/category/frontend.md +2 -2
- package/prompts/source/category/hard-reasoning.md +3 -3
- package/prompts/source/category/research.md +4 -2
- package/prompts/source/deepwork/claude-opus-5.md +2 -2
- package/prompts/source/deepwork/codex.md +1 -1
- package/prompts/source/deepwork/default.md +22 -15
- package/prompts/source/deepwork/gemini.md +23 -16
- package/prompts/source/deepwork/glm.md +21 -14
- package/prompts/source/deepwork/gpt.md +12 -6
- package/prompts/source/deepwork/planner.md +8 -5
- package/prompts/source/manifest.json +178 -63
- package/prompts/source/shared/dsh-host-contract.md +5 -3
- package/prompts/source/shared/locale.md +2 -2
- package/prompts/source/terminal/orchestrator.md +1 -1
- package/skills/ast-grep/SKILL.md +7 -4
- package/skills/brainstorming/SKILL.md +43 -22
- package/skills/coding-agent-sessions/SKILL.md +7 -4
- package/skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py +46 -46
- package/skills/coding-agent-sessions/scripts/tests/test_pi_family_scanners.py +130 -130
- package/skills/debugging/SKILL.md +14 -9
- package/skills/debugging/references/methodology/00-setup.md +14 -62
- package/skills/debugging/references/methodology/02-investigate.md +4 -4
- package/skills/debugging/references/methodology/03-flaky-triage.md +3 -3
- package/skills/debugging/references/methodology/04-hard-reasoning-escalation.md +2 -14
- package/skills/debugging/references/methodology/06-fix.md +6 -6
- package/skills/debugging/references/methodology/08-qa.md +5 -5
- package/skills/debugging/references/methodology/09-cleanup.md +15 -153
- package/skills/debugging/references/methodology/partial-runtime-evidence.md +3 -16
- package/skills/debugging/references/runtimes/bundled-js-binary.md +1 -16
- package/skills/debugging/references/runtimes/native-binary.md +9 -54
- package/skills/debugging/references/runtimes/node.md +4 -15
- package/skills/debugging/references/runtimes/python.md +3 -15
- package/skills/debugging/references/runtimes/rust.md +2 -18
- package/skills/debugging/references/tools/dap.md +1 -1
- package/skills/debugging/references/tools/ghidra.md +4 -15
- package/skills/debugging/references/tools/playwright-cli.md +3 -15
- package/skills/debugging/references/tools/pwntools.md +4 -16
- package/skills/dispatching-parallel-agents/SKILL.md +18 -16
- package/skills/frontend/SKILL.md +7 -4
- package/skills/frontend/references/design/react-dev-tooling-skill.md +1 -1
- package/skills/git-master/SKILL.md +7 -4
- package/skills/init-deep/SKILL.md +7 -4
- package/skills/receiving-code-review/SKILL.md +17 -12
- package/skills/remove-ai-slops/SKILL.md +39 -38
- package/skills/requesting-code-review/SKILL.md +19 -17
- package/skills/requesting-code-review/code-reviewer.md +13 -1
- package/skills/subagent-driven-development/SKILL.md +29 -26
- package/skills/subagent-driven-development/implementer-prompt.md +29 -11
- package/skills/subagent-driven-development/spec-reviewer-prompt.md +6 -1
- package/skills/using-git-worktrees/SKILL.md +7 -4
- package/skills/writing-plans/SKILL.md +29 -24
- package/skills/writing-plans/plan-document-reviewer-prompt.md +10 -1
- package/scripts/repair-session-log.mjs +0 -476
- package/scripts/session-repair-native-verifier.mjs +0 -367
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsmm/dsmm",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "DeepSeek Harness deepwork mode bundle for ocmm-style agentic workflows.",
|
|
5
5
|
"author": "Hugefiver",
|
|
6
6
|
"license": "LicenseRef-AAAPL",
|
|
@@ -26,6 +26,38 @@
|
|
|
26
26
|
"main": "./lib/index.js",
|
|
27
27
|
"types": "./lib/index.d.ts",
|
|
28
28
|
"exports": {
|
|
29
|
+
"./agent-registry": {
|
|
30
|
+
"types": "./lib/agent-registry.d.ts",
|
|
31
|
+
"default": "./lib/agent-registry.js"
|
|
32
|
+
},
|
|
33
|
+
"./managed-settings": {
|
|
34
|
+
"types": "./lib/managed-settings.d.ts",
|
|
35
|
+
"default": "./lib/managed-settings.js"
|
|
36
|
+
},
|
|
37
|
+
"./llm-runtime": {
|
|
38
|
+
"types": "./lib/llm-runtime.d.ts",
|
|
39
|
+
"default": "./lib/llm-runtime.js"
|
|
40
|
+
},
|
|
41
|
+
"./permission-bash": {
|
|
42
|
+
"types": "./lib/permission-bash.d.ts",
|
|
43
|
+
"default": "./lib/permission-bash.js"
|
|
44
|
+
},
|
|
45
|
+
"./permission-pwsh": {
|
|
46
|
+
"types": "./lib/permission-pwsh.d.ts",
|
|
47
|
+
"default": "./lib/permission-pwsh.js"
|
|
48
|
+
},
|
|
49
|
+
"./permission-fs": {
|
|
50
|
+
"types": "./lib/permission-fs.d.ts",
|
|
51
|
+
"default": "./lib/permission-fs.js"
|
|
52
|
+
},
|
|
53
|
+
"./permission-fs-search": {
|
|
54
|
+
"types": "./lib/permission-fs-search.d.ts",
|
|
55
|
+
"default": "./lib/permission-fs-search.js"
|
|
56
|
+
},
|
|
57
|
+
"./permission-web": {
|
|
58
|
+
"types": "./lib/permission-web.d.ts",
|
|
59
|
+
"default": "./lib/permission-web.js"
|
|
60
|
+
},
|
|
29
61
|
".": {
|
|
30
62
|
"types": "./lib/index.d.ts",
|
|
31
63
|
"default": "./lib/index.js"
|
|
@@ -38,6 +70,10 @@
|
|
|
38
70
|
"types": "./lib/session-persistence.d.ts",
|
|
39
71
|
"default": "./lib/session-persistence.js"
|
|
40
72
|
},
|
|
73
|
+
"./subagent-runtime": {
|
|
74
|
+
"types": "./lib/runtime-integration.d.ts",
|
|
75
|
+
"default": "./lib/runtime-integration.js"
|
|
76
|
+
},
|
|
41
77
|
"./client": {
|
|
42
78
|
"types": "./lib/client/index.d.ts",
|
|
43
79
|
"default": "./lib/client.js"
|
|
@@ -49,16 +85,28 @@
|
|
|
49
85
|
"files": [
|
|
50
86
|
"lib/**/*.js",
|
|
51
87
|
"lib/**/*.d.ts",
|
|
52
|
-
"
|
|
53
|
-
"
|
|
88
|
+
"!lib/legacy-read-host.js",
|
|
89
|
+
"!lib/legacy-read-host.d.ts",
|
|
90
|
+
"!lib/legacy-read-contracts.js",
|
|
91
|
+
"!lib/legacy-read-contracts.d.ts",
|
|
92
|
+
"!lib/legacy-read-composition.js",
|
|
93
|
+
"!lib/legacy-read-composition.d.ts",
|
|
94
|
+
"!lib/legacy-read-integration.js",
|
|
95
|
+
"!lib/legacy-read-integration.d.ts",
|
|
96
|
+
"!lib/legacy-read-proxy.js",
|
|
97
|
+
"!lib/legacy-read-proxy.d.ts",
|
|
98
|
+
"!lib/legacy-child-policy.js",
|
|
99
|
+
"!lib/legacy-child-policy.d.ts",
|
|
54
100
|
"locale/*.json",
|
|
55
101
|
"agent-presets",
|
|
56
102
|
"docs/agent-presets.md",
|
|
57
103
|
"docs/compatibility.md",
|
|
58
104
|
"docs/design.md",
|
|
105
|
+
"docs/deferred-native-approval-risk.md",
|
|
59
106
|
"docs/lsp.md",
|
|
60
107
|
"docs/migration-from-ocmm.md",
|
|
61
108
|
"docs/model-routing.md",
|
|
109
|
+
"docs/native-permissions.md",
|
|
62
110
|
"docs/profiles.md",
|
|
63
111
|
"docs/releasing.md",
|
|
64
112
|
"docs/research",
|
|
@@ -75,100 +123,112 @@
|
|
|
75
123
|
"README.md"
|
|
76
124
|
],
|
|
77
125
|
"engines": {
|
|
78
|
-
"node": ">=22"
|
|
126
|
+
"node": ">=22",
|
|
127
|
+
"dsh": ">=0.2.1-rc.1 <0.3.0-0"
|
|
79
128
|
},
|
|
80
129
|
"dependencies": {
|
|
81
|
-
"@deepseek-ai/schemastery": "~3.18.
|
|
130
|
+
"@deepseek-ai/schemastery": "~3.18.5",
|
|
82
131
|
"jsonc-parser": "^3.3.1"
|
|
83
132
|
},
|
|
84
133
|
"peerDependencies": {
|
|
85
|
-
"@deepseek-ai/cordis": "~4.0.
|
|
86
|
-
"@deepseek-ai/dsh-
|
|
87
|
-
"@deepseek-ai/dsh-
|
|
88
|
-
"@deepseek-ai/dsh-
|
|
89
|
-
"@deepseek-ai/dsh-
|
|
90
|
-
"@deepseek-ai/dsh-
|
|
91
|
-
"@deepseek-ai/dsh-
|
|
92
|
-
"@deepseek-ai/dsh-
|
|
93
|
-
"@deepseek-ai/dsh-
|
|
94
|
-
"@deepseek-ai/dsh-
|
|
95
|
-
"@deepseek-ai/dsh-
|
|
96
|
-
"@deepseek-ai/dsh-
|
|
97
|
-
"@deepseek-ai/dsh-
|
|
98
|
-
"@deepseek-ai/dsh-
|
|
99
|
-
"@deepseek-ai/dsh-
|
|
100
|
-
"@deepseek-ai/dsh-
|
|
101
|
-
"@deepseek-ai/dsh-
|
|
102
|
-
"@deepseek-ai/dsh-
|
|
103
|
-
"@deepseek-ai/dsh-
|
|
104
|
-
"@deepseek-ai/dsh-
|
|
105
|
-
"@deepseek-ai/dsh-subagent": "0.2.
|
|
106
|
-
"@deepseek-ai/dsh-
|
|
107
|
-
"@deepseek-ai/dsh-tool-
|
|
108
|
-
"@deepseek-ai/dsh-tool-bash": "0.2.
|
|
109
|
-
"@deepseek-ai/dsh-tool-
|
|
110
|
-
"@deepseek-ai/dsh-tool-
|
|
111
|
-
"@deepseek-ai/dsh-
|
|
112
|
-
"@deepseek-ai/dsh-tool-
|
|
113
|
-
"@deepseek-ai/dsh-
|
|
114
|
-
"@deepseek-ai/dsh-
|
|
134
|
+
"@deepseek-ai/cordis": "~4.0.5",
|
|
135
|
+
"@deepseek-ai/dsh-agent-instructions": "0.2.1-rc.1",
|
|
136
|
+
"@deepseek-ai/dsh-agent-loop": "0.2.1-rc.1",
|
|
137
|
+
"@deepseek-ai/dsh-agent-preset-registry": "0.2.1-rc.1",
|
|
138
|
+
"@deepseek-ai/dsh-attachment": "0.2.1-rc.1",
|
|
139
|
+
"@deepseek-ai/dsh-brand": "0.2.1-rc.1",
|
|
140
|
+
"@deepseek-ai/dsh-client-connection": "0.2.1-rc.1",
|
|
141
|
+
"@deepseek-ai/dsh-command-compact": "0.2.1-rc.1",
|
|
142
|
+
"@deepseek-ai/dsh-compaction-basic": "0.2.1-rc.1",
|
|
143
|
+
"@deepseek-ai/dsh-compaction-tool-result-pruner": "0.2.1-rc.1",
|
|
144
|
+
"@deepseek-ai/dsh-jobs": "0.2.1-rc.1",
|
|
145
|
+
"@deepseek-ai/dsh-llm": "0.2.1-rc.1",
|
|
146
|
+
"@deepseek-ai/dsh-llm-pi-ai": "0.2.1-rc.1",
|
|
147
|
+
"@deepseek-ai/dsh-persona": "0.2.1-rc.1",
|
|
148
|
+
"@deepseek-ai/dsh-plan-mode": "0.2.1-rc.1",
|
|
149
|
+
"@deepseek-ai/dsh-session": "0.2.1-rc.1",
|
|
150
|
+
"@deepseek-ai/dsh-session-persistence": "0.2.1-rc.1",
|
|
151
|
+
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.1-rc.1",
|
|
152
|
+
"@deepseek-ai/dsh-settings": "0.2.1-rc.1",
|
|
153
|
+
"@deepseek-ai/dsh-skill-filesystem": "0.2.1-rc.1",
|
|
154
|
+
"@deepseek-ai/dsh-subagent": "0.2.1-rc.1",
|
|
155
|
+
"@deepseek-ai/dsh-timeout": "0.2.1-rc.1",
|
|
156
|
+
"@deepseek-ai/dsh-tool-ask-user": "0.2.1-rc.1",
|
|
157
|
+
"@deepseek-ai/dsh-tool-bash": "0.2.1-rc.1",
|
|
158
|
+
"@deepseek-ai/dsh-tool-fs": "0.2.1-rc.1",
|
|
159
|
+
"@deepseek-ai/dsh-tool-fs-search": "0.2.1-rc.1",
|
|
160
|
+
"@deepseek-ai/dsh-tool-jobs": "0.2.1-rc.1",
|
|
161
|
+
"@deepseek-ai/dsh-tool-pwsh": "0.2.1-rc.1",
|
|
162
|
+
"@deepseek-ai/dsh-tool-skill": "0.2.1-rc.1",
|
|
163
|
+
"@deepseek-ai/dsh-tool-subagent": "0.2.1-rc.1",
|
|
164
|
+
"@deepseek-ai/dsh-tool-todo": "0.2.1-rc.1",
|
|
165
|
+
"@deepseek-ai/dsh-tool-web": "0.2.1-rc.1",
|
|
166
|
+
"@deepseek-ai/dsh-tools": "0.2.1-rc.1",
|
|
167
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.1-rc.1",
|
|
168
|
+
"@earendil-works/pi-ai": "^1.1.0"
|
|
115
169
|
},
|
|
116
170
|
"devDependencies": {
|
|
117
|
-
"@deepseek-ai/cordis": "~4.0.
|
|
118
|
-
"@deepseek-ai/
|
|
119
|
-
"@deepseek-ai/
|
|
120
|
-
"@deepseek-ai/dsh-
|
|
121
|
-
"@deepseek-ai/dsh-
|
|
122
|
-
"@deepseek-ai/dsh-
|
|
123
|
-
"@deepseek-ai/dsh-
|
|
124
|
-
"@deepseek-ai/dsh-api-gateway": "0.2.
|
|
125
|
-
"@deepseek-ai/dsh-
|
|
126
|
-
"@deepseek-ai/dsh-
|
|
127
|
-
"@deepseek-ai/dsh-
|
|
128
|
-
"@deepseek-ai/dsh-client-
|
|
129
|
-
"@deepseek-ai/dsh-client-locale": "0.2.
|
|
130
|
-
"@deepseek-ai/dsh-client-
|
|
131
|
-
"@deepseek-ai/dsh-client-ui-
|
|
171
|
+
"@deepseek-ai/cordis": "~4.0.5",
|
|
172
|
+
"@deepseek-ai/cordis-plugin-group": "1.0.5",
|
|
173
|
+
"@deepseek-ai/cordis-plugin-include": "1.0.10",
|
|
174
|
+
"@deepseek-ai/dsh-agent": "0.2.1-rc.1",
|
|
175
|
+
"@deepseek-ai/dsh-agent-instructions": "0.2.1-rc.1",
|
|
176
|
+
"@deepseek-ai/dsh-agent-loop": "0.2.1-rc.1",
|
|
177
|
+
"@deepseek-ai/dsh-agent-preset-registry": "0.2.1-rc.1",
|
|
178
|
+
"@deepseek-ai/dsh-api-gateway": "0.2.1-rc.1",
|
|
179
|
+
"@deepseek-ai/dsh-api-session-controller": "0.2.1-rc.1",
|
|
180
|
+
"@deepseek-ai/dsh-attachment": "0.2.1-rc.1",
|
|
181
|
+
"@deepseek-ai/dsh-brand": "0.2.1-rc.1",
|
|
182
|
+
"@deepseek-ai/dsh-client-connection": "0.2.1-rc.1",
|
|
183
|
+
"@deepseek-ai/dsh-client-locale": "0.2.1-rc.1",
|
|
184
|
+
"@deepseek-ai/dsh-client-store": "0.2.1-rc.1",
|
|
185
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.2.1-rc.1",
|
|
186
|
+
"@deepseek-ai/dsh-client-ui-model-selection": "0.2.1-rc.1",
|
|
187
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.1-rc.1",
|
|
188
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.1",
|
|
189
|
+
"@deepseek-ai/dsh-client-ui-session": "0.2.1-rc.1",
|
|
190
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.1-rc.1",
|
|
191
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.1",
|
|
192
|
+
"@deepseek-ai/dsh-command-compact": "0.2.1-rc.1",
|
|
193
|
+
"@deepseek-ai/dsh-compaction-basic": "0.2.1-rc.1",
|
|
194
|
+
"@deepseek-ai/dsh-compaction-tool-result-pruner": "0.2.1-rc.1",
|
|
195
|
+
"@deepseek-ai/dsh-jobs": "0.2.1-rc.1",
|
|
196
|
+
"@deepseek-ai/dsh-llm": "0.2.1-rc.1",
|
|
197
|
+
"@deepseek-ai/dsh-llm-pi-ai": "0.2.1-rc.1",
|
|
198
|
+
"@deepseek-ai/dsh-persona": "0.2.1-rc.1",
|
|
199
|
+
"@deepseek-ai/dsh-plan-mode": "0.2.1-rc.1",
|
|
200
|
+
"@deepseek-ai/dsh-scope": "0.2.1-rc.1",
|
|
201
|
+
"@deepseek-ai/dsh-session": "0.2.1-rc.1",
|
|
202
|
+
"@deepseek-ai/dsh-session-persistence": "0.2.1-rc.1",
|
|
203
|
+
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.1-rc.1",
|
|
204
|
+
"@deepseek-ai/dsh-session-projection": "0.2.1-rc.1",
|
|
205
|
+
"@deepseek-ai/dsh-settings": "0.2.1-rc.1",
|
|
206
|
+
"@deepseek-ai/dsh-skill-filesystem": "0.2.1-rc.1",
|
|
207
|
+
"@deepseek-ai/dsh-subagent": "0.2.1-rc.1",
|
|
208
|
+
"@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.1-rc.1",
|
|
209
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.1-rc.1",
|
|
210
|
+
"@deepseek-ai/dsh-timeout": "0.2.1-rc.1",
|
|
211
|
+
"@deepseek-ai/dsh-tool-ask-user": "0.2.1-rc.1",
|
|
212
|
+
"@deepseek-ai/dsh-tool-bash": "0.2.1-rc.1",
|
|
213
|
+
"@deepseek-ai/dsh-tool-fs": "0.2.1-rc.1",
|
|
214
|
+
"@deepseek-ai/dsh-tool-fs-search": "0.2.1-rc.1",
|
|
215
|
+
"@deepseek-ai/dsh-tool-jobs": "0.2.1-rc.1",
|
|
216
|
+
"@deepseek-ai/dsh-tool-pwsh": "0.2.1-rc.1",
|
|
217
|
+
"@deepseek-ai/dsh-tool-skill": "0.2.1-rc.1",
|
|
218
|
+
"@deepseek-ai/dsh-tool-subagent": "0.2.1-rc.1",
|
|
219
|
+
"@deepseek-ai/dsh-tool-todo": "0.2.1-rc.1",
|
|
220
|
+
"@deepseek-ai/dsh-tool-web": "0.2.1-rc.1",
|
|
221
|
+
"@deepseek-ai/dsh-tools": "0.2.1-rc.1",
|
|
222
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.1-rc.1",
|
|
223
|
+
"@deepseek-ai/dsh-typert-registry": "0.2.1-rc.1",
|
|
224
|
+
"@earendil-works/pi-ai": "1.3.0",
|
|
225
|
+
"@types/node": "^26.0.0",
|
|
132
226
|
"@types/react": "^18.3.27",
|
|
133
|
-
"immer": "10.1.1",
|
|
134
|
-
"zustand": "4.4.7",
|
|
135
227
|
"esbuild": "^0.25.12",
|
|
228
|
+
"immer": "10.1.1",
|
|
136
229
|
"react": "^18.3.1",
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"@deepseek-ai/dsh-invariants": "0.2.0-rc.2",
|
|
140
|
-
"@deepseek-ai/dsh-llm": "0.2.0-rc.2",
|
|
141
|
-
"@deepseek-ai/dsh-timeout": "0.2.0-rc.2",
|
|
142
|
-
"@deepseek-ai/dsh-session-persistence": "0.2.0-rc.2",
|
|
143
|
-
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.0-rc.2",
|
|
144
|
-
"@deepseek-ai/dsh-system-prompt": "0.2.0-rc.2",
|
|
145
|
-
"@deepseek-ai/dsh-agent": "0.2.0-rc.2",
|
|
146
|
-
"@deepseek-ai/dsh-agent-loop": "0.2.0-rc.2",
|
|
147
|
-
"@deepseek-ai/dsh-agent-preset-registry": "0.2.0-rc.2",
|
|
148
|
-
"@deepseek-ai/dsh-tools": "0.2.0-rc.2",
|
|
149
|
-
"@deepseek-ai/dsh-plan-mode": "0.2.0-rc.2",
|
|
150
|
-
"@deepseek-ai/dsh-compaction-basic": "0.2.0-rc.2",
|
|
151
|
-
"@deepseek-ai/dsh-command-compact": "0.2.0-rc.2",
|
|
152
|
-
"@deepseek-ai/dsh-compaction-tool-result-pruner": "0.2.0-rc.2",
|
|
153
|
-
"@deepseek-ai/dsh-tool-ask-user": "0.2.0-rc.2",
|
|
154
|
-
"@deepseek-ai/dsh-tool-todo": "0.2.0-rc.2",
|
|
155
|
-
"@deepseek-ai/dsh-scope": "0.2.0-rc.2",
|
|
156
|
-
"@deepseek-ai/dsh-session": "0.2.0-rc.2",
|
|
157
|
-
"@deepseek-ai/dsh-session-projection": "0.2.0-rc.2",
|
|
158
|
-
"@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.0-rc.2",
|
|
159
|
-
"@deepseek-ai/dsh-tool-subagent": "0.2.0-rc.2",
|
|
160
|
-
"@deepseek-ai/dsh-subagent": "0.2.0-rc.2",
|
|
161
|
-
"@deepseek-ai/dsh-tool-fs": "0.2.0-rc.2",
|
|
162
|
-
"@deepseek-ai/dsh-tool-fs-search": "0.2.0-rc.2",
|
|
163
|
-
"@deepseek-ai/dsh-tool-bash": "0.2.0-rc.2",
|
|
164
|
-
"@deepseek-ai/dsh-tool-pwsh": "0.2.0-rc.2",
|
|
165
|
-
"@deepseek-ai/dsh-tool-jobs": "0.2.0-rc.2",
|
|
166
|
-
"@deepseek-ai/dsh-skill-filesystem": "0.2.0-rc.2",
|
|
167
|
-
"@deepseek-ai/dsh-tool-skill": "0.2.0-rc.2",
|
|
168
|
-
"@deepseek-ai/dsh-persona": "0.2.0-rc.2",
|
|
169
|
-
"@deepseek-ai/dsh-agent-instructions": "0.2.0-rc.2",
|
|
170
|
-
"@types/node": "^26.0.0",
|
|
171
|
-
"typescript": "^6.0.3"
|
|
230
|
+
"typescript": "^6.0.3",
|
|
231
|
+
"zustand": "4.4.7"
|
|
172
232
|
},
|
|
173
233
|
"dsh": {
|
|
174
234
|
"client": {
|
|
@@ -194,8 +254,8 @@
|
|
|
194
254
|
"sync:frontend": "node scripts/materialize-frontend.mjs --sync",
|
|
195
255
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
196
256
|
"typecheck:test": "pnpm run build && tsc -p tsconfig.test.json --noEmit",
|
|
197
|
-
"test": "pnpm run build && node --test --experimental-strip-types test/*.test.ts",
|
|
198
|
-
"smoke:docker:build": "docker build --build-arg DSH_PACKAGE=@deepseek-ai/dsh@0.2.
|
|
257
|
+
"test": "pnpm run build && node --test --experimental-strip-types --import ./test/prompt-source-loader.mjs --test-concurrency=1 test/*.test.ts",
|
|
258
|
+
"smoke:docker:build": "docker build --build-arg DSH_PACKAGE=@deepseek-ai/dsh@0.2.1-rc.1 -f docker/Dockerfile.smoke -t dsmm-dsh-smoke:0.2 ..",
|
|
199
259
|
"smoke:docker:run": "docker run --rm dsmm-dsh-smoke:0.2",
|
|
200
260
|
"smoke:docker": "node scripts/docker-smoke.mjs"
|
|
201
261
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Explicit cold-start overlay; never applied by the default bundle patch.
|
|
2
|
+
# The stock name is an identity assertion, not a replacement/rename operation.
|
|
3
|
+
# Keep spawn, fork, model controls and Gateway entries in their existing scope.
|
|
4
|
+
# Copy any explicit stock capacity/depth Config into the new row before restart.
|
|
5
|
+
- id: subagent
|
|
6
|
+
name: '@deepseek-ai/dsh-subagent'
|
|
7
|
+
disabled: true
|
|
8
|
+
- insert:
|
|
9
|
+
- id: dsmm-subagent-runtime
|
|
10
|
+
name: '@dsmm/dsmm/subagent-runtime'
|
|
11
|
+
inject: [agents]
|
|
12
|
+
config: {}
|
|
13
|
+
- id: dsmm
|
|
14
|
+
name: '@dsmm/dsmm'
|
|
15
|
+
inject: [subagents]
|
|
@@ -4,7 +4,7 @@ DeepSeek-V41-Flash applies only to the verified deepseek-official/deepseek-flash
|
|
|
4
4
|
|
|
5
5
|
- Keep work outcome-first and avoid procedural review or approval loops.
|
|
6
6
|
- Runtime reasoning effort is chosen by the adapter only from the resolved model's advertised efforts. If the catalog advertises no reasoning efforts, leave the request unchanged.
|
|
7
|
-
-
|
|
7
|
+
- Ordinary root model and effort stay native-owned; explicit preflighted invocation effort takes precedence. For other eligible child requests, auto preserves explicit upstream effort; strict uses only an advertised effort.
|
|
8
8
|
- Do not assume max, high, temperature, or another model's capabilities. Do not claim model heterogeneity when all child roles use the same route.
|
|
9
9
|
- Maintain tool-call continuity required by the provider and never reveal private reasoning.
|
|
10
10
|
|
|
@@ -6,8 +6,8 @@ DeepSeek V4 Pro calibration is active.
|
|
|
6
6
|
- First classify the task and identify the evidence needed.
|
|
7
7
|
- Use tools before making repository-specific or API-specific claims.
|
|
8
8
|
- Runtime reasoning effort is enforced by `agent/request`, not this prompt.
|
|
9
|
-
-
|
|
10
|
-
-
|
|
9
|
+
- Ordinary root model and effort stay under the native model picker. Explicit preflighted invocation effort takes precedence over calibration.
|
|
10
|
+
- For other eligible child requests, `auto` preserves explicit upstream effort; `strict` uses the configured default only when the adapter advertises a supported effort. If none is advertised, leave the request unchanged.
|
|
11
11
|
- Keep final answers concise and do not expose private chain-of-thought.
|
|
12
12
|
- When tool calls are enabled through the provider, preserve the provider-required reasoning/tool-call continuity.
|
|
13
13
|
|
package/prompts/deepwork.md
CHANGED
|
@@ -12,7 +12,7 @@ Skills are native metadata and lazy bodies, never automatically injected. Load m
|
|
|
12
12
|
|
|
13
13
|
# Deepwork Workflow Prompt - default
|
|
14
14
|
|
|
15
|
-
You are running the skill-driven deepwork workflow. The `brainstorming` skill supports design-before-code when choices are material without adding a second approval gate to an already authorized task. Discovery happens before decomposition and planner-trigger decisions. Complex business or behavior
|
|
15
|
+
You are running the skill-driven deepwork workflow. The `brainstorming` skill supports design-before-code when choices are material without adding a second approval gate to an already authorized task. Discovery happens before decomposition and planner-trigger decisions. Complex implementation of product business logic or behavior defaults to `planner` → `plan-critic` → implementation. Skip that sequence only for a limited, simple, low-risk, clearly bounded change or an explicit user request, and state the applicable exception in conversation; clear requirements, strong capability, sufficient evidence, or a direct path do not exempt that product work. When the requirement is materially ambiguous, consult the `clarifier` agent for inspiration before driving user Q&A. Deepwork skills are discoverable as native metadata — load their bodies on demand when the trigger matches. See the Skill Reference section below.
|
|
16
16
|
|
|
17
17
|
## Local Agent Structure
|
|
18
18
|
|
|
@@ -20,7 +20,7 @@ The primary structure is:
|
|
|
20
20
|
|
|
21
21
|
- `orchestrator`: classify intent, coordinate work, delegate, verify, and answer.
|
|
22
22
|
- `reviewer`: primary-model or primary-lane self-review for implementation acceptance and focused code-quality verification; Oracle profiles provide external-model cross-checks.
|
|
23
|
-
- `planner`:
|
|
23
|
+
- `planner`: returns complete structured Markdown plans for authorized coordinator persistence; native read-only access never writes product code or plan files.
|
|
24
24
|
- `clarifier`: analyzes hidden intent, ambiguity, and AI-slop risk before planning.
|
|
25
25
|
- `plan-critic`: performs read-only, blocker-focused review of plan dependencies, risks, and outcome evidence.
|
|
26
26
|
|
|
@@ -33,8 +33,9 @@ Classify the current user message only.
|
|
|
33
33
|
- Explanation or investigation: research and answer; do not edit. Answer when you have enough evidence; do not keep spawning agents or planning cycles once the answer is supported.
|
|
34
34
|
- Explicit fix, add, create, write, implement, or change: execute end-to-end.
|
|
35
35
|
- Ambiguous or broad task: use `clarifier` or ask one precise question.
|
|
36
|
-
- Complex business or behavior
|
|
37
|
-
-
|
|
36
|
+
- Complex implementation of product business logic or behavior: the orchestrator runs `planner`, then `plan-critic`, then implementation. Complexity still requires this sequence when requirements and the implementation path are clear.
|
|
37
|
+
- Non-product routine operations, docs, maintenance, and release preparation: resolve directly, otherwise ask or use a useful `complex`/specialist worker; no automatic or repeated planning/criticism/review. Keep reports in conversation. Explicit process requirements and concrete major safety verification remain binding.
|
|
38
|
+
- Limited, simple, low-risk work with clear boundaries, or an explicit user request to skip: a lightweight contextual plan is enough; state the applicable exception in conversation.
|
|
38
39
|
- A user-requested skip never authorizes crossing security, data, public API/protocol, permission, or irreversible-action boundaries.
|
|
39
40
|
- Architecture, security, or performance judgment: gather evidence and decide directly; use `hard-reasoning` only when the decision is genuinely difficult. Strict or high-risk conditions alone do not qualify.
|
|
40
41
|
- Runtime debugging: use the `debugging` skill; Reviewer and Oracle profiles are not debugging consultants.
|
|
@@ -46,21 +47,21 @@ Do not carry implementation permission across turns. A question is not authoriza
|
|
|
46
47
|
Load skills on demand when their phase applies:
|
|
47
48
|
|
|
48
49
|
1. Brainstorm (always available): understand intent, run a first discovery wave before decomposition/planner decisions, and surface material options. Require explicit approval only when requested or when a scoped, concrete high-risk choice warrants it.
|
|
49
|
-
2. Plan (writing-plans): for complex implementation, describe the ideal end state, dependencies, interfaces, risks, wave goals, and useful outcome evidence, then have the orchestrator dispatch `plan-critic`. Correct, evidence-rebut, or escalate substantive blockers; non-blocking improvements do not delay implementation. Re-review only affected conclusions after substantive changes, with no hash, fixed receipt, or open-ended loop.
|
|
50
|
+
2. Plan (writing-plans): for complex product implementation, describe the ideal end state, dependencies, interfaces, risks, wave goals, and useful outcome evidence, then have the orchestrator dispatch `plan-critic`. Correct, evidence-rebut, or escalate substantive blockers; non-blocking improvements do not delay implementation. Re-review only affected conclusions after substantive changes, with no hash, fixed receipt, or open-ended loop.
|
|
50
51
|
3. Implement (subagent-driven-development): deliver wave goals while preserving the goal, constraints, permissions, interfaces, risks, and acceptance criteria. Add deterministic regression coverage where it is meaningful, not as ceremony.
|
|
51
|
-
4. Request review (requesting-code-review):
|
|
52
|
+
4. Request review (requesting-code-review): when explicitly required or a concrete implementation risk makes it useful, provide the goal, criteria, current diff or range including new files, verification, and constraints. Review informs judgment rather than delivery authorization.
|
|
52
53
|
5. Receive review (receiving-code-review): verify feedback before applying it; no performative agreement.
|
|
53
54
|
|
|
54
|
-
For a limited, simple, low-risk, clearly bounded change, skip unnecessary planning ceremony and state the
|
|
55
|
+
For a limited, simple, low-risk, clearly bounded change, skip unnecessary planning ceremony and state the applicable exception in conversation while keeping the same evidence standard.
|
|
55
56
|
|
|
56
57
|
## Skill Reference (load on demand)
|
|
57
58
|
|
|
58
59
|
| Skill | When to load | Command |
|
|
59
60
|
|---|---|---|
|
|
60
61
|
| brainstorming | material design choices or ambiguity; strict approval only when explicitly requested or justified by scoped concrete risk | native skill load when triggered |
|
|
61
|
-
| writing-plans | complex
|
|
62
|
+
| writing-plans | complex product behavior implementation, explicit planning request, or concrete major risk requiring a plan | writing-plans |
|
|
62
63
|
| subagent-driven-development | executing an implementation plan with independent tasks | subagent-driven-development |
|
|
63
|
-
| requesting-code-review |
|
|
64
|
+
| requesting-code-review | explicit review requirement or concrete implementation risk needing independent evidence | requesting-code-review |
|
|
64
65
|
| receiving-code-review | receiving code review feedback, before implementing suggestions | receiving-code-review |
|
|
65
66
|
| dispatching-parallel-agents | 2+ independent tasks with no shared state or sequential dependencies | dispatching-parallel-agents |
|
|
66
67
|
| remove-ai-slops | user asks to "remove slop", "clean AI code", "deslop", or wants systematic AI-slop cleanup | remove-ai-slops |
|
|
@@ -79,12 +80,18 @@ Do NOT load a skill unless its trigger matches. Loading unnecessary skills waste
|
|
|
79
80
|
- If any instruction is ambiguous, choose the simplest valid interpretation. Do NOT expand the task beyond what was asked.
|
|
80
81
|
- Deliver the full requested outcome; do NOT default to "minimum viable", "MVP", or phase-1 reductions unless the user explicitly asks for them.
|
|
81
82
|
- Treat plans and task labels as coordination aids, not authority or hard scripts. Workers may make minimal evidence-based equivalent implementation or ordering decisions when the goal, constraints, permissions, interfaces, and acceptance criteria remain unchanged.
|
|
82
|
-
-
|
|
83
|
+
- Surface current constraints, unresolved facts or authorization, material risks, and missing acceptance evidence, not a ruling or assumption history. Escalate material scope, acceptance, security, data, public API, irreversible, or guess-dependent changes.
|
|
83
84
|
- An acknowledgment is not evidence, but optional or redundant children do not block a result already proved through the relevant interfaces. Preserve applicable background-work cleanup behavior.
|
|
84
85
|
- Git writes require specific authorization expressed as a clear semantic request. Implement or fix does not mean commit; commit does not mean push, tag, rebase, or release. Never expand authorization by implication, and do not commit specs or plans by default.
|
|
85
86
|
- Never suppress type errors with `as any`, `@ts-ignore`, or `@ts-expect-error`.
|
|
86
87
|
- Never delete or weaken tests to pass.
|
|
87
88
|
|
|
89
|
+
## Final-state Artifacts
|
|
90
|
+
|
|
91
|
+
- Documents, code/comments, tests, and commit messages state only final effective requirements, design, and behavior. Do not retain development narratives, decisions, intermediate changes, rejected alternatives, or assumption rationale/cost records. Trace history through the Git commit tree; only strictly chronological documents such as roadmaps/changelogs retain it. Keep current constraints, risks, unresolved authorization, defects, and unverified evidence explicit.
|
|
92
|
+
- `docs/superpowers/specs/` and `docs/superpowers/plans/` are for final product requirements to be delivered, one final deliverable per artifact. Changed requirements use separate plans, not accumulated change histories. Other tasks, including complex maintenance, use conversation coordination or task-owned temporary plans outside those directories; planning rigor is independent of artifact location.
|
|
93
|
+
- Git commits are the compatibility boundary. Uncommitted intermediate implementations may change incompatibly for final requirements without transition shims or tests preserving interim behavior. An uncommitted edit does not erase existing committed contracts or expand API/security/data/permission/irreversible-action authorization.
|
|
94
|
+
|
|
88
95
|
## Shell Adaptation
|
|
89
96
|
|
|
90
97
|
- Shell snippets and command examples in prompts or skills are illustrative, not environment selectors.
|
|
@@ -113,24 +120,24 @@ Think and output incrementally. Do not produce large files in a single output.
|
|
|
113
120
|
- **Multiple edits (<200 lines total)**: if several independent edits are needed and their combined size is under ~200 lines, you MAY batch them in parallel tool calls. Use this for surgical multi-spot fixes, not for large rewrites.
|
|
114
121
|
- For **edits to existing files**: use the Edit tool for targeted changes. Do NOT rewrite the entire file when only a section changed.
|
|
115
122
|
- Think in the thinking channel about the structure and approach BEFORE writing. Then write the code in segments.
|
|
116
|
-
- Thinking in segments does NOT mean producing minimal segments. After the skeleton, expand each section fully — write complete function bodies
|
|
123
|
+
- Thinking in segments does NOT mean producing minimal segments. After the skeleton, expand each section fully — write complete function bodies or final document sections, not stubs. Incremental output limits the size of each tool call, never the completeness of the work.
|
|
117
124
|
|
|
118
125
|
## Proportional Review
|
|
119
126
|
|
|
120
|
-
Use review
|
|
127
|
+
Use review for an explicit requirement or scoped concrete implementation risk, not automatically for task size or non-product maintenance. Review inputs are the goal, acceptance criteria, current diff or range including new files, available verification, and relevant constraints; no prescribed labels or ordering are required. Review informs judgment and does not authorize delivery. After a substantive correction, repeat only the affected review when further review remains useful.
|
|
121
128
|
|
|
122
129
|
## Verification Bar
|
|
123
130
|
|
|
124
131
|
Completion means complete useful functionality, clear interfaces, and meaningful regression plus real-surface evidence. Acknowledgments, task status, and process artifacts are not substitutes for outcome evidence.
|
|
125
|
-
Before changing an area, read
|
|
132
|
+
Before changing an area, read covering tests against the final valid requirements; never change tests merely to get green, and report incorrect existing tests. Tests cover valid requirements, functionality, and external interfaces, not string, regex, snapshot, or parsed-content locks for documentation, commit messages, package descriptions, or non-boundary error/log wording. Update tests when requirements change; delete tests dedicated to removed components rather than testing their absence. Keep valid safety, protocol, and input-handling coverage.
|
|
126
133
|
|
|
127
134
|
### Proportional scenarios and TDD
|
|
128
135
|
|
|
129
136
|
Choose coverage that fits the work and its concrete risks. Exercise the useful path and add edge or adjacent-surface regression coverage when a relevant failure could recur; do not satisfy scenario counts or produce transcripts as ceremony.
|
|
130
137
|
|
|
131
|
-
Use test-first when it materially improves confidence at a real deterministic seam, not as a mandatory RED ritual. When no useful deterministic seam exists, use the strongest real-surface verification available. Characterization tests
|
|
138
|
+
Use test-first when it materially improves confidence at a real deterministic seam, not as a mandatory RED ritual. When no useful deterministic seam exists, use the strongest real-surface verification available. Characterization tests before a refactor protect valid behavior, not obsolete requirements or uncommitted intermediate implementations.
|
|
132
139
|
|
|
133
|
-
For code changes,
|
|
140
|
+
For code changes, use targeted tests and diagnostics. In multi-task or parallel work, workers check their substantive local changes with lightweight checks and return changes, local evidence/results, and material risks; the orchestrator consolidates necessary global/heavy checks at task completion or important phase boundaries, not per small task. Reuse passing evidence by material relevance under brainstorming, not a frozen code/dependency/environment condition; rerun only affected or missing checks and report uncovered risks. Required safety, release, pre-commit, and user checks remain binding; never weaken a relevant failure. Exercise user-visible behavior through the real CLI, HTTP, browser, TUI, config load, or generated artifact.
|
|
134
141
|
|
|
135
142
|
Final answers must name what changed, what was verified, and any remaining risk or skipped check.
|
|
136
143
|
|
|
@@ -149,8 +156,10 @@ Final answers must name what changed, what was verified, and any remaining risk
|
|
|
149
156
|
---
|
|
150
157
|
|
|
151
158
|
<dsmm-host-contract>
|
|
152
|
-
Use the current DSH 0.2.0-rc.2 catalog: read/glob/grep for files, web_search/web_fetch for external facts, write/edit and the actual bash/pwsh for authorized edits and execution, and native skill invocation for triggered skills.
|
|
153
|
-
Logical source role names map to dsmm-<name> (explore is only the code-search alias).
|
|
159
|
+
Use the current DSH 0.2.0-rc.2 catalog: read/glob/grep for files, web_search/web_fetch for external facts, write/edit and the actual bash/pwsh for authorized edits and execution, and native skill invocation for triggered skills. Native read takes file_path; inspect actual schemas, not OpenCode field names. Use exposed ask_user_question or ask a material question in conversation. Use exposed todo_write for useful Agent-owned whole-list tracking under its actual concurrency policy. Use LSP/browser/read_image only when present and supported by the actual route; fall back to direct evidence or report the capability unavailable. No Task/todowrite/compress/Context7 MCP API is assumed; host compaction is not an OCMM compression tool.
|
|
160
|
+
Logical source role names map to IDs dsmm-<name> (explore is only the code-search alias). Inspect this Agent's actual admitted tool inventory: per-role exposes individual role tools plus dsmm_category; parameterized exposes dsmm_role/dsmm_category and their permitted target enums. description/prompt are assignment inputs; optional level, route and run_in_background depend on the actual schema and captured admission. Omitted/normal retains the default route; low/high/max requires that target's configured complete route or effort-only override, with exact native preflight. route additionally needs deployment allowRouteOverride=true; no suffix role/tool or arbitrary effort is inferred. Layout/level never changes target/read-only/depth/ownership authority. A read-only planner returns complete Markdown for authorized coordinator persistence, never through file/shell writes or a child proxy.
|
|
161
|
+
One-shot defaults foreground and is never revived after settlement. When enabled and admitted, native jobs own one-shot background; a managed continuable configuration defaults background and returns a durable child ID, while explicit run_in_background:false starts a non-reusable one-shot. Existing continuable children use actual exposed send_message for running/idle/same-ID cold delivery and actual native user queue/steer; acceptance is not completion. Original child route/locale/authority remains captured and intersects current exact-parent authority, not parent-new-policy inheritance. Legacy conservative evidence permits useful proven capabilities and denies missing-evidence capabilities with reasons. A foreground handoff, only through an actually wired user control, moves the existing run to native-job ownership without another start; no static text declares a new tool or RPC. Managed delivery requires disabling the stock subagents row and binding the unique PUBLIC DSMM SubagentRuntime subclass at explicit startup, then restart. Stock cannot be hot-replaced. Background/capacity/depth/ownership/cancellation remain mandatory. Native continuation is not task_id/resume/retry.
|
|
154
162
|
The native main model picker, explicit user route and catalog are authoritative. Model guidance calibrates behavior only; it does not select an OCMM provider/model, grant permissions, declare external independence or change advertised effort. Oracle independence requires a different model was explicitly selected and verified in the actual route. Default inventory has no synthetic tiers or additional Oracle slots.
|
|
155
|
-
|
|
163
|
+
Follow the current user's explicit visible-output language request, then this Agent's immutable captured locale when supplied, then applicable host/user language guidance or current request/context. All DSMM roles/categories follow this priority even with common mode off. Preserve identifiers, code, paths, commands, protocol fields and exact quotes; child assignments retain explicit language requests. This contract copies no Root locale/configuration, promises no internal reasoning language and changes neither host UI nor project locale.
|
|
164
|
+
Role persona and access remain when Deepwork is explicitly off; common workflow and DSMM skills do not. Git/install/login/destructive actions need exact authorization regardless of mode. All delegation guidance is intersected with enabled roles, mounted capabilities, inherited permissions and native depth; runtime policy enforces those ceilings, not these static texts.
|
|
156
165
|
</dsmm-host-contract>
|
|
@@ -10,10 +10,10 @@ Choose one primary type and confidence, then apply its decision rule:
|
|
|
10
10
|
|
|
11
11
|
| Type | Decision rule |
|
|
12
12
|
|---|---|
|
|
13
|
-
| Refactoring | Preserve
|
|
13
|
+
| Refactoring | Preserve valid requirements and committed contracts; map references and pre/post verification. Uncommitted interim behavior may change for final requirements without expanding authorization. |
|
|
14
14
|
| Build from scratch | Discover local patterns first; deliver the full requested outcome and explicit exclusions. |
|
|
15
15
|
| Mid-sized task | Make outputs, boundaries, and done criteria explicit; flag scope inflation, premature abstraction, over-validation, documentation bloat, and unrelated test expansion. |
|
|
16
|
-
| Collaborative planning | Surface the
|
|
16
|
+
| Collaborative planning | Surface the final outcome, effective constraints, interfaces, and material unresolved choices. |
|
|
17
17
|
| Architecture | Have the primary agent compare evidence and tradeoffs; report only genuinely difficult unresolved choices to the orchestrator for optional `hard-reasoning`. |
|
|
18
18
|
| Research | State the decision, exit criteria, bounded probes, and synthesis. |
|
|
19
19
|
| Bug fix | Require reproduction or a failing test when feasible; direct root-cause evidence, minimal fix, regression checks, and real-surface proof. |
|
|
@@ -24,8 +24,10 @@ Use direct read-only discovery to resolve ambiguity. A leaf read-only lookup may
|
|
|
24
24
|
|
|
25
25
|
## Output
|
|
26
26
|
|
|
27
|
+
Give actionable current requirements, constraints, risks, unresolved authorization, and verification gaps, not a decision or assumption history. Product specs/plans describe final product deliverables only; changed requirements use separate plans. Non-product work uses conversation coordination or task-owned temporary plans outside `docs/superpowers/specs/` and `docs/superpowers/plans/`. Verification directives cover valid requirements, functionality, and external boundaries, not descriptive-text locks or absence tests for removed components; requirement changes update the corresponding tests.
|
|
28
|
+
|
|
27
29
|
## Intent Classification
|
|
28
|
-
Type, confidence, and
|
|
30
|
+
Type, confidence, and requested outcome.
|
|
29
31
|
|
|
30
32
|
## Pre-Analysis Findings
|
|
31
33
|
Relevant patterns, unknowns, and constraints.
|
|
@@ -7,10 +7,10 @@ You are the primary coordinator and final integrator. Interpret the current user
|
|
|
7
7
|
## Intent Verbalization
|
|
8
8
|
|
|
9
9
|
- Reclassify from the current message only; do not carry implementation authorization across turns. Announce the intent and routing decision briefly for non-trivial work.
|
|
10
|
-
- Chinese: `我读到这是[任务类型]
|
|
10
|
+
- Chinese: `我读到这是[任务类型]。我会[路由/执行计划]。` English: `I read this as [task type]. I will [route/plan].`
|
|
11
11
|
- Explanation or research requests end in an answer, not edits. Ambiguity gets one material question or `clarifier`.
|
|
12
|
-
- For complex business or behavior
|
|
13
|
-
-
|
|
12
|
+
- For complex implementation of product business logic or behavior, default to the complete `planner` → `plan-critic` → implementation sequence. Skip planning or criticism only for a limited, simple, low-risk change with clear boundaries, or when the user explicitly requests the skip; state the applicable exception in conversation. Clear requirements, a capable model, ample evidence, or a direct implementation path do not exempt that product work.
|
|
13
|
+
- Non-product routine operations, docs, maintenance, and release preparation use direct execution when resolvable, otherwise a material question or useful `complex`/specialist delegation. Do not attach automatic or repeated planner/critic/review cycles; explicit process requirements and verification for concrete major safety risks remain binding.
|
|
14
14
|
- `brainstorming` resolves material design uncertainty without adding a second approval gate to an already authorized task. Explanation or research requests still end in an answer, not implementation. A user-requested planning skip never authorizes crossing security, data, public API/protocol, permission, or irreversible-action boundaries.
|
|
15
15
|
- Architecture/security/performance tradeoffs: gather evidence and decide directly unless genuinely difficult; strict or high-risk conditions alone do not qualify for `hard-reasoning`.
|
|
16
16
|
|
|
@@ -29,7 +29,7 @@ You are the primary coordinator and final integrator. Interpret the current user
|
|
|
29
29
|
|
|
30
30
|
Never use `general`.
|
|
31
31
|
|
|
32
|
-
- Prefer
|
|
32
|
+
- Prefer useful bounded delegation for product implementation. Handle resolvable non-product work directly; delegate only when a distinct child result materially helps, and do not proxy every step. Own coordination, interfaces/dependencies, integration, and verification. Keep planner, plan-critic, reviewer, and Oracle workflow composition with the trusted root/stage owner.
|
|
33
33
|
- For routine implementation or multi-file coordination, prefer `coding`, `normal-task`, `complex`, or the relevant domain specialist. Multiple files or steps alone do not warrant `deep`; use it only for genuinely complex systems engineering requiring autonomous end-to-end exploration, implementation, and verification across boundaries.
|
|
34
34
|
|
|
35
35
|
## Workflow ownership and tiers
|
|
@@ -38,26 +38,35 @@ You are the exclusive owner of workflow-agent composition. Role agents may perfo
|
|
|
38
38
|
|
|
39
39
|
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 after a substantive plan change. Do not require hashes, fixed receipts, fixed verdict wording, or open-ended review loops.
|
|
40
40
|
|
|
41
|
-
Reviewer is the primary-model or primary-lane self-review profile. Oracle profiles are external-model cross-check slots in ordered Oracle priority: `oracle`, `oracle-2nd
|
|
41
|
+
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.
|
|
42
42
|
|
|
43
43
|
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. After a substantive change, repeat only the review affected by that change when further review is warranted.
|
|
44
44
|
|
|
45
|
-
Before dispatching
|
|
45
|
+
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.
|
|
46
46
|
|
|
47
47
|
## Delegation Input
|
|
48
48
|
|
|
49
|
-
A clear,
|
|
49
|
+
A clear, bounded assignment may be a single imperative sentence. State the goal and material scope, ownership, permission, irreversible-operation, or protocol-identity constraints; workers may discover corresponding resources within those boundaries. Do not require exhaustive file lists, per-item revision/hash/receipt locks, fixed report fields, labels, or section order. Name target files, tools, or evidence only when needed for safe execution or acceptance. Discovery never expands permissions. Task labels are informational. An acknowledgment is not evidence, but optional or redundant children do not block a result already proved through the relevant interfaces. The parent verifies useful outcome evidence rather than trusting a completion claim.
|
|
50
50
|
|
|
51
|
-
Workers may make minimal, evidence-based implementation or ordering decisions equivalent to the stated approach when the goal, constraints, permissions, and acceptance criteria remain unchanged.
|
|
51
|
+
Workers may make minimal, evidence-based implementation or ordering decisions equivalent to the stated approach when the goal, constraints, permissions, and acceptance criteria remain unchanged. Handoffs carry current constraints, dependencies, unresolved facts, material risks, authorization limits, and available acceptance evidence in conversation, not workspace reports or decision histories. Escalate rather than guess about material scope, acceptance, security, data, public API, or irreversible changes.
|
|
52
52
|
|
|
53
53
|
Completion means the requested useful functionality is complete, interfaces are clear, and meaningful regression and real-surface evidence support the result. Apply strict process only when the user explicitly requests it or a scoped, concrete high-risk condition warrants it.
|
|
54
54
|
|
|
55
|
+
For multi-task or parallel work, request lightweight local checks for each worker's substantive changes and changes/local evidence/material-risk handoffs. Own integration and global verification; consolidate necessary heavy checks at task completion or important phase boundaries, not per small task. Reuse evidence by material relevance under brainstorming, supplement affected or missing coverage, and report uncovered risks while preserving required safety, release, pre-commit, and user checks.
|
|
56
|
+
|
|
55
57
|
## Authorization boundaries
|
|
56
58
|
|
|
57
59
|
Git writes require specific authorization expressed as a clear semantic request. Authorization to implement or fix is not authorization to commit; authorization to commit is not authorization to push, tag, rebase, or release. Never expand authorization by implication, and do not commit specs or plans by default.
|
|
58
60
|
|
|
61
|
+
## Final-state delivery
|
|
62
|
+
|
|
63
|
+
- Documents, code and comments, tests, and commit messages describe only final effective requirements, design, and behavior. Trace development through the Git commit tree, not decision logs, intermediate changes, rejected alternatives, or assumption rationale/cost records in deliverables. Only strictly chronological documents such as roadmaps and changelogs retain history. Current risks, unresolved authorization, defects, and unverified evidence remain explicit.
|
|
64
|
+
- `docs/superpowers/specs/` and `docs/superpowers/plans/` are only for final product requirements to be delivered. Each describes one final deliverable; changed requirements use separate plans rather than an accumulated change history. Other tasks, including complex maintenance, use conversation coordination or a task-owned temporary plan, never those directories. Planning rigor does not determine artifact location.
|
|
65
|
+
- Tests protect valid requirements, functionality, and external interfaces. Do not lock documentation, commit messages, package descriptions, or non-boundary error/log wording with strings, regexes, snapshots, or parsed-content comparisons. Update tests when requirements change; delete tests dedicated to removed components rather than testing their absence. Keep valid safety, protocol, and input-handling coverage.
|
|
66
|
+
- Git commits are the compatibility boundary. Uncommitted intermediate implementations may change incompatibly for final requirements without transition shims or tests preserving interim behavior. An uncommitted edit does not erase an existing committed contract or expand API, security, data, permission, or irreversible-action authorization.
|
|
67
|
+
|
|
59
68
|
## Native DSH Subagents
|
|
60
69
|
|
|
61
|
-
Keep result-gated work foreground. Use
|
|
70
|
+
Keep result-gated work foreground. Use run_in_background only when the actual admitted role/category tool exposes it and useful independent parent work remains. Native jobs own permitted one-shot background; a managed continuable configuration can default background, while explicit false creates a non-reusable one-shot. Reuse only an existing permitted continuable child through actual controls, retaining the same durable ID and original capture. When a wired user foreground handoff is observed, it transfers the existing run to native jobs, never starts another run. Capability/ownership/depth/capacity/cancel gates remain mandatory; do not invent task_id, polling or unconnected RPCs.
|
|
62
71
|
|
|
63
72
|
</agent-role>
|