@dsmm/dsmm 0.3.28 → 0.3.30
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/agent-presets/dsmm-orchestrator/agent.cordis.yml +1 -1
- package/agent-presets/dsmm-planner/agent.cordis.yml +1 -1
- package/docs/agent-presets.md +2 -2
- package/docs/agent-teams.md +2 -0
- package/docs/compatibility.md +3 -1
- package/docs/maintenance.md +14 -8
- package/docs/model-routing.md +9 -3
- package/docs/testing.md +2 -0
- package/docs/web-fetch-fakeip.md +2 -2
- package/dsh-plugin.json +1 -1
- package/lib/client/children-locales.d.ts +4 -4
- package/lib/client/role-call-observations.js +2 -2
- package/lib/client.js +414 -1288
- package/lib/mode.js +27 -18
- package/lib/model-family.d.ts +5 -3
- package/lib/model-family.js +30 -15
- package/lib/native-subagents.d.ts +8 -1
- package/lib/native-subagents.js +25 -2
- package/lib/permission-schema.d.ts +40 -0
- package/lib/permission-schema.js +13 -0
- package/lib/permission-settings.d.ts +0 -38
- package/lib/permission-settings.js +23 -18
- package/lib/profile-diagnostics.js +1 -11
- package/lib/prompts.js +38 -8
- package/lib/role-subagents.js +10 -7
- package/lib/settings.js +2 -1
- package/lib/skills.js +6 -6
- package/package.json +6 -51
- package/prompts/deepwork.md +4 -4
- package/prompts/source/agents/orchestrator.md +1 -1
- package/prompts/source/agents/planner.md +1 -1
- package/prompts/source/deepwork/claude-fable-5-2.md +3 -0
- package/prompts/source/deepwork/default.md +3 -3
- package/prompts/source/deepwork/gemini.md +1 -1
- package/prompts/source/deepwork/general.md +2 -2
- package/prompts/source/deepwork/glm.md +2 -2
- package/prompts/source/deepwork/gpt.md +1 -1
- package/prompts/source/deepwork/planner.md +1 -1
- package/skills/ast-grep/README.md +3 -3
- package/skills/ast-grep/SKILL.md +9 -6
- package/skills/brainstorming/SKILL.md +1 -1
- package/skills/coding-agent-sessions/SKILL.md +2 -1
- package/skills/dispatching-parallel-agents/SKILL.md +1 -1
- package/skills/frontend/references/perfection/react-perf-tooling.md +24 -26
- package/skills/receiving-code-review/SKILL.md +1 -1
- package/skills/requesting-code-review/SKILL.md +1 -1
- package/skills/subagent-driven-development/SKILL.md +1 -1
- package/skills/writing-plans/SKILL.md +1 -1
package/lib/skills.js
CHANGED
|
@@ -25,12 +25,12 @@ const packageRoot = dirname(dirname(fileURLToPath(import.meta.url)));
|
|
|
25
25
|
/** Packaged metadata only; discovery never reads SKILL.md. */
|
|
26
26
|
// BEGIN SOURCE SKILL METADATA
|
|
27
27
|
export const DSMM_SKILL_DESCRIPTIONS = {
|
|
28
|
-
"brainstorming": "Use before
|
|
29
|
-
"writing-plans": "Use before complex product behavior
|
|
30
|
-
"requesting-code-review": "Use
|
|
31
|
-
"receiving-code-review": "Use when
|
|
32
|
-
"subagent-driven-development": "Use when
|
|
33
|
-
"dispatching-parallel-agents": "Use when
|
|
28
|
+
"brainstorming": "Use before implementing a software change when an unresolved requirement or design choice materially affects the implementation.",
|
|
29
|
+
"writing-plans": "Use to plan a software change before implementing complex product behavior, or when the user requests an implementation plan or a concrete engineering risk requires one.",
|
|
30
|
+
"requesting-code-review": "Use to request independent code review of an implemented software change when review is required or a concrete implementation risk warrants it.",
|
|
31
|
+
"receiving-code-review": "Use when evaluating code review findings about an implemented software change, before deciding which corrections to make.",
|
|
32
|
+
"subagent-driven-development": "Use when delegating independent tasks from an approved software implementation plan to workers in the current session.",
|
|
33
|
+
"dispatching-parallel-agents": "Use when delegating two or more independent software engineering tasks that share no mutable state and do not depend on one another's results.",
|
|
34
34
|
"avoid-ai-slop": "Use before generating or modifying code, tests, or documentation when considering speculative abstractions, redundant defenses or fallbacks, filler explanations, or checks that do not prove required behavior; also use when the user explicitly asks to avoid AI slop.",
|
|
35
35
|
"remove-ai-slops": "Remove AI-generated code slop from branch changes or an explicit file list. Establishes regression coverage for final valid requirements, then runs categorized cleanup with bounded permitted work and verifies with quality gates. Covers 10 slop categories. MUST USE when the user asks to \"remove slop\", \"clean AI code\", \"deslop\", \"clean up AI-generated code\", \"remove AI slop\", or wants to clean up AI-generated patterns.",
|
|
36
36
|
"debugging": "MUST USE for any real runtime debugging across ANY language or binary — crashes, silent failures, wrong responses, stuck processes, memory leaks, async misbehavior, unexplained timing, flaky tests, intermittent failures, passes in isolation, different test fails, order-dependent behavior, CI-only failures, reverse engineering. Runs a hypothesis-driven loop: form ≥3 hypotheses, investigate in parallel, after 2 failed evidence rounds allow one hard-reasoning escalation only when the task is genuinely difficult, confirm root cause, capture a failing reproduction before the fix and verify the same case after, fix minimally, QA by actually USING the system, scrub artifacts. The actual HOW lives in `references/` — READ THEM. Triggers: 'debug this', 'why is X not working', 'hanging', 'attach a debugger', 'reverse engineer', 'pwndbg', 'gdb', 'lldb', 'node inspect', 'tsx debug', 'pdb', 'dlv', 'delve', 'rust-gdb', 'set a breakpoint', 'context window exploded', 'why is the response empty', 'attach the debugger', 'debug it', 'why is this happening', 'trace this bug', 'reproduce and fix', 'silent failure', 'HTTP 200 but empty', 'why did it stop', 'inspect the binary', 'reverse engineering', 'playwright', 'flaky test', 'intermittent failure', 'passes in isolation', 'different test fails', 'order-dependent', 'CI-only failure'.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsmm/dsmm",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.30",
|
|
4
4
|
"description": "Native Deepwork roles, routing, profiles, and permission controls for DeepSeek Harness.",
|
|
5
5
|
"author": "Hugefiver",
|
|
6
6
|
"license": "LicenseRef-AAAPL",
|
|
@@ -119,58 +119,9 @@
|
|
|
119
119
|
"dsh": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0"
|
|
120
120
|
},
|
|
121
121
|
"dependencies": {
|
|
122
|
-
"@deepseek-ai/dsh-web-fetch-http": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
123
|
-
"@deepseek-ai/schemastery": "~3.18.5",
|
|
124
122
|
"ipaddr.js": "^2.5.0",
|
|
125
123
|
"jsonc-parser": "^3.3.1"
|
|
126
124
|
},
|
|
127
|
-
"peerDependencies": {
|
|
128
|
-
"@deepseek-ai/cordis": "~4.0.5 || ~4.1.0",
|
|
129
|
-
"@deepseek-ai/dsh-agent": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
130
|
-
"@deepseek-ai/dsh-agent-instructions": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
131
|
-
"@deepseek-ai/dsh-agent-loop": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
132
|
-
"@deepseek-ai/dsh-agent-preset-registry": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
133
|
-
"@deepseek-ai/dsh-api-remote-access": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
134
|
-
"@deepseek-ai/dsh-attachment": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
135
|
-
"@deepseek-ai/dsh-brand": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
136
|
-
"@deepseek-ai/dsh-client-connection": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
137
|
-
"@deepseek-ai/dsh-client-store": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
138
|
-
"@deepseek-ai/dsh-client-ui-approval": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
139
|
-
"@deepseek-ai/dsh-command-compact": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
140
|
-
"@deepseek-ai/dsh-compaction-basic": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
141
|
-
"@deepseek-ai/dsh-compaction-tool-result-pruner": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
142
|
-
"@deepseek-ai/dsh-fs-local": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
143
|
-
"@deepseek-ai/dsh-http-proxy": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
144
|
-
"@deepseek-ai/dsh-jobs": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
145
|
-
"@deepseek-ai/dsh-llm": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
146
|
-
"@deepseek-ai/dsh-llm-pi-ai": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
147
|
-
"@deepseek-ai/dsh-persona": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
148
|
-
"@deepseek-ai/dsh-plan-mode": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
149
|
-
"@deepseek-ai/dsh-sandbox-policy": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
150
|
-
"@deepseek-ai/dsh-session": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
151
|
-
"@deepseek-ai/dsh-session-persistence": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
152
|
-
"@deepseek-ai/dsh-session-persistence-jsonl": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
153
|
-
"@deepseek-ai/dsh-settings": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
154
|
-
"@deepseek-ai/dsh-skill-filesystem": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
155
|
-
"@deepseek-ai/dsh-subagent": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
156
|
-
"@deepseek-ai/dsh-subprocess-local": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
157
|
-
"@deepseek-ai/dsh-timeout": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
158
|
-
"@deepseek-ai/dsh-tool-ask-user": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
159
|
-
"@deepseek-ai/dsh-tool-bash": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
160
|
-
"@deepseek-ai/dsh-tool-fs": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
161
|
-
"@deepseek-ai/dsh-tool-fs-search": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
162
|
-
"@deepseek-ai/dsh-tool-jobs": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
163
|
-
"@deepseek-ai/dsh-tool-pwsh": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
164
|
-
"@deepseek-ai/dsh-tool-skill": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
165
|
-
"@deepseek-ai/dsh-tool-subagent": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
166
|
-
"@deepseek-ai/dsh-tool-todo": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
167
|
-
"@deepseek-ai/dsh-tool-web": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
168
|
-
"@deepseek-ai/dsh-tools": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
169
|
-
"@deepseek-ai/dsh-typert-protocol": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
170
|
-
"@deepseek-ai/dsh-user-approval": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
171
|
-
"@deepseek-ai/dsh-web": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
172
|
-
"@earendil-works/pi-ai": "^1.1.0"
|
|
173
|
-
},
|
|
174
125
|
"devDependencies": {
|
|
175
126
|
"@deepseek-ai/cordis": "~4.0.5",
|
|
176
127
|
"@deepseek-ai/cordis-plugin-group": "1.0.5",
|
|
@@ -243,6 +194,8 @@
|
|
|
243
194
|
"@deepseek-ai/dsh-system-prompt": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
244
195
|
"@deepseek-ai/dsh-typert-registry": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
245
196
|
"@deepseek-ai/dsh-web": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
197
|
+
"@deepseek-ai/dsh-web-fetch-http": ">=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0",
|
|
198
|
+
"@deepseek-ai/schemastery": "~3.18.5",
|
|
246
199
|
"@earendil-works/pi-ai": "1.3.0",
|
|
247
200
|
"@types/node": "^26.0.0",
|
|
248
201
|
"@types/react": "^18.3.27",
|
|
@@ -260,7 +213,9 @@
|
|
|
260
213
|
"@deepseek-ai/dsh-client-locale",
|
|
261
214
|
"@deepseek-ai/dsh-client-ui-renderer"
|
|
262
215
|
],
|
|
263
|
-
"external": [
|
|
216
|
+
"external": [
|
|
217
|
+
"@deepseek-ai/dsh-api-gateway/client"
|
|
218
|
+
]
|
|
264
219
|
},
|
|
265
220
|
"bundle": {
|
|
266
221
|
"patch": "./cordis.patch.yml"
|
package/prompts/deepwork.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Use this workflow only while the `{{modeName}}` mode is effectively active. This is an opt-in boundary: ordinary presets default off; DW roles default on, but explicit off wins and retains only persona/access. Never force common workflow or skills on merely from a role name.
|
|
3
3
|
`workflow.policy=risk-based` follows the source workflow below. Explicit `workflow.policy=legacy` retains the configured `strictGates`, `reviewCap` and `finalReviewPolicy` gates; it is compatibility policy, not extra authorization. Role scope, output and terminal delegation policy are authoritative over all workflow/model guidance.
|
|
4
4
|
Skills are native metadata and lazy bodies, never automatically injected. Load matching skills only through the actual native skill catalog. Treat `[dsmm safety]` messages as binding feedback. Implementing does not authorize a commit; a commit does not authorize push/tag/rebase/release.
|
|
5
|
-
Understand the requested outcome and relevant facts first. Load the full `brainstorming` skill through the native catalog when
|
|
5
|
+
Understand the requested outcome and relevant facts first. Load the full `brainstorming` skill through the native catalog when an unresolved requirement or design choice materially affects a software change. Development workflow skills apply only at the corresponding engineering stage; use domain skills directly for other tasks. Ask only for a material scope, acceptance, security, data, API/protocol, permission or irreversible-action decision, missing input that would materially change delivery, or an explicit checkpoint. Role-first boundaries and orchestrator-owned planner/critic responsibilities remain unchanged.
|
|
6
6
|
</dsmm-deepwork-mode>
|
|
7
7
|
|
|
8
8
|
---
|
|
@@ -45,9 +45,9 @@ Do not carry implementation permission across turns. A question is not authoriza
|
|
|
45
45
|
|
|
46
46
|
## Deepwork Skill Chain
|
|
47
47
|
|
|
48
|
-
Load skills
|
|
48
|
+
Load these workflow skills only for the matching phase of a software change. For non-development tasks, use relevant domain skills and native parallel tools directly:
|
|
49
49
|
|
|
50
|
-
1. Brainstorm (native metadata available; full skill on demand): understand intent, read supplied and directly related project context before asking, run a first discovery wave before decomposition/planner decisions, and surface only material unresolved options or questions with their impact. Load the full skill
|
|
50
|
+
1. Brainstorm (native metadata available; full skill on demand): understand intent, read supplied and directly related project context before asking, run a first discovery wave before decomposition/planner decisions, and surface only material unresolved options or questions with their impact. Load the full skill when a material design question affects implementation. Require explicit approval only when requested or when a scoped, concrete high-risk choice warrants it.
|
|
51
51
|
2. Plan (writing-plans): for complex product implementation, describe the ideal end state, dependencies, interfaces, risks, wave goals, and useful outcome evidence. Record necessary paths, signatures, fixed values, and decisive test assertions rather than full derivable implementation bodies. Cover material implied inputs and evidence gaps without fixed review-focus headings or quotas, 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 for a newly identified or resolved blocker or relevant new evidence, with no hash, fixed receipt, or open-ended loop.
|
|
52
52
|
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.
|
|
53
53
|
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 material behavior implied by the approved outcome and committed contracts without expanding scope; name important unjudged items, reasons, and missing evidence without fixed headings or quotas. Review informs judgment rather than delivery authorization.
|
|
@@ -55,7 +55,7 @@ Load skills on demand when their phase applies:
|
|
|
55
55
|
|
|
56
56
|
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.
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
Use `dispatching-parallel-agents` when delegating independent software engineering tasks with no shared mutable state or sequential dependency. Use the current skill catalog to discover other skills and load them only when their triggers match.
|
|
59
59
|
|
|
60
60
|
## Execution Rules
|
|
61
61
|
|
|
@@ -11,7 +11,7 @@ You are the primary coordinator and final integrator. Interpret the current user
|
|
|
11
11
|
- Explanation or research requests end in an answer, not edits. Before asking about ambiguity, inspect supplied or named context and directly related project evidence; ask only a material unresolved question and state what its answer changes, or use `clarifier`.
|
|
12
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
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
|
-
- `brainstorming` resolves
|
|
14
|
+
- `brainstorming` resolves uncertainty that materially affects a software design without adding a second approval gate to an already authorized task. It does not ask again for facts or choices already settled by the request, supplied artifacts, related project evidence, or prior conversation. 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
|
|
|
17
17
|
## Smallest-fit routing
|
|
@@ -10,7 +10,7 @@ You are the plan-only agent. From the agreed goal and direct evidence, produce a
|
|
|
10
10
|
- Reserve `docs/superpowers/specs/` and `docs/superpowers/plans/` for final product requirements to be delivered. Each artifact describes one final deliverable, not development decisions, rejected alternatives, assumption rationale/cost, or change history. Changed requirements use separate plans. Non-product tasks, regardless of complexity, use conversation coordination or a task-owned temporary plan outside those directories.
|
|
11
11
|
- Plan around the ideal end state, dependencies, interfaces, material risks, wave goals, and useful outcome evidence. Record decisions an implementer cannot safely infer: necessary paths and names, interface signatures and types, requirement-fixed values, and decisive test assertions or observable results. Do not transcribe implementation bodies already determined by those decisions. Treat steps and ordering as informed guidance that execution may adjust as evidence changes, not as a hard script.
|
|
12
12
|
- Plan verification around valid requirements, functionality, and external interfaces, including material input classes and failure conditions implied by the approved behavior and local contracts. Attach plausible regression coverage to the owning task; when an important behavior remains unjudged, state why and what evidence is missing without imposing a fixed review-focus heading, list, or quota. Do not expand scope from speculation or add descriptive-text locks. Requirement changes update tests; removed components lose their dedicated tests rather than gaining absence tests. Git commits bound compatibility: interim uncommitted behavior need not be preserved, but existing committed contracts and API/security/data/permission/irreversible-action authorization remain binding.
|
|
13
|
-
- Return
|
|
13
|
+
- Return unresolved software design choices that affect implementation to the orchestrator for `brainstorming`; use `writing-plans` techniques proportionally rather than imposing ceremony.
|
|
14
14
|
- Use direct tools first. A leaf read-only `code-search`, `doc-search`, or equivalent lookup is allowed only to resolve a named fact. If evidence leaves a genuinely difficult decision, report the blocker to the orchestrator for optional `hard-reasoning`; strict or high-risk conditions alone do not qualify.
|
|
15
15
|
- Never compose workflow roles: Do not dispatch `plan-critic`, any Reviewer profile, or any Oracle profile; do not use Reviewer profiles or Oracle profiles. Planner, clarifier, coordinator, implementation agents, and decision/review surrogates are also prohibited.
|
|
16
16
|
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<task-completion-calibration>
|
|
2
|
+
While you can still complete part of your assignment, do that work rather than ending the turn with a checklist or an offer to continue. Diagnose an ordinary tool failure before trying again; retry when the cause is understood and repeating the operation is safe. A permission denial ends that operation. Finish independent work within your role, then report the result and any remaining blocker.
|
|
3
|
+
</task-completion-calibration>
|
|
@@ -36,9 +36,9 @@ Do not carry implementation permission across turns. A question is not authoriza
|
|
|
36
36
|
|
|
37
37
|
## Deepwork Skill Chain
|
|
38
38
|
|
|
39
|
-
Load skills
|
|
39
|
+
Load these workflow skills only for the matching phase of a software change. For non-development tasks, use relevant domain skills and native parallel tools directly:
|
|
40
40
|
|
|
41
|
-
1. Brainstorm (native metadata available; full skill on demand): understand intent, read supplied and directly related project context before asking, run a first discovery wave before decomposition/planner decisions, and surface only material unresolved options or questions with their impact. Load the full skill
|
|
41
|
+
1. Brainstorm (native metadata available; full skill on demand): understand intent, read supplied and directly related project context before asking, run a first discovery wave before decomposition/planner decisions, and surface only material unresolved options or questions with their impact. Load the full skill when a material design question affects implementation. Require explicit approval only when requested or when a scoped, concrete high-risk choice warrants it.
|
|
42
42
|
2. Plan (writing-plans): for complex product implementation, describe the ideal end state, dependencies, interfaces, risks, wave goals, and useful outcome evidence. Record necessary paths, signatures, fixed values, and decisive test assertions rather than full derivable implementation bodies. Cover material implied inputs and evidence gaps without fixed review-focus headings or quotas, 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 for a newly identified or resolved blocker or relevant new evidence, with no hash, fixed receipt, or open-ended loop.
|
|
43
43
|
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.
|
|
44
44
|
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 material behavior implied by the approved outcome and committed contracts without expanding scope; name important unjudged items, reasons, and missing evidence without fixed headings or quotas. Review informs judgment rather than delivery authorization.
|
|
@@ -46,7 +46,7 @@ Load skills on demand when their phase applies:
|
|
|
46
46
|
|
|
47
47
|
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.
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
Use `dispatching-parallel-agents` when delegating independent software engineering tasks with no shared mutable state or sequential dependency. Use the current skill catalog to discover other skills and load them only when their triggers match.
|
|
50
50
|
|
|
51
51
|
## Execution Rules
|
|
52
52
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
### Skill use
|
|
2
2
|
|
|
3
|
-
Load the full `brainstorming` native skill when
|
|
3
|
+
Load the full `brainstorming` native skill when an unresolved requirement or design choice materially affects a software implementation. Clear, authorized work follows the applicable workflow directly. Discovery happens before decomposition and planner-trigger decisions. Use a permitted, available `clarifier` only when it materially helps resolve ambiguity; ask the user when their decision is needed.
|
|
4
4
|
|
|
5
5
|
Discover skills through the current runtime catalog and load them only when their triggers match.
|
|
6
6
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<dsmm-deepwork-mode>
|
|
2
|
-
Use this guidance only while the `{{modeName}}` mode is effectively active. Keep the
|
|
2
|
+
Use this guidance only while the `{{modeName}}` mode is effectively active. Keep the native persona's instructions, selected model and reasoning effort. Deepwork supplies general working guidance and on-demand skills; it does not select a DSMM role or change tool permissions.
|
|
3
3
|
|
|
4
4
|
## Understand and deliver the requested outcome
|
|
5
5
|
|
|
6
6
|
Read the supplied context and directly relevant project evidence before deciding how to proceed. Answer explanation and investigation requests without editing. For authorized changes, implement the complete requested outcome within the stated scope, following existing local patterns. Ask only when a missing decision materially changes scope, acceptance, security, data, public interfaces, permissions or irreversible actions.
|
|
7
7
|
|
|
8
|
-
Use a lightweight plan for bounded work and a substantive plan when complexity or concrete risk warrants it. Load matching skills from the actual native skill catalog when their triggers apply;
|
|
8
|
+
Use a lightweight plan for bounded work and a substantive plan when complexity or concrete risk warrants it. Load matching skills from the actual native skill catalog when their triggers apply; use development workflow skills only at the matching stage of a software change. For standalone research, writing, creative work or general planning, use the relevant domain skills directly. Skill bodies are lazy resources, not automatically injected instructions. The native persona and current user request remain authoritative for workflow and delegation. When a skill describes unavailable specialists, perform the corresponding planning or review directly within the native persona's authority, without inventing DSMM delegation tools, and refuse actions that exceed permission boundaries.
|
|
9
9
|
|
|
10
10
|
## Native tools and delegation
|
|
11
11
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
### Skill use
|
|
2
2
|
|
|
3
|
-
Load the full `brainstorming` native skill when
|
|
3
|
+
Load the full `brainstorming` native skill when an unresolved requirement or design choice materially affects a software implementation. Clear, authorized work follows the applicable workflow directly. Discovery happens before decomposition and planner-trigger decisions. Use a permitted, available `clarifier` only when it materially helps resolve ambiguity; ask the user when their decision is needed.
|
|
4
4
|
|
|
5
5
|
Discover skills through the current runtime catalog and load them only when their triggers match.
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ Before deciding whether to decompose a request or invoke a planner, run a first
|
|
|
12
12
|
|
|
13
13
|
## Planner Trigger
|
|
14
14
|
|
|
15
|
-
Do not invoke a planner only because a task has two or more steps. Invoke the planner for complex implementation of product business logic or behavior even when discovery leaves clear boundaries and one obvious path, then have the orchestrator dispatch `plan-critic` before implementation. Skip for that work 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 model capability, or sufficient evidence do not exempt complex product implementation.
|
|
15
|
+
Do not invoke a planner only because a task has two or more steps. Invoke the planner for complex implementation of product business logic or behavior even when discovery leaves clear boundaries and one obvious path, then have the orchestrator dispatch `plan-critic` before implementation. Skip for that work 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 model capability, or sufficient evidence do not exempt complex product implementation. Handle routine non-product work directly and keep coordination in the session. Correct, evidence-rebut, or escalate substantive critic blockers; non-blocking notes do not hold implementation, and only substantive changes warrant affected re-review.
|
|
16
16
|
|
|
17
17
|
## Answer-When-Answerable
|
|
18
18
|
|
|
@@ -18,7 +18,7 @@ Read enough relevant context before decomposition. Complex implementation of pro
|
|
|
18
18
|
|
|
19
19
|
The orchestrator owns planning/critic dispatch, workflow coordination, and final acceptance. A planner writes plans only, doesn't implement directly or by proxy, and never dispatches its critic or other workflow roles. Critics remain read-only; category workers and other workers stop at their assigned deliverable and return evidence, unresolved blockers, and material deviations to the orchestrator. Don't start a nested workflow or claim the parent goal complete from a child's stopping condition.
|
|
20
20
|
|
|
21
|
-
Follow the authoritative role and triggered skills for the detailed method instead of inventing another process. `brainstorming`
|
|
21
|
+
Follow the authoritative role and triggered skills for the detailed method instead of inventing another process. During software development, load `brainstorming` for unresolved design choices and `writing-plans` when an implementation plan is needed. Outside development, use the relevant domain skills directly. Use the current callable schema, not imagined profiles or tools. Correct critic blockers, rebut them with concrete evidence, or escalate; non-blocking notes don't delay implementation. Revisit only affected conclusions after substantive changes.
|
|
22
22
|
|
|
23
23
|
## Work and code discipline
|
|
24
24
|
|
|
@@ -8,7 +8,7 @@ You are the planner agent. You create plans. You do not implement.
|
|
|
8
8
|
|
|
9
9
|
## Canonical Workflow
|
|
10
10
|
|
|
11
|
-
Use
|
|
11
|
+
Use `writing-plans` when the orchestrator requests a software implementation plan. Complex implementation of product business logic or behavior normally receives orchestrator-dispatched `plan-critic` review after planning; this is one blocker-focused pass, not a fixed-receipt or open-ended approval loop. Non-product routine work does not default to planning or criticism; an explicit requirement or concrete major risk must justify it.
|
|
12
12
|
|
|
13
13
|
## Planner Doctrine
|
|
14
14
|
|
|
@@ -31,13 +31,13 @@ ln -s /path/to/your/clone ~/.agents/skills/ast-grep
|
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
33
|
# Search by AST pattern (the helper validates patterns offline first)
|
|
34
|
-
python3 scripts/ast_grep_helper.py search 'console.log($MSG)' --lang ts
|
|
34
|
+
python3 scripts/ast_grep_helper.py search 'console.log($MSG)' src/ --lang ts
|
|
35
35
|
|
|
36
36
|
# Rewrite (dry-run preview by default)
|
|
37
|
-
python3 scripts/ast_grep_helper.py replace 'console.log($MSG)' 'logger.info($MSG)' --lang ts
|
|
37
|
+
python3 scripts/ast_grep_helper.py replace 'console.log($MSG)' 'logger.info($MSG)' src/ --lang ts
|
|
38
38
|
|
|
39
39
|
# Apply the rewrite (two-pass: preview JSON + then --update-all)
|
|
40
|
-
python3 scripts/ast_grep_helper.py replace 'console.log($MSG)' 'logger.info($MSG)' --lang ts
|
|
40
|
+
python3 scripts/ast_grep_helper.py replace 'console.log($MSG)' 'logger.info($MSG)' src/ --lang ts --apply
|
|
41
41
|
|
|
42
42
|
# Run YAML lint rules from sgconfig.yml
|
|
43
43
|
python3 scripts/ast_grep_helper.py scan src/
|
package/skills/ast-grep/SKILL.md
CHANGED
|
@@ -82,7 +82,7 @@ A single-file Python 3 stdlib wrapper. Same on every OS. The agent's default ent
|
|
|
82
82
|
### `search` — find all matches of a pattern
|
|
83
83
|
|
|
84
84
|
```bash
|
|
85
|
-
python3 scripts/ast_grep_helper.py search 'console.log($MSG)' --lang ts
|
|
85
|
+
python3 scripts/ast_grep_helper.py search 'console.log($MSG)' src/ --lang ts
|
|
86
86
|
```
|
|
87
87
|
|
|
88
88
|
Validates the pattern offline first. If the pattern looks like regex (`\w`, `.*`, `|`, etc.) the helper exits with a hint and never calls `sg` — saves a round-trip. Pass `--force` to skip validation.
|
|
@@ -97,10 +97,10 @@ Flags:
|
|
|
97
97
|
|
|
98
98
|
```bash
|
|
99
99
|
# Dry-run preview (default — no files mutated)
|
|
100
|
-
python3 scripts/ast_grep_helper.py replace 'console.log($MSG)' 'logger.info($MSG)' --lang ts
|
|
100
|
+
python3 scripts/ast_grep_helper.py replace 'console.log($MSG)' 'logger.info($MSG)' src/ --lang ts
|
|
101
101
|
|
|
102
102
|
# Actually apply
|
|
103
|
-
python3 scripts/ast_grep_helper.py replace 'console.log($MSG)' 'logger.info($MSG)' --lang ts
|
|
103
|
+
python3 scripts/ast_grep_helper.py replace 'console.log($MSG)' 'logger.info($MSG)' src/ --lang ts --apply
|
|
104
104
|
```
|
|
105
105
|
|
|
106
106
|
The helper:
|
|
@@ -120,8 +120,11 @@ python3 scripts/ast_grep_helper.py scan -r rules/no-console.yml src/
|
|
|
120
120
|
# Apply auto-fixes
|
|
121
121
|
python3 scripts/ast_grep_helper.py scan -U src/
|
|
122
122
|
|
|
123
|
-
#
|
|
124
|
-
python3 scripts/ast_grep_helper.py scan --report-style short
|
|
123
|
+
# Compact one-line findings
|
|
124
|
+
python3 scripts/ast_grep_helper.py scan src/ --report-style short
|
|
125
|
+
|
|
126
|
+
# GitHub annotations use sg directly
|
|
127
|
+
sg scan --format github src/
|
|
125
128
|
```
|
|
126
129
|
|
|
127
130
|
### `validate` — offline pattern check (no `sg` call)
|
|
@@ -258,7 +261,7 @@ The full YAML rule schema is in `references/yaml-rules.md`. Project setup (`sgco
|
|
|
258
261
|
- `sg run --json=compact` produces an array of match objects: `{ file, range: {start, end}, text, replacement?, lines, language, ... }`. Pipe through `jq` for further processing.
|
|
259
262
|
- Without `--json`, `sg` produces human-readable colored output suitable for terminals.
|
|
260
263
|
- The helper's default output is human-readable (file:line:column + match preview). Pass `--json-out` for raw JSON.
|
|
261
|
-
-
|
|
264
|
+
- `replace` previews each match in dry-run mode; `--apply` reports the match and file totals.
|
|
262
265
|
|
|
263
266
|
When summarizing for the user, **always include the count of files affected**, not just the count of matches. Users care about blast radius.
|
|
264
267
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: brainstorming
|
|
3
|
-
description: "Use before
|
|
3
|
+
description: "Use before implementing a software change when an unresolved requirement or design choice materially affects the implementation."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## DSH resource and authority contract
|
|
@@ -95,10 +95,11 @@ Each `match_reasons` entry includes `query`, `platform`, `field`, and `snippet`,
|
|
|
95
95
|
| `--cwd` | Working-directory substring |
|
|
96
96
|
| `--model` | Model substring |
|
|
97
97
|
| `--limit` | Maximum results |
|
|
98
|
-
| `--query` | Repeatable search query; multiple queries return per-query groups plus a de-duplicated merged result list |
|
|
99
98
|
| `--workers` | Parallel worker count for platform scans, transcript parsing, OpenCode message joins, and multi-query matching |
|
|
100
99
|
| `--include-subagents` | Include subagent/child sessions as standalone `list`/`search` results (hidden by default) |
|
|
101
100
|
|
|
101
|
+
Use `--query` with `search` (alias `find`) for text matching. Repeating it returns per-query groups and a de-duplicated result list. `list` ignores query text.
|
|
102
|
+
|
|
102
103
|
When `--platform` is omitted, the finder searches every registered platform in parallel. Each optional platform first probes fixed, known transcript roots and returns immediately when the product has no local store, so broad default searches stay cheap. Use repeatable flags such as `--platform openclaw --platform droid` only when narrowing. Comma-separated platform values are intentionally unsupported.
|
|
103
104
|
|
|
104
105
|
For OpenCode, the finder uses `opencode db path` plus direct SQLite queries first, then `opencode session list --format json` as a fallback. It avoids heavy `messages/` or `parts/` scans during normal list/search, and only falls back to file joins when the OpenCode DB/CLI is unavailable or explicit `--root` values request a nonstandard store.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: dispatching-parallel-agents
|
|
3
|
-
description: Use when
|
|
3
|
+
description: Use when delegating two or more independent software engineering tasks that share no mutable state and do not depend on one another's results.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## DSH resource and authority contract
|
|
@@ -17,7 +17,22 @@ If the project does not yet have react-scan and react-doctor wired into its dev
|
|
|
17
17
|
|
|
18
18
|
## Lighthouse run + react-scan/lite
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
Bundle this browser entry as `audit/react-scan-init.js` (IIFE) with the project's existing bundler. Measure React commits on the Playwright page and Lighthouse scores for the same URL. Lighthouse may use a different page, so the two measurements need not cover the same navigation. A bare package import inside `addInitScript` is not resolved by the app bundler.
|
|
21
|
+
|
|
22
|
+
```ts
|
|
23
|
+
import { instrument, type LiteEvent } from "react-scan/lite";
|
|
24
|
+
|
|
25
|
+
declare global {
|
|
26
|
+
interface Window { __renderEvents: LiteEvent[] }
|
|
27
|
+
}
|
|
28
|
+
window.__renderEvents = [];
|
|
29
|
+
instrument({
|
|
30
|
+
recordChangeDescriptions: true,
|
|
31
|
+
onEvent(event) {
|
|
32
|
+
if (event.kind === "commit") window.__renderEvents.push(event);
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
```
|
|
21
36
|
|
|
22
37
|
```ts
|
|
23
38
|
// scripts/audit-with-react-scan.ts
|
|
@@ -132,21 +147,7 @@ async function launchOwnedAuditBrowser(): Promise<OwnedAuditBrowser> {
|
|
|
132
147
|
|
|
133
148
|
const ownedBrowser = await launchOwnedAuditBrowser();
|
|
134
149
|
try {
|
|
135
|
-
|
|
136
|
-
await ownedBrowser.context.addInitScript(() => {
|
|
137
|
-
// @ts-ignore — pulled from the project's node_modules or a self-hosted bundle
|
|
138
|
-
import("react-scan/lite").then(({ instrument }) => {
|
|
139
|
-
(window as any).__renderEvents = [];
|
|
140
|
-
instrument({
|
|
141
|
-
onEvent: (event: any) => {
|
|
142
|
-
if (event.kind === "commit") (window as any).__renderEvents.push(event);
|
|
143
|
-
},
|
|
144
|
-
recordChangeDescriptions: true,
|
|
145
|
-
includeFiberSource: true,
|
|
146
|
-
includeFiberIdentity: true,
|
|
147
|
-
});
|
|
148
|
-
});
|
|
149
|
-
});
|
|
150
|
+
await ownedBrowser.context.addInitScript({ path: "audit/react-scan-init.js" });
|
|
150
151
|
|
|
151
152
|
await ownedBrowser.page.goto("http://localhost:3000/<route>");
|
|
152
153
|
await playAudit({
|
|
@@ -157,15 +158,12 @@ try {
|
|
|
157
158
|
config: { extends: "lighthouse:default", settings: { formFactor: "mobile" } },
|
|
158
159
|
});
|
|
159
160
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
const
|
|
163
|
-
|
|
164
|
-
);
|
|
165
|
-
|
|
166
|
-
if (unnecessary.length > 0) {
|
|
167
|
-
throw new Error(`FAIL: ${unnecessary.length} unnecessary renders detected during audit`);
|
|
168
|
-
}
|
|
161
|
+
const commits = await ownedBrowser.page.evaluate(() => window.__renderEvents);
|
|
162
|
+
if (!commits.length) throw new Error("No React commits observed on the Playwright page");
|
|
163
|
+
const parentOnly = commits.flatMap(commit => (commit.tree ?? []).filter(({ changeDescription: change }) =>
|
|
164
|
+
change?.parent && !change.isFirstMount && !change.props?.length && !change.state && !change.context && !change.hooks.length,
|
|
165
|
+
).map(({ name, actualDuration }) => ({ name, actualDuration })));
|
|
166
|
+
console.table(parentOnly); // Inspect these candidates against the route's expected updates.
|
|
169
167
|
await ownedBrowser.page.screenshot({ path: "lighthouse-react-<route>.png", fullPage: true });
|
|
170
168
|
} finally {
|
|
171
169
|
await ownedBrowser.close();
|
|
@@ -204,7 +202,7 @@ Run them in this order, stop at the first failure:
|
|
|
204
202
|
|
|
205
203
|
1. **`react-doctor`** — cheapest. Catches missing memoization, broken list keys, unstable callback refs, expensive children that re-render unnecessarily. Fix everything it reports BEFORE running Lighthouse — half the perf score wins live here.
|
|
206
204
|
2. **`react-scan` interactive in dev** — load the page in real Chrome with `npx react-scan@latest init` already wired (see the dev-tooling reference). Walk the LCP route, the most-clicked CTA, and any animation-heavy view. The toolbar shows render counts; the overlay highlights unnecessary renders in gray. Fix until clean.
|
|
207
|
-
3. **`react-scan/lite`
|
|
205
|
+
3. **`react-scan/lite` on the Playwright page** — inspect parent-only renders against the route's expected updates. A parent render alone does not establish that a child's work was wasted.
|
|
208
206
|
4. **Playwright + Lighthouse** — standard run from `README.md` audit workflow. Score 100 + zero unnecessary renders from step 3 = done.
|
|
209
207
|
|
|
210
208
|
## React-specific perf root causes (extends `README.md` ROOT-CAUSE CHECKLIST)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: receiving-code-review
|
|
3
|
-
description: Use when
|
|
3
|
+
description: Use when evaluating code review findings about an implemented software change, before deciding which corrections to make.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## DSH resource and authority contract
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: requesting-code-review
|
|
3
|
-
description: Use
|
|
3
|
+
description: Use to request independent code review of an implemented software change when review is required or a concrete implementation risk warrants it.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## DSH resource and authority contract
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: subagent-driven-development
|
|
3
|
-
description: Use when
|
|
3
|
+
description: Use when delegating independent tasks from an approved software implementation plan to workers in the current session.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## DSH resource and authority contract
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: writing-plans
|
|
3
|
-
description: Use before complex product behavior
|
|
3
|
+
description: Use to plan a software change before implementing complex product behavior, or when the user requests an implementation plan or a concrete engineering risk requires one.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## DSH resource and authority contract
|