@dsmm/dsmm 0.0.0-stage → 0.1.1
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/LICENSE +103 -0
- package/README.md +70 -2
- package/agent-presets/dsmm-builder/agent.cordis.yml +210 -0
- package/agent-presets/dsmm-builder/preset.yml +3 -0
- package/agent-presets/dsmm-clarifier/agent.cordis.yml +34 -0
- package/agent-presets/dsmm-clarifier/preset.yml +3 -0
- package/agent-presets/dsmm-code-search/agent.cordis.yml +34 -0
- package/agent-presets/dsmm-code-search/preset.yml +3 -0
- package/agent-presets/dsmm-creative/agent.cordis.yml +31 -0
- package/agent-presets/dsmm-creative/preset.yml +3 -0
- package/agent-presets/dsmm-doc-search/agent.cordis.yml +34 -0
- package/agent-presets/dsmm-doc-search/preset.yml +3 -0
- package/agent-presets/dsmm-media-reader/agent.cordis.yml +34 -0
- package/agent-presets/dsmm-media-reader/preset.yml +3 -0
- package/agent-presets/dsmm-oracle/agent.cordis.yml +31 -0
- package/agent-presets/dsmm-oracle/preset.yml +3 -0
- package/agent-presets/dsmm-oracle-2nd/agent.cordis.yml +31 -0
- package/agent-presets/dsmm-oracle-2nd/preset.yml +3 -0
- package/agent-presets/dsmm-orchestrator/agent.cordis.yml +215 -0
- package/agent-presets/dsmm-orchestrator/preset.yml +3 -0
- package/agent-presets/dsmm-plan-critic/agent.cordis.yml +33 -0
- package/agent-presets/dsmm-plan-critic/preset.yml +3 -0
- package/agent-presets/dsmm-planner/agent.cordis.yml +33 -0
- package/agent-presets/dsmm-planner/preset.yml +3 -0
- package/agent-presets/dsmm-reviewer/agent.cordis.yml +33 -0
- package/agent-presets/dsmm-reviewer/preset.yml +3 -0
- package/cordis.patch.yml +8 -0
- package/docs/agent-presets.md +19 -0
- package/docs/compatibility.md +49 -0
- package/docs/design.md +237 -0
- package/docs/lsp.md +40 -0
- package/docs/migration-from-ocmm.md +54 -0
- package/docs/model-routing.md +61 -0
- package/docs/releasing.md +52 -0
- package/docs/research/deepseek-v4-pro.md +74 -0
- package/docs/research/oh-dsh.md +96 -0
- package/docs/roadmap.md +207 -0
- package/docs/runtime-recovery.md +75 -0
- package/docs/safety-guards.md +55 -0
- package/docs/settings-status.md +55 -0
- package/docs/skill-sync.md +20 -0
- package/lib/commands.d.ts +13 -0
- package/lib/commands.js +55 -0
- package/lib/dsh-events.d.ts +21 -0
- package/lib/dsh-events.js +2 -0
- package/lib/dsh-types.d.ts +312 -0
- package/lib/dsh-types.js +2 -0
- package/lib/guards.d.ts +10 -0
- package/lib/guards.js +252 -0
- package/lib/index.d.ts +33 -0
- package/lib/index.js +58 -0
- package/lib/lsp.d.ts +30 -0
- package/lib/lsp.js +154 -0
- package/lib/mode.d.ts +6 -0
- package/lib/mode.js +62 -0
- package/lib/model-family.d.ts +6 -0
- package/lib/model-family.js +49 -0
- package/lib/model-routing.d.ts +11 -0
- package/lib/model-routing.js +128 -0
- package/lib/plan-validation.d.ts +3 -0
- package/lib/plan-validation.js +119 -0
- package/lib/preset-materializer.d.ts +36 -0
- package/lib/preset-materializer.js +258 -0
- package/lib/preset-registry.d.ts +5 -0
- package/lib/preset-registry.js +126 -0
- package/lib/preset-skills.d.ts +12 -0
- package/lib/preset-skills.js +28 -0
- package/lib/prompts.d.ts +13 -0
- package/lib/prompts.js +82 -0
- package/lib/recovery-policy.d.ts +25 -0
- package/lib/recovery-policy.js +252 -0
- package/lib/role-providers.d.ts +13 -0
- package/lib/role-providers.js +61 -0
- package/lib/role-routing.d.ts +15 -0
- package/lib/role-routing.js +144 -0
- package/lib/role-subagents.d.ts +6 -0
- package/lib/role-subagents.js +54 -0
- package/lib/roles.d.ts +29 -0
- package/lib/roles.js +241 -0
- package/lib/runtime-recovery.d.ts +5 -0
- package/lib/runtime-recovery.js +168 -0
- package/lib/session-scope.d.ts +9 -0
- package/lib/session-scope.js +40 -0
- package/lib/settings.d.ts +123 -0
- package/lib/settings.js +447 -0
- package/lib/shell-command.d.ts +18 -0
- package/lib/shell-command.js +492 -0
- package/lib/skills.d.ts +18 -0
- package/lib/skills.js +64 -0
- package/lib/state.d.ts +13 -0
- package/lib/state.js +64 -0
- package/lib/status.d.ts +55 -0
- package/lib/status.js +193 -0
- package/package.json +129 -4
- package/patches/agent-presets-root.example.cordis.patch.yml +14 -0
- package/patches/ocmm-lsp-mcp.example.cordis.patch.yml +15 -0
- package/prompts/deepseek-flash.md +11 -0
- package/prompts/deepseek-v4-pro.md +14 -0
- package/prompts/deepwork.md +32 -0
- package/skills/brainstorming/SKILL.md +15 -0
- package/skills/debugging/SKILL.md +12 -0
- package/skills/debugging/references/logging.md +91 -0
- package/skills/debugging/references/methodology/00-setup.md +108 -0
- package/skills/debugging/references/methodology/02-investigate.md +67 -0
- package/skills/debugging/references/methodology/03-flaky-triage.md +69 -0
- package/skills/debugging/references/methodology/04-hard-reasoning-escalation.md +83 -0
- package/skills/debugging/references/methodology/05-escalate.md +69 -0
- package/skills/debugging/references/methodology/06-fix.md +123 -0
- package/skills/debugging/references/methodology/08-qa.md +94 -0
- package/skills/debugging/references/methodology/09-cleanup.md +164 -0
- package/skills/debugging/references/methodology/partial-runtime-evidence.md +217 -0
- package/skills/debugging/references/runtimes/bundled-js-binary.md +415 -0
- package/skills/debugging/references/runtimes/go.md +252 -0
- package/skills/debugging/references/runtimes/native-binary.md +484 -0
- package/skills/debugging/references/runtimes/node.md +260 -0
- package/skills/debugging/references/runtimes/python.md +248 -0
- package/skills/debugging/references/runtimes/rust.md +234 -0
- package/skills/debugging/references/scripts/dap.mjs +533 -0
- package/skills/debugging/references/tools/dap.md +89 -0
- package/skills/debugging/references/tools/ghidra.md +212 -0
- package/skills/debugging/references/tools/playwright-cli.md +316 -0
- package/skills/debugging/references/tools/pwndbg.md +263 -0
- package/skills/debugging/references/tools/pwntools.md +265 -0
- package/skills/dispatching-parallel-agents/SKILL.md +14 -0
- package/skills/receiving-code-review/SKILL.md +13 -0
- package/skills/remove-ai-slops/SKILL.md +14 -0
- package/skills/requesting-code-review/SKILL.md +10 -0
- package/skills/subagent-driven-development/SKILL.md +13 -0
- package/skills/writing-plans/SKILL.md +14 -0
package/docs/design.md
ADDED
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
# dsmm dsh Migration Design
|
|
2
|
+
|
|
3
|
+
Date: 2026-08-21
|
|
4
|
+
|
|
5
|
+
## Goal
|
|
6
|
+
|
|
7
|
+
Build `dsmm` as a dsh-native subtree project that brings ocmm's deepwork workflow, role prompts, skills, model calibration, and safety conventions to DeepSeek Harness without globally enabling them for every session.
|
|
8
|
+
|
|
9
|
+
The first deliverable is an MVP dsh bundle that installs into a profile, registers a `deepwork` mode through dsmm's own Host plugin, and makes the mode's behavior configurable. Later versions add full role/category coverage, guard hooks, MCP/LSP integration, model routing, and runtime recovery.
|
|
10
|
+
|
|
11
|
+
## Non-goals
|
|
12
|
+
|
|
13
|
+
- Do not load the existing ocmm OpenCode plugin inside dsh.
|
|
14
|
+
- Do not emulate OpenCode's `config`, `chat.params`, `system.transform`, or `tool.execute.*` hook ABI.
|
|
15
|
+
- Do not globally replace the user's dsh persona or every session's system prompt.
|
|
16
|
+
- Do not make DeepSeek V4 Pro-specific prompt tuning mandatory for non-DeepSeek models.
|
|
17
|
+
- Do not include UI skins, desktop shell features, or plugin-marketplace functionality in the MVP.
|
|
18
|
+
|
|
19
|
+
## Source references
|
|
20
|
+
|
|
21
|
+
The design is based on:
|
|
22
|
+
|
|
23
|
+
- dsh's Cordis architecture: plugin rows, reversible effects, profile bundles, and services such as `ctx.systemPrompt`, `ctx.tools`, `ctx.agents`, `ctx.llm`, and `ctx.sessions`.
|
|
24
|
+
- dsh's current plan-mode package: logged per-agent mode state, prompt-section activation, `/plan`, and `exit_plan_mode`. Current public docs expose `@deepseek-ai/dsh-plan-mode`, not a generic arbitrary named `dsh-mode` package.
|
|
25
|
+
- `hust-open-atom-club/oh-dsh`: profile/bundle composition, Host/Client separation, surface contracts, settings seam, and archived mode notes.
|
|
26
|
+
- ocmm's existing feature surface: deepwork prompts, v1 workflow skills, role/category metadata, model-family routing, MCP/LSP integration, runtime fallback, and safety guards.
|
|
27
|
+
- DeepSeek API and DeepSeek V4 Pro public documentation: thinking mode, `reasoning_effort`, tool-call reasoning-content retention, and max-reasoning prompt implications.
|
|
28
|
+
|
|
29
|
+
## Architectural choice
|
|
30
|
+
|
|
31
|
+
`dsmm` should be a dsh-native bundle package, not a compatibility shim.
|
|
32
|
+
|
|
33
|
+
The package should eventually declare:
|
|
34
|
+
|
|
35
|
+
```json
|
|
36
|
+
{
|
|
37
|
+
"name": "@dsmm/dsmm",
|
|
38
|
+
"type": "module",
|
|
39
|
+
"dsh": { "bundle": { "patch": "./cordis.patch.yml" } }
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
The bundle patch should layer dsmm above normal dsh base/web/headless profiles. It should insert dsmm plugin rows and mode configuration, while leaving users free to override rows in their profile-level `cordis.patch.yml`.
|
|
44
|
+
|
|
45
|
+
## Subtree layout
|
|
46
|
+
|
|
47
|
+
The planned project boundary is:
|
|
48
|
+
|
|
49
|
+
```text
|
|
50
|
+
dsmm/
|
|
51
|
+
README.md
|
|
52
|
+
package.json
|
|
53
|
+
cordis.patch.yml
|
|
54
|
+
src/
|
|
55
|
+
index.ts
|
|
56
|
+
config/
|
|
57
|
+
mode/
|
|
58
|
+
prompt/
|
|
59
|
+
skills/
|
|
60
|
+
agents/
|
|
61
|
+
routing/
|
|
62
|
+
guards/
|
|
63
|
+
mcp/
|
|
64
|
+
docs/
|
|
65
|
+
design.md
|
|
66
|
+
roadmap.md
|
|
67
|
+
research/
|
|
68
|
+
tests/
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
The initial commit intentionally contains only documentation. Package files and source code come after the MVP implementation plan is reviewed.
|
|
72
|
+
|
|
73
|
+
## dsh integration model
|
|
74
|
+
|
|
75
|
+
### Composition plane
|
|
76
|
+
|
|
77
|
+
The composition plane is `cordis.patch.yml` and profile bundle ordering. It decides which plugins exist and how dsh services are wired.
|
|
78
|
+
|
|
79
|
+
MVP composition rows should cover:
|
|
80
|
+
|
|
81
|
+
- a dsmm Host plugin row;
|
|
82
|
+
- dsmm's own `deepwork` mode registration, modelled on dsh plan-mode semantics but not limited to planning;
|
|
83
|
+
- optional prompt/skill provider rows if dsh expects separate providers;
|
|
84
|
+
- default disabled rows for features that are not active in MVP.
|
|
85
|
+
|
|
86
|
+
This follows oh-dsh's pattern: shipped bundles own default composition, while profile patch layers own user overrides.
|
|
87
|
+
|
|
88
|
+
### Settings plane
|
|
89
|
+
|
|
90
|
+
The settings plane is for user-editable behavior. dsmm should expose one namespace, tentatively `dsmm`, with settings such as:
|
|
91
|
+
|
|
92
|
+
```yaml
|
|
93
|
+
dsmm:
|
|
94
|
+
mode:
|
|
95
|
+
name: deepwork
|
|
96
|
+
enabled: true
|
|
97
|
+
autoEnter: false
|
|
98
|
+
workflow:
|
|
99
|
+
approvalGate: conditional
|
|
100
|
+
usePlanCritic: true
|
|
101
|
+
finalReview: simple-oracle-complex-reviewer
|
|
102
|
+
prompts:
|
|
103
|
+
locale: zh-Hans
|
|
104
|
+
deepseekV4ProCalibration: auto
|
|
105
|
+
verbosity: concise
|
|
106
|
+
skills:
|
|
107
|
+
brainstorming: true
|
|
108
|
+
writingPlans: true
|
|
109
|
+
requestingCodeReview: true
|
|
110
|
+
receivingCodeReview: true
|
|
111
|
+
models:
|
|
112
|
+
defaultReasoningEffort: high
|
|
113
|
+
maxReasoningForArchitecturalWork: true
|
|
114
|
+
guards:
|
|
115
|
+
shellSafety: true
|
|
116
|
+
gitWriteGuard: true
|
|
117
|
+
toolOutputTruncation: true
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
Composition config should define availability. Settings should define preferences and toggles that a user could reasonably edit in a settings page.
|
|
121
|
+
|
|
122
|
+
## Deepwork as a custom mode
|
|
123
|
+
|
|
124
|
+
The central requirement is that deepwork must be opt-in.
|
|
125
|
+
|
|
126
|
+
MVP uses dsh mode semantics instead of global system-prompt injection. Current public dsh docs expose a concrete `@deepseek-ai/dsh-plan-mode` package rather than a generic arbitrary-mode package. Therefore dsmm should implement a small Host plugin, `dsmm-deepwork-mode`, that follows the same dsh-native principles: mode state is session-scoped, prompt contribution is active only while the mode is active, and command/tool affordances are stable enough not to surprise the model.
|
|
127
|
+
|
|
128
|
+
The default custom mode name is `deepwork`. Entering the mode should add a model-visible section that explains the deepwork routing, brainstorming gate, planning workflow, review gates, and scope discipline. Leaving the mode should restore ordinary dsh behavior.
|
|
129
|
+
|
|
130
|
+
Conceptual dsh patch:
|
|
131
|
+
|
|
132
|
+
```yaml
|
|
133
|
+
- id: dsmm-deepwork-mode
|
|
134
|
+
name: 'dsmm'
|
|
135
|
+
config:
|
|
136
|
+
modeName: deepwork
|
|
137
|
+
section: |
|
|
138
|
+
You are in dsmm deepwork mode. Use the dsmm workflow only for this session mode.
|
|
139
|
+
Classify the user's intent, use dsh tools deliberately, keep implementation scope exact,
|
|
140
|
+
and follow the configured design, plan, implementation, and review gates.
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
The real implementation should keep the default full prompt in source files and allow `section` or overlay settings to replace it. If dsh later exposes a generic mode package, dsmm can replace this plugin with configuration rows while preserving the public settings shape.
|
|
144
|
+
|
|
145
|
+
## Prompt architecture
|
|
146
|
+
|
|
147
|
+
Prompt content should be split by responsibility:
|
|
148
|
+
|
|
149
|
+
- `mode/deepwork`: mode activation text and workflow contract.
|
|
150
|
+
- `prompt/orchestrator`: intent routing and dsh tool-use policy.
|
|
151
|
+
- `prompt/model/deepseek-v4-pro`: DeepSeek V4 Pro calibration overlay.
|
|
152
|
+
- `prompt/safety`: shell, git, Docker, and scope safety.
|
|
153
|
+
- `prompt/review`: final review and evidence requirements.
|
|
154
|
+
|
|
155
|
+
The MVP should register only the mode prompt and the minimal orchestrator/safety sections needed for useful behavior. Later versions can add scoped role prompts for planner, reviewer, and specialized agents.
|
|
156
|
+
|
|
157
|
+
## DeepSeek V4 Pro calibration policy
|
|
158
|
+
|
|
159
|
+
The user's field observation is that DeepSeek V4 Pro can under-activate unless prompted carefully. Public sources do not establish a formal vendor statement that the model is "overfit" in that sense. Official/public documentation does establish several relevant facts:
|
|
160
|
+
|
|
161
|
+
- `deepseek-v4-pro` supports thinking mode through `reasoning_effort` and `extra_body: { thinking: { type: "enabled" } }`.
|
|
162
|
+
- Thinking mode with tools requires reasoning content to be preserved across subsequent tool-calling turns, otherwise API-compatible integrations can fail or lose continuity.
|
|
163
|
+
- Thinking mode ignores sampling controls such as `temperature` and `top_p` in the official API path.
|
|
164
|
+
- DeepSeek V4 Pro has explicit non-think, think-high, and think-max operating modes; max reasoning uses an additional prompt prefix in the model encoding.
|
|
165
|
+
|
|
166
|
+
dsmm should therefore treat "DeepSeek V4 Pro calibration" as a model-family overlay, not as a universal prompt. The overlay should:
|
|
167
|
+
|
|
168
|
+
1. ask for deliberate decomposition before tool use on architectural, debugging, migration, and multi-file tasks;
|
|
169
|
+
2. state that tools are part of the reasoning loop and must be used for repository-specific claims;
|
|
170
|
+
3. avoid vague encouragement such as "be smart" and instead encode concrete trigger/action rules;
|
|
171
|
+
4. preserve concise final answers while allowing deeper private reasoning through the provider's thinking controls;
|
|
172
|
+
5. recommend `reasoning_effort: high` for normal deepwork tasks and `max` only for architecture, review, migration, runtime-safety, or hard-reasoning work;
|
|
173
|
+
6. avoid the unsupported `developer` role for general DeepSeek API usage.
|
|
174
|
+
|
|
175
|
+
## MVP scope
|
|
176
|
+
|
|
177
|
+
MVP v0.1 builds a minimal, installable dsh bundle with:
|
|
178
|
+
|
|
179
|
+
- `deepwork` custom mode implemented by dsmm, disabled outside explicit mode activation;
|
|
180
|
+
- dsmm settings namespace with documented defaults;
|
|
181
|
+
- core deepwork prompt section;
|
|
182
|
+
- four workflow skills: brainstorming, writing-plans, requesting-code-review, receiving-code-review;
|
|
183
|
+
- minimal role definitions for orchestrator, planner, reviewer, code-search, and doc-search if dsh agent presets are available in the target profile;
|
|
184
|
+
- DeepSeek V4 Pro calibration overlay gated by model/settings.
|
|
185
|
+
|
|
186
|
+
MVP excludes:
|
|
187
|
+
|
|
188
|
+
- complete ocmm category matrix;
|
|
189
|
+
- OpenCode runtime fallback and idle continuation;
|
|
190
|
+
- MCP/LSP server packaging;
|
|
191
|
+
- tool guard parity;
|
|
192
|
+
- web/client UI panels;
|
|
193
|
+
- Docker-based dsh integration tests beyond a smoke harness.
|
|
194
|
+
|
|
195
|
+
## Configuration strategy
|
|
196
|
+
|
|
197
|
+
Every dsmm feature should have a clear control surface:
|
|
198
|
+
|
|
199
|
+
| Feature | Default | Control surface |
|
|
200
|
+
|---|---:|---|
|
|
201
|
+
| `deepwork` mode registration | on | composition config |
|
|
202
|
+
| auto-enter deepwork | off | settings |
|
|
203
|
+
| DeepSeek V4 Pro calibration | auto | settings + model detection |
|
|
204
|
+
| workflow skills | on for MVP set | settings |
|
|
205
|
+
| role presets | on when dsh agent presets available | composition config |
|
|
206
|
+
| safety guards | staged, mostly off until implemented | settings |
|
|
207
|
+
| MCP/LSP | off until v0.5 | composition config + settings |
|
|
208
|
+
|
|
209
|
+
## Docker debugging strategy
|
|
210
|
+
|
|
211
|
+
Docker is allowed for dsh debugging, but dsmm should keep it as a verification surface rather than a runtime assumption.
|
|
212
|
+
|
|
213
|
+
Planned checks:
|
|
214
|
+
|
|
215
|
+
1. build dsmm package;
|
|
216
|
+
2. start a disposable dsh profile inside Docker;
|
|
217
|
+
3. install dsmm into that profile using a local path or packed tarball;
|
|
218
|
+
4. verify the profile includes the dsmm bundle;
|
|
219
|
+
5. run a headless prompt that enters `deepwork` mode and confirms dsmm prompt sections are active;
|
|
220
|
+
6. remove the container and disposable profile artifacts.
|
|
221
|
+
|
|
222
|
+
Docker checks must not require publishing dsmm or writing to user-level dsh config.
|
|
223
|
+
|
|
224
|
+
## Risks
|
|
225
|
+
|
|
226
|
+
- dsh mode APIs may differ from the archived oh-dsh notes; implementation must verify against the current dsh package version.
|
|
227
|
+
- DeepSeek V4 Pro calibration is partly based on user observation and community experience; official claims are limited to thinking/tool-call behavior and model modes.
|
|
228
|
+
- Some ocmm features are OpenCode-specific and must be redesigned instead of ported line by line.
|
|
229
|
+
- Full reviewer/oracle semantics may require dsh-native agent routing work before parity is possible.
|
|
230
|
+
|
|
231
|
+
## Acceptance criteria for this design phase
|
|
232
|
+
|
|
233
|
+
- `dsmm/` contains all current dsmm project materials.
|
|
234
|
+
- The MVP explicitly uses dsh custom mode rather than global prompt injection.
|
|
235
|
+
- The roadmap separates MVP from parity features.
|
|
236
|
+
- DeepSeek V4 Pro tuning is documented as a configurable overlay, not a universal assumption.
|
|
237
|
+
- The first commit contains only dsmm project documentation and no runtime code.
|
package/docs/lsp.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# dsmm LSP MCP Integration
|
|
2
|
+
|
|
3
|
+
dsmm keeps LSP/MCP disabled by default. The default `cordis.patch.yml` installs only the dsmm prompt, skill, guard, and preset behavior; it does not add an MCP client row.
|
|
4
|
+
|
|
5
|
+
Enable LSP support only in an explicit dsh profile by applying the opt-in patch at `patches/ocmm-lsp-mcp.example.cordis.patch.yml`. The patch inserts one `@deepseek-ai/dsh-mcp-client` row named `dsmm-lsp-mcp` that starts `ocmm-lsp mcp` over stdio.
|
|
6
|
+
|
|
7
|
+
## dsh MCP patch settings
|
|
8
|
+
|
|
9
|
+
The example patch uses these LSP/MCP settings:
|
|
10
|
+
|
|
11
|
+
- `serverName: dsmm_lsp`
|
|
12
|
+
- `command: ocmm-lsp`
|
|
13
|
+
- `args: ["mcp"]`, equivalent to running `ocmm-lsp mcp`
|
|
14
|
+
- `transport: stdio`
|
|
15
|
+
- `failOnStartupError: true`
|
|
16
|
+
- `toolCallTimeoutMs: 60000`
|
|
17
|
+
|
|
18
|
+
If `ocmm-lsp` is not on `PATH`, copy the example patch and replace `command: ocmm-lsp` with an absolute wrapper path for the environment where dsh will run.
|
|
19
|
+
|
|
20
|
+
## Tools exposed to dsh
|
|
21
|
+
|
|
22
|
+
With `serverName: dsmm_lsp`, the dsh MCP client exposes these public tool names to the model:
|
|
23
|
+
|
|
24
|
+
- `mcp__dsmm_lsp__status`
|
|
25
|
+
- `mcp__dsmm_lsp__diagnostics`
|
|
26
|
+
- `mcp__dsmm_lsp__goto_definition`
|
|
27
|
+
- `mcp__dsmm_lsp__find_references`
|
|
28
|
+
- `mcp__dsmm_lsp__find_symbol_related`
|
|
29
|
+
- `mcp__dsmm_lsp__symbols`
|
|
30
|
+
- `mcp__dsmm_lsp__prepare_rename`
|
|
31
|
+
- `mcp__dsmm_lsp__rename`
|
|
32
|
+
- `mcp__dsmm_lsp__format`
|
|
33
|
+
|
|
34
|
+
`format` applies the language server's document edits to the source file atomically. The debug adapter protocol (DAP) remains a separate debugging surface and is not an MCP tool.
|
|
35
|
+
|
|
36
|
+
## Verification
|
|
37
|
+
|
|
38
|
+
Direct MCP verification should start `ocmm-lsp mcp`, send a JSON-RPC `tools/list` request, and assert that the nine raw MCP tools are present: `status`, `diagnostics`, `goto_definition`, `find_references`, `find_symbol_related`, `symbols`, `prepare_rename`, `rename`, and `format`. It should call `diagnostics` and `format` against a temporary LSP fixture, then read back the formatted source file.
|
|
39
|
+
|
|
40
|
+
Docker bridge verification should install dsmm into a disposable dsh profile, apply `patches/ocmm-lsp-mcp.example.cordis.patch.yml`, mount `@deepseek-ai/dsh-mcp-client`, and call `mcp__dsmm_lsp__diagnostics` against the same temporary diagnostic fixture. This proves the dsh MCP bridge sees the public tool name and can pass the diagnostic request through to `ocmm-lsp mcp`.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Migrating from ocmm to DSMM 0.1.1
|
|
2
|
+
|
|
3
|
+
DSMM is a DSH-native Cordis bundle, not an OpenCode compatibility layer; .opencode/ocmm.jsonc cannot be copied into DSH. This guide describes the 0.1.1 routing surface targeting DSH 0.2.0-rc.2, not a full host-feature parity claim.
|
|
4
|
+
|
|
5
|
+
## Hard boundary
|
|
6
|
+
|
|
7
|
+
Model selection, authentication, permissions, session ownership, and package loading remain DSH-native. Existing ocmm/OpenCode configuration and sessions can coexist, but do not become DSMM configuration or fallback sessions.
|
|
8
|
+
|
|
9
|
+
## Feature mapping
|
|
10
|
+
|
|
11
|
+
| ocmm area | DSMM migration | State |
|
|
12
|
+
| --- | --- | --- |
|
|
13
|
+
| Deepwork gates | Risk-scaled discovery; authorized bounded implementation proceeds; complex behavior uses planner → critic → implementation; completion requires relevant evidence. | equivalent core intent |
|
|
14
|
+
| Seven workflow skills | Current workflow intent adapted to native DSH tools, scopes, authorization, and review ownership. | equivalent core intent |
|
|
15
|
+
| Twelve role presets | Native definitions plus role-specific delegation composition, including builder, creative, reviewer, oracle, and oracle-2nd. | redesigned for DSH |
|
|
16
|
+
| Per-role model/effort and DeepSeek calibration | Explicit `roleRouting`, fixed native child options, direct-role request policy, exact configured efforts, and compatible legacy calibration. | redesigned for DSH |
|
|
17
|
+
| Safety guards | Native pre/post tool policies; host approval/cancellation remain authoritative. | redesigned for DSH |
|
|
18
|
+
| LSP/MCP | Optional external ocmm-lsp with nine tools including atomic format; debugging/DAP is a separate on-demand skill. | optional/manual |
|
|
19
|
+
| Runtime fallback | Host-first, opt-in role/global ordered chains with exact efforts, cancellation, duplicate, and step fences. | redesigned for DSH |
|
|
20
|
+
| Idle continuation | Separately enabled, bounded steering from durable unfinished work. | redesigned for DSH |
|
|
21
|
+
| Subagent interruption recovery | Native durable child/session control and explicit continuation; no guessed task IDs, synthesized parent messages, or independent automatic retry dispatcher. | redesigned for DSH |
|
|
22
|
+
| Settings/status | Restart-scoped Loader plugin config and normalized read-only status; old settings namespaces need explicit migration. | redesigned for DSH |
|
|
23
|
+
| Prompt/cache hooks | No OpenCode history mutation or cache-hook compatibility layer. | unavailable |
|
|
24
|
+
| OpenCode commands/hooks | Native equivalents only; OpenCode registrations cannot be copied. | unavailable |
|
|
25
|
+
| Model categories and Oracle tiers | User-controlled native agent/model composition; normal roles have no suffix and tier routes require explicit configuration. | optional/manual |
|
|
26
|
+
| Codex marketplace | DSH plugin/profile loading, not Codex marketplace installation. | unavailable |
|
|
27
|
+
| Release surfaces | Local packed-readiness checks; no root ocmm release authority. | redesigned for DSH |
|
|
28
|
+
|
|
29
|
+
The seven core skills are `brainstorming`, `writing-plans`, `subagent-driven-development`, `requesting-code-review`, `receiving-code-review`, `dispatching-parallel-agents`, and `remove-ai-slops`. Debugging is available on demand, without injecting its full references into every prompt.
|
|
30
|
+
|
|
31
|
+
The role set includes `dsmm-orchestrator`, `dsmm-planner`, `dsmm-plan-critic`, `dsmm-reviewer`, `dsmm-code-search`, `dsmm-doc-search`, `dsmm-clarifier`, `dsmm-media-reader`, `dsmm-builder`, `dsmm-oracle`, `dsmm-oracle-2nd`, and `dsmm-creative`. File existence is not callable evidence. Check the active native preset and tool inventories. Reviewer is primary-lane self-review; Oracle is an external-model cross-check only when the actual user-selected route differs. Running all roles with Flash does not prove model heterogeneity.
|
|
32
|
+
|
|
33
|
+
## Migration sequence
|
|
34
|
+
|
|
35
|
+
1. Use an isolated `DSH_HOME` and a dedicated profile built from the pinned DSH 0.2.0-rc.2 headless template.
|
|
36
|
+
2. Install a locally packed reviewed DSMM artifact; registry publication remains separately authorized.
|
|
37
|
+
3. Configure the actual native provider/model and credentials; V41 Flash is `deepseek-flash`, not a guessed `deepseek-v4.1-flash` alias.
|
|
38
|
+
4. Move DSMM settings into the `id: dsmm` profile patch's `config` object and restart; do not copy old settings.yaml into the new home.
|
|
39
|
+
5. Use `workflow.policy: risk-based` for the current workflow. Explicit legacy controls remain supported; inspect normalized status instead of assuming omitted and explicit defaults are equivalent.
|
|
40
|
+
6. Inspect native roles and role-specific tools; do not configure removed `roots/includeUserRoot` or count exported template directories as discovery.
|
|
41
|
+
7. Enable optional LSP/MCP only with a usable external ocmm-lsp executable; recovery stays disabled unless explicitly configured.
|
|
42
|
+
8. Validate the packed profile and the real specified model's read/write/tool-result round-trip before changing your default workflow.
|
|
43
|
+
|
|
44
|
+
Model IDs belong to their native provider routes: `deepseek-account/deepseek-flash` and a custom `hoo/deepseek-v4.1-flash` are distinct routes. Configure custom routes through DSH's pi-ai adapter, using credential references rather than literal keys. Provider SDK identity alone is not wire-protocol proof. For the inspected Anthropic gateway, terminal `/v1` must be removed from its source SDK baseURL to retain the same native request path; adaptive thinking compatibility and exact high/max declarations preserve effort. This rule is not a global URL rewrite for other protocols.
|
|
45
|
+
|
|
46
|
+
Translate source agents into canonical `roleRouting` entries with primary and ordered fallback efforts. Keep explicit disabled roles disabled. A source `explore` alias to code-search maps to `dsmm-code-search`, not a new role/tool. Missing source model capabilities require discovery and actual validation; do not copy another version's vision capabilities or silently replace the media model. The checkout migration helper defaults to a sanitized dry run; applying credentials/profile changes is explicit and requires concurrency/backup safeguards.
|
|
47
|
+
|
|
48
|
+
The inspected pi-ai adapter exposes stable transient codes but no stable HTTP status. The migration candidate explicitly opts in to `RATE_LIMIT`, `SERVER`, `TIMEOUT`, and `TRANSPORT` through `runtimeRecovery.retryOnCodes`, after native host retries decline. Authentication, quota, and invalid-request failures are not included. Package recovery defaults remain unchanged.
|
|
49
|
+
|
|
50
|
+
## Coexistence and cutover
|
|
51
|
+
|
|
52
|
+
Keep the existing OpenCode configuration until the DSH profile has independently passed its required evidence. Headless configuration uses profile files and `--dump-config`; command-capable hosts execute `/deepwork` and `/dsmm-status` through the command adapter, not by sending those strings as model tasks.
|
|
53
|
+
|
|
54
|
+
DSH owns subagent depth and permission ceilings. DSMM does not raise the native default depth or use workflow instructions to bypass plan mode, user approval, read-only roles, or provider authentication.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Model routing
|
|
2
|
+
|
|
3
|
+
## Explicit role policies (0.1.1)
|
|
4
|
+
|
|
5
|
+
`roleRouting` is a restart-scoped map keyed by canonical DSMM role ID. It defaults to `{}`; role names alone do not select a model. Provider authentication and route declarations remain native DSH configuration.
|
|
6
|
+
|
|
7
|
+
```yaml
|
|
8
|
+
- id: dsmm
|
|
9
|
+
config:
|
|
10
|
+
defaultActive: true
|
|
11
|
+
roles:
|
|
12
|
+
dsmm-builder: false
|
|
13
|
+
roleRouting:
|
|
14
|
+
dsmm-orchestrator:
|
|
15
|
+
primary:
|
|
16
|
+
provider: my-provider
|
|
17
|
+
model: primary-model
|
|
18
|
+
reasoningEffort: high
|
|
19
|
+
fallbackRoutes:
|
|
20
|
+
- provider: my-provider
|
|
21
|
+
model: backup-model
|
|
22
|
+
reasoningEffort: high
|
|
23
|
+
dsmm-reviewer:
|
|
24
|
+
primary:
|
|
25
|
+
provider: my-provider
|
|
26
|
+
model: review-model
|
|
27
|
+
reasoningEffort: max
|
|
28
|
+
fallbackRoutes: []
|
|
29
|
+
runtimeRecovery:
|
|
30
|
+
enabled: true
|
|
31
|
+
fallbackRoutes: []
|
|
32
|
+
idleContinuation:
|
|
33
|
+
enabled: false
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
A `primary` is an explicit fixed role policy, not merely a model-menu default. It applies to a directly selected role, a trusted role-tool child, and an active top-level deepwork session as orchestrator when no DSMM preset is selected. Remove or change the policy to use a different native session route. Unconfigured/disabled roles, unrecognized children, and out-of-scope sessions do not acquire another role's policy. Disabled-role configuration may be retained but does not create a callable role.
|
|
37
|
+
|
|
38
|
+
Each route requires a nonempty provider and model together. An optional named `reasoningEffort` is a native adapter ID, not an OpenCode variant translation. The exact configured effort must be supported; unsupported `max` fails rather than being substituted with `high`. A changed route without effort clears incompatible inherited effort and lets the native adapter resolve its default. Existing DeepSeek calibration cannot override an explicit role effort.
|
|
39
|
+
|
|
40
|
+
Fixed native child options keep `modelSelectionSettings:false`. DSMM-owned aliases of the native spawn provider preserve native persona/tool filters, depth, permissions, cancellation, and one-shot lifecycle. Child identity comes from its own durable native subagent descriptor, not a parent preset, persona text, or a model-visible role label. Descriptor identity can be reconstructed after reload; it does not make terminal one-shot children resumable.
|
|
41
|
+
|
|
42
|
+
Primary selection does not reset an admitted fallback or a host-owned durable route change. Final native request headers are authoritative, not an intermediate middleware snapshot. See [runtime recovery](runtime-recovery.md) for role/global chain precedence and retry fences.
|
|
43
|
+
|
|
44
|
+
DSMM records a model-hidden `dsmm/role-policy` metadata epoch for explicit routing. Unchanged policies retain accepted routes across turns and reloads; changing the primary effort or fallback policy invalidates the old selection and applies the new primary. Child epochs are read only from child-owned history, never an inherited ancestor. This metadata does not add model-visible prompt text or create a resumable child lifecycle.
|
|
45
|
+
|
|
46
|
+
## Legacy exact-route calibration
|
|
47
|
+
|
|
48
|
+
DSMM calibrates only exact verified routes while deepwork mode or a selected DSMM preset is in scope:
|
|
49
|
+
|
|
50
|
+
| Route | Calibration settings | Default |
|
|
51
|
+
| --- | --- | --- |
|
|
52
|
+
| `deepseek-official/deepseek-v4-pro` | `deepseekV4ProCalibration`, `deepseekV4ProDefaultReasoningEffort`, `deepseekV4ProMaxReasoningPresets` | `auto`, `high`, plan-critic/reviewer |
|
|
53
|
+
| `deepseek-official/deepseek-flash` or `deepseek-account/deepseek-flash` | `deepseekFlashCalibration`, `deepseekFlashDefaultReasoningEffort`, `deepseekFlashMaxReasoningPresets` | `auto`, `high`, plan-critic/reviewer |
|
|
54
|
+
|
|
55
|
+
The Flash model ID is `deepseek-flash` (catalog name `DeepSeek-V41-Flash`), not `deepseek-v4-pro` or a guessed V4.1 alias. Other provider IDs, even with an identical model string, are not calibrated. DSMM does not change the user's default provider/model.
|
|
56
|
+
|
|
57
|
+
`off` leaves the request unchanged. `auto` fills an omitted reasoning effort while preserving an explicit upstream effort. `strict` may replace an upstream effort only when configured and when the final route's `llm.resolveModelInfo` advertises a permitted value. The chosen effort is `max → high → valid default → unchanged` for a max-designated role; otherwise it is `desired → valid default → unchanged`. No effort is invented when the model has no reasoning metadata. The provider and host retain temperature and tool/reasoning-content serialization ownership.
|
|
58
|
+
|
|
59
|
+
The selected preset comes from the latest valid selection event or session header. Without an explicit role policy, native children retain normal model inheritance; a role label alone cannot prove heterogeneity. The max-to-high negotiation above applies only to legacy calibration, never to an explicit role effort. Runtime recovery chooses any final route before calibration evaluates it.
|
|
60
|
+
|
|
61
|
+
The capability-failure warning is sanitized to route and desired effort; it includes no prompt, credentials, response body or request headers. The actual persisted request header, not an outer middleware probe's earlier snapshot, is authoritative for the resolved effort.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# DSMM 0.1.1 Release and Rollback
|
|
2
|
+
|
|
3
|
+
## Preflight
|
|
4
|
+
|
|
5
|
+
Run these local checks from the exact checkout/status selected for review; they are readiness evidence, not publication steps. Perform the npm-name ownership recheck before publication: the registry lookup is current evidence and cannot reserve name ownership. Confirm the pinned DSH 0.2.0-rc.2 package/CLI identity, review license parity with the package contents, and complete artifact review of the dry-run pack manifest before any mutation. The user selected 0.1.0 for the initial package release; readiness alone does not authorize publishing or replacing an artifact.
|
|
6
|
+
|
|
7
|
+
```powershell
|
|
8
|
+
git rev-parse HEAD
|
|
9
|
+
git status --short
|
|
10
|
+
npm view @dsmm/dsmm name version --registry "https://registry.npmjs.org/"
|
|
11
|
+
pnpm --dir dsmm build
|
|
12
|
+
pnpm --dir ".\dsmm" exec tsc -p ".\tsconfig.test.json" --noEmit
|
|
13
|
+
pnpm --dir dsmm check:release
|
|
14
|
+
npm pack ".\dsmm" --dry-run --json
|
|
15
|
+
pnpm --dir dsmm smoke:docker
|
|
16
|
+
pnpm run typecheck
|
|
17
|
+
pnpm test
|
|
18
|
+
pnpm run build
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
The DSMM test, build, checker, pack, and Docker checks cover the package surface; run `pnpm --dir dsmm test` when completing the DSMM test check. The root typecheck, test, and build check the surrounding repository. Inspect the `npm pack` JSON for the intended artifacts, files, and license before treating the package as review-ready. Local evidence has one boundary: a successful local checker or Docker smoke is not proof of publication.
|
|
22
|
+
|
|
23
|
+
## Authorized publication
|
|
24
|
+
|
|
25
|
+
The first scoped package is `@dsmm/dsmm@0.1.0`, with the distinct tag `dsmm-scoped-v0.1.0`. The prior `dsmm-v0.1.0` GitHub release remains immutable; its unscoped npm publication was rejected by the registry's package-name similarity policy. Do not rename or replace that old release's artifacts. Publication requires explicit authorization; the root release workflow has no DSMM lane. The authorized first-release bootstrap uses the maintainer's authenticated npm account with access to the `dsmm` organization to publish the reviewed tarball. npm Trusted Publishing is a future CI option, not an authentication claim for this bootstrap. Release authorization covers normal commit, push, tag, npm publication and GitHub Release steps for this scoped identity only; it does not authorize rewriting existing publications or adding unrelated release lanes.
|
|
26
|
+
|
|
27
|
+
The authorized follow-up feature version is `@dsmm/dsmm@0.1.1`, tag `dsmm-scoped-v0.1.1`. Keep both 0.1.0 identities intact. Before its publication, additionally verify direct/child role routes, exact efforts, native host-first fallback ordering, read-only routed children, and real configured gateway acceptance; an inherited-Flash smoke alone cannot prove the new role configuration.
|
|
28
|
+
|
|
29
|
+
Pack once from the tested committed checkout, then freeze `dsmm-dsmm-0.1.1.tgz`. Run real Flash and role-routing verification against this exact file and require each receipt's `packedSha256` to match the frozen artifact SHA256. Rehash before publication; never repack after that test. Publish with `npm publish <reviewed-dsmm-dsmm-0.1.1.tgz> --access public --registry=https://registry.npmjs.org/`, and attach the same tarball plus `SHA256SUMS.txt` to the new GitHub Release. Record the tag's peeled commit, npm integrity and downloaded asset checksums. A DSMM release is complete only when these identities agree and a fresh registry-installed profile loads successfully; the root ocmm completion checker does not cover DSMM.
|
|
30
|
+
|
|
31
|
+
Treat both identities as immutable: never overwrite an npm version and never move, delete, or recreate an immutable tag. Readiness documentation and a local tarball do not authorize a publish.
|
|
32
|
+
|
|
33
|
+
## Post-publication verification
|
|
34
|
+
|
|
35
|
+
After an authorized publication, use a fresh isolated `DSH_HOME` and registry install the exact `@dsmm/dsmm@0.1.1` version into a new profile process. Initialize the headless profile first. Check the plugin list and `--dump-config` from that profile, then use available host adapter status where the host exposes it; `/deepwork` and `/dsmm-status` are not headless task text. Confirm scoped root and `@dsmm/dsmm/preset-skills` exports resolve from the installed package while the Loader settings row remains `id: dsmm`.
|
|
36
|
+
|
|
37
|
+
Record the package integrity reported by the registry alongside the version, tarball identity, profile name, and verification time. The evidence must show that the installed package resolves from the registry rather than the working tree.
|
|
38
|
+
|
|
39
|
+
```powershell
|
|
40
|
+
$env:DSH_HOME = "$env:TEMP\dsmm-0.1.1-verify"
|
|
41
|
+
dsh --profile dsmm-0.1.1-verify --from-default-profile headless --dump-config
|
|
42
|
+
dsh plugin --profile dsmm-0.1.1-verify add @dsmm/dsmm@0.1.1
|
|
43
|
+
dsh plugin --profile dsmm-0.1.1-verify list
|
|
44
|
+
dsh --profile dsmm-0.1.1-verify --dump-config
|
|
45
|
+
npm view @dsmm/dsmm@0.1.1 dist.integrity --registry "https://registry.npmjs.org/"
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Rollback
|
|
49
|
+
|
|
50
|
+
For a profile-level rollback, run `dsh plugin --profile <name> remove @dsmm/dsmm`, add an exact known-good version, and restart the profile process. Replacing an old unscoped installation requires removing its `dsmm` dependency/bundle before activating the scoped one, so two bundles do not both insert `id: dsmm`. Preserve existing settings and credentials. Desktop requires its installation-owned `dsh.cmd` with the app fully quit; Desktop boot/config dump is not a supported CLI operation. If a corrected package is needed, use a separately-authorized new patch version and repeat publication verification.
|
|
51
|
+
|
|
52
|
+
Never overwrite an npm version or rewrite a tag to repair a publication. Preserve the immutable evidence and select a new, authorized version instead.
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# DeepSeek V4 Pro Prompt Calibration Notes
|
|
2
|
+
|
|
3
|
+
Date: 2026-08-21
|
|
4
|
+
|
|
5
|
+
## Status of evidence
|
|
6
|
+
|
|
7
|
+
The user reports that DeepSeek V4 Pro currently shows an overfitting-like behavior and needs specialized prompting to activate its full capability. Public official sources reviewed for this design do not state that diagnosis directly. The design therefore treats "overfitting" as a field observation and uses official model behavior to derive safe calibration rules.
|
|
8
|
+
|
|
9
|
+
## Official and public facts used
|
|
10
|
+
|
|
11
|
+
1. The DeepSeek API documents `deepseek-v4-pro` thinking mode with `reasoning_effort` and `extra_body: { "thinking": { "type": "enabled" } }`.
|
|
12
|
+
2. In thinking mode, sampling controls such as `temperature`, `top_p`, `presence_penalty`, and `frequency_penalty` are documented as ineffective in the official API path.
|
|
13
|
+
3. Thinking mode supports tool calls.
|
|
14
|
+
4. Tool-calling conversations in thinking mode require reasoning content to be preserved across subsequent user interaction turns; otherwise the integration can fail or lose the model's reasoning continuity.
|
|
15
|
+
5. DeepSeek V4 Pro public model material describes non-think, think-high, and think-max operating modes. Think-max uses an additional prompt/prefix mechanism and is intended for the hardest reasoning tasks.
|
|
16
|
+
6. General API usage does not accept the `developer` role, even though the open encoding docs mention it for an internal search-agent pipeline.
|
|
17
|
+
|
|
18
|
+
## dsmm calibration implications
|
|
19
|
+
|
|
20
|
+
### Prompt structure
|
|
21
|
+
|
|
22
|
+
DeepSeek V4 Pro calibration should be concrete and trigger-based:
|
|
23
|
+
|
|
24
|
+
- classify the task before acting;
|
|
25
|
+
- decompose architectural/debugging/migration work before editing;
|
|
26
|
+
- use tools for repository-specific facts;
|
|
27
|
+
- avoid claiming file state without reading/searching;
|
|
28
|
+
- keep the final answer concise while letting reasoning effort do the heavy lifting;
|
|
29
|
+
- make review and evidence gates explicit.
|
|
30
|
+
|
|
31
|
+
Avoid vague text such as "use your full intelligence" as the primary mechanism. It is acceptable as a short reinforcement, but the main prompt should specify observable behaviors.
|
|
32
|
+
|
|
33
|
+
### Reasoning policy
|
|
34
|
+
|
|
35
|
+
Recommended default policy for dsmm settings:
|
|
36
|
+
|
|
37
|
+
```yaml
|
|
38
|
+
dsmm:
|
|
39
|
+
prompts:
|
|
40
|
+
deepseekV4ProCalibration: auto
|
|
41
|
+
models:
|
|
42
|
+
defaultReasoningEffort: high
|
|
43
|
+
maxReasoningForArchitecturalWork: true
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Interpretation:
|
|
47
|
+
|
|
48
|
+
- `off`: no DeepSeek-specific overlay.
|
|
49
|
+
- `auto`: apply overlay only when the active model is detected as DeepSeek V4 Pro.
|
|
50
|
+
- `strict`: apply overlay and prefer max reasoning for architecture, migration, review, runtime-safety, or hard-reasoning tasks.
|
|
51
|
+
|
|
52
|
+
### Tool-call continuity
|
|
53
|
+
|
|
54
|
+
dsmm should not itself assume it can manage DeepSeek API message encoding. If dsh exposes a hook or adapter setting for reasoning-content retention, dsmm v0.6 should verify it for DeepSeek V4 Pro tool calls. Until then, dsmm docs should warn that provider/adapter correctness matters for thinking-mode tool use.
|
|
55
|
+
|
|
56
|
+
### Mode boundary
|
|
57
|
+
|
|
58
|
+
The calibration overlay belongs inside dsmm's `deepwork` custom mode or dsmm-managed role scopes. It should not be global, because ordinary dsh sessions may prefer concise non-think behavior.
|
|
59
|
+
|
|
60
|
+
## Draft calibration text shape
|
|
61
|
+
|
|
62
|
+
The final prompt should be maintained in source files, but its shape should remain close to this:
|
|
63
|
+
|
|
64
|
+
```text
|
|
65
|
+
When the active model is DeepSeek V4 Pro and dsmm deepwork mode is active:
|
|
66
|
+
- Treat complex coding, architecture, migration, debugging, and review tasks as deliberate reasoning tasks.
|
|
67
|
+
- First classify the task and identify the evidence needed.
|
|
68
|
+
- Use repository and documentation tools before making repo-specific claims.
|
|
69
|
+
- For multi-step work, maintain a visible plan or task list and verify each completed boundary.
|
|
70
|
+
- Use concise user-facing answers; do not expose private chain-of-thought.
|
|
71
|
+
- Prefer high reasoning effort by default; use max only for configured high-rigor tasks.
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
This text is intentionally behavioral rather than motivational. It should compose with dsh's own model adapter rather than fighting the adapter's chat template.
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# oh-dsh Research Notes
|
|
2
|
+
|
|
3
|
+
Source target: `https://github.com/hust-open-atom-club/oh-dsh`
|
|
4
|
+
|
|
5
|
+
## Project shape
|
|
6
|
+
|
|
7
|
+
oh-dsh is a dsh runtime distribution that combines desktop, web, and TUI surfaces. The repo is organized around a top-level package plus workspace plugins under `plugins/`, with separate patch layers for desktop and web profiles.
|
|
8
|
+
|
|
9
|
+
Relevant observed structure:
|
|
10
|
+
|
|
11
|
+
```text
|
|
12
|
+
oh-dsh/
|
|
13
|
+
bin/
|
|
14
|
+
src/
|
|
15
|
+
cli.ts
|
|
16
|
+
profile.ts
|
|
17
|
+
plugin.ts
|
|
18
|
+
contracts.ts
|
|
19
|
+
runtime*.ts
|
|
20
|
+
plugins/
|
|
21
|
+
desktop-frame/
|
|
22
|
+
better-sidebar-runtime/
|
|
23
|
+
plugin-marketplace/
|
|
24
|
+
skins/
|
|
25
|
+
vision/
|
|
26
|
+
shared/
|
|
27
|
+
tui/
|
|
28
|
+
cordis.patch.yml
|
|
29
|
+
web/cordis.patch.yml
|
|
30
|
+
docs/
|
|
31
|
+
tests/
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Bundle and profile pattern
|
|
35
|
+
|
|
36
|
+
oh-dsh follows dsh's package manifest model:
|
|
37
|
+
|
|
38
|
+
- top-level package exports the Host plugin entry, client entry, and compiled patch;
|
|
39
|
+
- `dsh.bundle.patch` points to the shipped `cordis.patch.yml`;
|
|
40
|
+
- profile assembly lists dsh base/web/headless bundles plus oh-dsh's own bundle;
|
|
41
|
+
- user patch layers remain separate from shipped bundle patches.
|
|
42
|
+
|
|
43
|
+
This is directly useful for dsmm: ship dsmm as a bundle layer and let users override it from their profile patch.
|
|
44
|
+
|
|
45
|
+
## Patch organization
|
|
46
|
+
|
|
47
|
+
oh-dsh uses patch rows to disable upstream defaults and insert its own plugin rows. The key idea is not the specific desktop plugins, but the pattern:
|
|
48
|
+
|
|
49
|
+
```yaml
|
|
50
|
+
- insert:
|
|
51
|
+
- id: oh-desktop-frame
|
|
52
|
+
name: '@oh-dsh/desktop-frame'
|
|
53
|
+
- id: oh-vision
|
|
54
|
+
name: '@oh-dsh/vision'
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
For dsmm, the equivalent is a small set of rows for the dsmm Host plugin, mode definition, settings namespace, prompts, and skill provider.
|
|
58
|
+
|
|
59
|
+
## Host/Client separation
|
|
60
|
+
|
|
61
|
+
oh-dsh packages can expose both Host and Client entries. Host plugins provide services and register prompt/tool/settings contributions. Client plugins inject browser UI surfaces.
|
|
62
|
+
|
|
63
|
+
dsmm MVP should stay Host-only. A client/settings panel can come later, after the dsh plugin APIs and dsmm settings model are stable.
|
|
64
|
+
|
|
65
|
+
## Settings seam
|
|
66
|
+
|
|
67
|
+
oh-dsh distinguishes two planes:
|
|
68
|
+
|
|
69
|
+
- composition plane: profile bundle rows and `cordis.patch.yml` decide which plugins exist;
|
|
70
|
+
- settings plane: user-editable YAML/JSON controls personal preferences.
|
|
71
|
+
|
|
72
|
+
dsmm should adopt this split. Deepwork availability is composition; mode name, auto-entry, calibration strictness, and skill toggles are settings.
|
|
73
|
+
|
|
74
|
+
## Custom mode relevance
|
|
75
|
+
|
|
76
|
+
oh-dsh tracks dsh mode/plan-mode design notes. The important behavior for dsmm is that a mode is session-scoped state, not a global prompt mutation. A mode contributes model-visible instructions while active and can be entered through commands or UI mode selection.
|
|
77
|
+
|
|
78
|
+
Current public dsh documentation exposes `@deepseek-ai/dsh-plan-mode`, not a generic arbitrary named `@deepseek-ai/dsh-mode` package. dsmm should therefore implement its own `deepwork` mode plugin using the same principles, or adapt to an upstream generic mode package if it becomes available. This satisfies the requirement that deepwork should be opt-in rather than global.
|
|
79
|
+
|
|
80
|
+
## Borrowed design decisions
|
|
81
|
+
|
|
82
|
+
1. Ship defaults as a bundle patch, not as instructions for users to paste manually.
|
|
83
|
+
2. Keep profile/user patch layers override-friendly.
|
|
84
|
+
3. Separate Host capability registration from optional Client UI.
|
|
85
|
+
4. Use a settings namespace for user-editable behavior.
|
|
86
|
+
5. Treat mode as the activation boundary for workflow behavior.
|
|
87
|
+
|
|
88
|
+
## Not copied into MVP
|
|
89
|
+
|
|
90
|
+
- Electron desktop shell.
|
|
91
|
+
- Web/TUI UI composition.
|
|
92
|
+
- Plugin marketplace transaction system.
|
|
93
|
+
- Vision tool integration.
|
|
94
|
+
- Sidebar and panel controls.
|
|
95
|
+
|
|
96
|
+
Those features are valuable in oh-dsh, but dsmm's MVP is a workflow/mode bundle rather than a UI runtime distribution.
|