@yangdcm/dsh-expert-team 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.en.md +141 -0
- package/README.md +135 -0
- package/client.js +2473 -0
- package/cordis.patch.yml +24 -0
- package/lib/artifact-writer.js +379 -0
- package/lib/command-parse.js +181 -0
- package/lib/command.js +5100 -0
- package/lib/dispatch-ledger.js +229 -0
- package/lib/index.js +15 -0
- package/lib/interception.js +266 -0
- package/lib/lead-toolface.js +179 -0
- package/lib/log-parse.js +181 -0
- package/lib/loop-guard.js +165 -0
- package/lib/metrics/collect.js +70 -0
- package/lib/metrics/render.js +100 -0
- package/lib/metrics/session-usage.js +319 -0
- package/lib/metrics/timing.js +188 -0
- package/lib/metrics/token-usage.js +352 -0
- package/lib/metrics/tokens.js +271 -0
- package/lib/routes/shared.js +83 -0
- package/lib/settings.js +289 -0
- package/lib/tier.js +190 -0
- package/lib/validate.js +681 -0
- package/lib/vocab.js +121 -0
- package/lib/write-tracer.js +58 -0
- package/package.json +119 -0
- package/presets/expert-team/agent.cordis.yml +542 -0
- package/presets/expert-team/preset.yml +3 -0
- package/skills/expert-team/SKILL.md +328 -0
- package/skills/expert-team/assets/templates/AUTHORITY.md +32 -0
- package/skills/expert-team/assets/templates/PLAN.md +27 -0
- package/skills/expert-team/assets/templates/RESEARCH.md +13 -0
- package/skills/expert-team/assets/templates/RETRO.md +24 -0
- package/skills/expert-team/assets/templates/REVIEW.md +10 -0
- package/skills/expert-team/assets/templates/ROSTER.json +6 -0
- package/skills/expert-team/assets/templates/SPEC.md +62 -0
- package/skills/expert-team/assets/templates/STATE.json +10 -0
- package/skills/expert-team/assets/templates/SUMMARY.md +25 -0
- package/skills/expert-team/assets/templates/TASK.md +23 -0
- package/skills/expert-team/assets/templates/TASKS.json +3 -0
- package/skills/expert-team/assets/templates/TEST.md +9 -0
- package/skills/expert-team/assets/templates//344/273/273/345/212/241/347/234/213/346/235/277.md +23 -0
- package/skills/expert-team/references/EFFICIENCY.md +79 -0
- package/skills/expert-team/references/LOGGING.md +82 -0
- package/skills/expert-team/references/PERSIST.md +57 -0
- package/skills/expert-team/references/PIPELINE.md +58 -0
- package/skills/expert-team/references/ROLES.md +297 -0
- package/skills/expert-team/references/WORKSPACE.md +123 -0
- package/skills/expert-team/references/workflow.team.js +97 -0
- package/skills/expert-team/scripts/scan-authority.mjs +114 -0
- package/skills/expert-team/scripts/scan-single-source.mjs +292 -0
|
@@ -0,0 +1,542 @@
|
|
|
1
|
+
# The `standard` agent preset: the full coding agent, mounted once per process.
|
|
2
|
+
#
|
|
3
|
+
# This file is an AGENT-PLANE composition. The roster mounts it ONCE under a
|
|
4
|
+
# standing scope; every session naming it joins by scope parentage, so the
|
|
5
|
+
# tools and prompt sections registered here cover each joined agent while a
|
|
6
|
+
# session's own state stays keyed per Session/Agent inside the plugins. The
|
|
7
|
+
# host composition (`base.cordis.yml` + `web.cordis.yml`) keeps everything a
|
|
8
|
+
# preset must not own: the registries themselves, the sandbox and approval
|
|
9
|
+
# stack, persistence, and the model route.
|
|
10
|
+
#
|
|
11
|
+
# A service row here MUST sit inside a group carrying an `isolate` realm.
|
|
12
|
+
# Without one it publishes into the root realm, where it is process-global —
|
|
13
|
+
# another preset publishing the same name collides, and a host reader would
|
|
14
|
+
# resolve one preset's instance for every session; `dsh-agent-presets` rejects
|
|
15
|
+
# that at mount. `true` means an entry-local realm: this standing mount's own
|
|
16
|
+
# private instance, apart from every other preset's. (A shared label does NOT
|
|
17
|
+
# pool instances — `provide()` throws on the second registration under the
|
|
18
|
+
# same realm symbol; labels join REALMS, and are not what this file needs.)
|
|
19
|
+
|
|
20
|
+
# ── identity ────────────────────────────────────────────────────────────────
|
|
21
|
+
|
|
22
|
+
# The preset's own persona, shadowing the deployment default for this agent.
|
|
23
|
+
# `{{model}}` and `{{cwd}}` resolve from the agent's own route and workspace.
|
|
24
|
+
- id: persona
|
|
25
|
+
name: '@deepseek-ai/dsh-persona'
|
|
26
|
+
config:
|
|
27
|
+
prefix: >-
|
|
28
|
+
You are a coding agent powered by the {{model}} model.
|
|
29
|
+
suffix: Your working directory is {{cwd}}.
|
|
30
|
+
|
|
31
|
+
- id: agent-instructions
|
|
32
|
+
name: '@deepseek-ai/dsh-agent-instructions'
|
|
33
|
+
config:
|
|
34
|
+
maxBytes: 65536
|
|
35
|
+
|
|
36
|
+
# ── shell ───────────────────────────────────────────────────────────────────
|
|
37
|
+
|
|
38
|
+
# `shell-env` stays in the HOST composition: `apps/cli/src/web.ts` injects it to
|
|
39
|
+
# publish `DSH_WEB_URL`/`DSH_WEB_MODE`, and a host row that injects a service is
|
|
40
|
+
# the criterion for host-plane ownership — injection resolves before any session
|
|
41
|
+
# exists, so there is no agent to key by. Behind a preset realm those variables
|
|
42
|
+
# never reached the model's shell at all. Both shell tools consume the host
|
|
43
|
+
# registry from here; their executors (`bash-sandbox`/`pwsh-sandbox`) are
|
|
44
|
+
# host-plane too.
|
|
45
|
+
- id: tool-bash
|
|
46
|
+
name: '@deepseek-ai/dsh-tool-bash'
|
|
47
|
+
disabled: !!js process.platform === 'win32'
|
|
48
|
+
|
|
49
|
+
- id: tool-pwsh
|
|
50
|
+
name: '@deepseek-ai/dsh-tool-pwsh'
|
|
51
|
+
disabled: !!js process.platform !== 'win32'
|
|
52
|
+
|
|
53
|
+
# ── filesystem ──────────────────────────────────────────────────────────────
|
|
54
|
+
|
|
55
|
+
# Both register into the host `tools` registry and provide nothing, so
|
|
56
|
+
# they need no realm. The `fs` service and its policy stay in the host.
|
|
57
|
+
- id: tool-fs
|
|
58
|
+
name: '@deepseek-ai/dsh-tool-fs'
|
|
59
|
+
|
|
60
|
+
- id: tool-fs-search
|
|
61
|
+
name: '@deepseek-ai/dsh-tool-fs-search'
|
|
62
|
+
config:
|
|
63
|
+
sampleOverCapGlobResults: false
|
|
64
|
+
|
|
65
|
+
# ── background jobs ────────────────────────────────────────────────────────
|
|
66
|
+
|
|
67
|
+
# Only the model-facing controls. The task REGISTRY stays on the host plane:
|
|
68
|
+
# its producers sit outside any realm this file could put it in — `tool-bash`
|
|
69
|
+
# above resolves it with `ctx.get`, and an entry-local realm here is invisible
|
|
70
|
+
# to every sibling row, so `run_in_background` would answer "background jobs
|
|
71
|
+
# unavailable" while these controls sat in the catalog. The registry is keyed by
|
|
72
|
+
# owning agent anyway, so one host instance serves every session. What a preset
|
|
73
|
+
# chooses is whether its agent can collect and stop background work at all.
|
|
74
|
+
- id: tool-jobs
|
|
75
|
+
name: '@deepseek-ai/dsh-tool-jobs'
|
|
76
|
+
|
|
77
|
+
# ── skills ──────────────────────────────────────────────────────────────────
|
|
78
|
+
|
|
79
|
+
# The skill REGISTRY lives in the host composition and is layered per scope:
|
|
80
|
+
# these rows register into THIS preset's layer of it, so they need no realm.
|
|
81
|
+
# `skill-filesystem` contributes local-root discovery for agents on this preset, and
|
|
82
|
+
# `tool-skill` gives them the catalog and loader; the merged catalog also
|
|
83
|
+
# carries whatever the deployment registered globally (repository plugins).
|
|
84
|
+
- id: skill-filesystem
|
|
85
|
+
name: '@deepseek-ai/dsh-skill-filesystem'
|
|
86
|
+
|
|
87
|
+
- id: tool-skill
|
|
88
|
+
name: '@deepseek-ai/dsh-tool-skill'
|
|
89
|
+
|
|
90
|
+
# ── goals ───────────────────────────────────────────────────────────────────
|
|
91
|
+
|
|
92
|
+
# Only the model-facing tool. The goal SERVICE, its session driver, and the
|
|
93
|
+
# `/goal` command stay on the host plane: the Gateway serves the goal domain as
|
|
94
|
+
# Remote endpoints whose receiver comes from a generated descriptor, so it
|
|
95
|
+
# resolves `goals` on the host and an entry-local realm here would hide it. The
|
|
96
|
+
# registry is keyed by session anyway, so one host instance serves every
|
|
97
|
+
# session. What a preset chooses is whether its agent can call the goal tool.
|
|
98
|
+
- id: tool-goal
|
|
99
|
+
name: '@deepseek-ai/dsh-tool-goal'
|
|
100
|
+
|
|
101
|
+
# ── plan mode ───────────────────────────────────────────────────────────────
|
|
102
|
+
|
|
103
|
+
# Plan state is per-agent by nature, so an entry-local realm is not a
|
|
104
|
+
# workaround here — it is the correct lifetime.
|
|
105
|
+
- id: planning
|
|
106
|
+
name: cordis:group
|
|
107
|
+
group: true
|
|
108
|
+
isolate:
|
|
109
|
+
planMode: true
|
|
110
|
+
config:
|
|
111
|
+
- id: plan-mode
|
|
112
|
+
name: '@deepseek-ai/dsh-plan-mode'
|
|
113
|
+
config:
|
|
114
|
+
section: |
|
|
115
|
+
You are in plan mode. Stay in plan mode until exit_plan_mode succeeds or the user switches the session mode. Imperative language to implement changes means plan the implementation, not execute it. A user's conversational agreement — including an answer confirming something you asked — approves nothing and does not end plan mode; fold the confirmed decision into the plan and submit it through exit_plan_mode.
|
|
116
|
+
|
|
117
|
+
Explore first. Use non-mutating reads, searches, static analysis, and checks to ground the plan in the actual repository. Do not edit or write files, change configuration, run formatters or code generation that rewrites tracked files, commit, or otherwise carry out the plan. Prefer existing functions and patterns over new machinery.
|
|
118
|
+
|
|
119
|
+
The tool catalog stays the same across modes for request-cache stability. These plan-mode rules override any later tool description or guidance that suggests using mutation tools; those tools remain listed to keep the tool catalog unchanged. Do not use todo_write to track this planning phase: it tracks implementation after an approved plan, while the plan itself belongs in exit_plan_mode.
|
|
120
|
+
|
|
121
|
+
Resolve discoverable facts by inspection. Use ask_user_question only for user-owned choices or material ambiguity that inspection cannot answer. Do not ask the user where code lives or how current behavior works when you can find out.
|
|
122
|
+
|
|
123
|
+
Make the plan decision-complete: state the goal and success criteria; group implementation changes by subsystem; identify public API, schema, and data-flow changes; cover edge cases, failure modes, tests, acceptance criteria, and explicit assumptions. Keep it concise enough to review but detailed enough that another engineer can implement it without making design decisions.
|
|
124
|
+
|
|
125
|
+
When ready, call exit_plan_mode with the complete plan markdown, starting with a # title. Make exit_plan_mode the only and final tool call in that assistant response: it presents the plan for approval, and implementation begins only in a later step after approval. Do not paste the final plan as a plain reply or ask "should I proceed?" through prose or ask_user_question. If review rejects it, incorporate the feedback and present again. If the review channel is unavailable or aborted, stay in plan mode and ask the user to switch modes manually; do not proceed with implementation.
|
|
126
|
+
|
|
127
|
+
# ── compaction ──────────────────────────────────────────────────────────────
|
|
128
|
+
|
|
129
|
+
# `compaction-basic` reads `toolResultPrune` through `ctx.get`, so the pruner must
|
|
130
|
+
# share this realm rather than sit outside it.
|
|
131
|
+
#
|
|
132
|
+
# `tokenMeter` is deliberately NOT in this realm: the meter stays on the HOST
|
|
133
|
+
# plane, and the rows here resolve that one instance. It takes no configuration,
|
|
134
|
+
# keys every fold by Session, and owns the context-meter projection units the
|
|
135
|
+
# browser reads for every session — behind a realm those units would come and go
|
|
136
|
+
# with whichever presets happen to be mounted. What a preset chooses is whether
|
|
137
|
+
# its agent compacts at all, which is `compaction-basic` below.
|
|
138
|
+
- id: compaction
|
|
139
|
+
name: cordis:group
|
|
140
|
+
group: true
|
|
141
|
+
isolate:
|
|
142
|
+
compaction: true
|
|
143
|
+
toolResultPruner: true
|
|
144
|
+
config:
|
|
145
|
+
- id: compaction-basic
|
|
146
|
+
name: '@deepseek-ai/dsh-compaction-basic'
|
|
147
|
+
|
|
148
|
+
- id: command-compact
|
|
149
|
+
name: '@deepseek-ai/dsh-command-compact'
|
|
150
|
+
|
|
151
|
+
- id: tool-result-pruner
|
|
152
|
+
name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
|
|
153
|
+
config:
|
|
154
|
+
thresholdChars: 8192
|
|
155
|
+
headChars: 4096
|
|
156
|
+
tailChars: 1024
|
|
157
|
+
|
|
158
|
+
# ── delegation and workflows ────────────────────────────────────────────────
|
|
159
|
+
|
|
160
|
+
# The `subagents` registry and its spawn/fork backends live in the HOST
|
|
161
|
+
# composition: the registry is a process singleton whose cross-session queries
|
|
162
|
+
# the api-proxy serves to the browser, and a provider name may only be
|
|
163
|
+
# registered once. This preset contributes the delegation TOOLS, which resolve
|
|
164
|
+
# that host registry.
|
|
165
|
+
#
|
|
166
|
+
# `workflows` is different — nothing outside an agent reads it — so every row
|
|
167
|
+
# that reaches it shares one entry-local realm here, and a consumer left
|
|
168
|
+
# outside would resolve a host registry this preset does not populate.
|
|
169
|
+
#
|
|
170
|
+
# `tool-subagent-report` is host-plane for the same reason as the registry,
|
|
171
|
+
# not because a preset may not want it: it registers a CONTINUABLE SETUP on
|
|
172
|
+
# that singleton rather than a tool this agent calls, and the setup list is
|
|
173
|
+
# not scope-aware — one copy per mounted preset means every child gets
|
|
174
|
+
# `report` registered once per live session, which throws on the second.
|
|
175
|
+
- id: delegation
|
|
176
|
+
name: cordis:group
|
|
177
|
+
group: true
|
|
178
|
+
isolate:
|
|
179
|
+
workflowEngine: true
|
|
180
|
+
config:
|
|
181
|
+
- id: tool-subagent-control
|
|
182
|
+
name: '@deepseek-ai/dsh-tool-subagent-control'
|
|
183
|
+
|
|
184
|
+
- id: tool-subagent-list-agents
|
|
185
|
+
name: '@deepseek-ai/dsh-tool-subagent-control/list-agents'
|
|
186
|
+
|
|
187
|
+
- id: tool-subagent
|
|
188
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
189
|
+
config:
|
|
190
|
+
provider: spawn
|
|
191
|
+
toolName: subagent
|
|
192
|
+
modelSelectionSettings: true
|
|
193
|
+
backgroundMode: continuable
|
|
194
|
+
|
|
195
|
+
- id: tool-subagent-fork
|
|
196
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
197
|
+
config:
|
|
198
|
+
provider: fork
|
|
199
|
+
toolName: subagent_fork
|
|
200
|
+
backgroundMode: continuable
|
|
201
|
+
|
|
202
|
+
# Production dsh does not install these optional providers. Install the
|
|
203
|
+
# matching Bundle in this Profile and restart the Host, then copy this
|
|
204
|
+
# preset and remove `disabled` from the matching tool row. Host availability
|
|
205
|
+
# alone grants no tool.
|
|
206
|
+
- id: tool-subagent-codex
|
|
207
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
208
|
+
disabled: true
|
|
209
|
+
config:
|
|
210
|
+
provider: codex
|
|
211
|
+
toolName: subagent_codex
|
|
212
|
+
backgroundMode: one-shot
|
|
213
|
+
maxDepth: provider-managed
|
|
214
|
+
|
|
215
|
+
- id: tool-subagent-claude-code
|
|
216
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
217
|
+
disabled: true
|
|
218
|
+
config:
|
|
219
|
+
provider: claude-code
|
|
220
|
+
toolName: subagent_claude_code
|
|
221
|
+
backgroundMode: one-shot
|
|
222
|
+
maxDepth: provider-managed
|
|
223
|
+
|
|
224
|
+
- id: workflow-worker-thread
|
|
225
|
+
name: '@deepseek-ai/dsh-workflow-worker-thread'
|
|
226
|
+
config:
|
|
227
|
+
provider: spawn
|
|
228
|
+
|
|
229
|
+
- id: tool-workflow
|
|
230
|
+
name: '@deepseek-ai/dsh-tool-workflow'
|
|
231
|
+
|
|
232
|
+
- id: tool-ralph
|
|
233
|
+
name: '@deepseek-ai/dsh-tool-ralph'
|
|
234
|
+
config:
|
|
235
|
+
subagentProvider: spawn
|
|
236
|
+
maxRounds: 64
|
|
237
|
+
|
|
238
|
+
# ── 推理等级「自动判断」策略(2026-09-10 定案 A)──────────────────────────
|
|
239
|
+
# 不再所有角色一律继承会话档位,而是**按角色写基线 + 由 lead 按任务动态升降**:
|
|
240
|
+
# 基线 high(契约/质量/实现关键):pm、architect、reviewer、sec、dba、backend、frontend、qa
|
|
241
|
+
# 基线 low (机械/读取/写作) :researcher、ui、docs、devops
|
|
242
|
+
# 运行时升降:派工调用里传 `reasoning_effort: off|low|high|max`(合法值仅这 4 个;
|
|
243
|
+
# DeepSeek 适配器只认 off/low/high/max,传 medium 会报 UNSUPPORTED_REASONING_EFFORT)。
|
|
244
|
+
# 该覆盖需要宿主的「子代理模型选择」opt-in(设置命名空间 `subagent-model-selection`,
|
|
245
|
+
# Plugins 页可开)在新会话中被采样;否则只生效上面的角色基线。
|
|
246
|
+
# 注意:刻意**不 pin provider/model** —— 让角色继承会话的路由(auto 路由的 failover 才对角色生效)。
|
|
247
|
+
# 代价:若会话模型是未声明 reasoningEfforts 的手写模型(如 qwen/qvq/kimi 手写条目),
|
|
248
|
+
# 带 effort 的角色派工会因 effort 不受支持而报错,此时请把会话切回 deepseek-official 或 auto。
|
|
249
|
+
#
|
|
250
|
+
# ── L3-4b:异构交叉评审(角色级 provider/model pin)——**已探针证实,但有前置条件** ──
|
|
251
|
+
# 探针结论(2026-09-11 实读宿主源码,不是推测):
|
|
252
|
+
# ① 包在:`@deepseek-ai/dsh-tool-subagent` 存在于装树。
|
|
253
|
+
# ② schema 收:`lib/index.js` 约 258-263 行 `agentOptions: z.object({ provider, model,
|
|
254
|
+
# reasoningEffort, maxTokens })` ⇒ **确实可以按角色 pin provider/model**。
|
|
255
|
+
# ③ 但有**两道运行期门襟**(不满足会在派工那一刻**直接抛错**,不是降级):
|
|
256
|
+
# · 第 378 行:`config.agentOptions !== undefined` 要求该 subagent provider 声明
|
|
257
|
+
# `capabilities.agentOptions`(`spawn` provider 满足);
|
|
258
|
+
# · 第 379 行:**模型选择**还要求 `modelSelectionCapable` —— 即宿主的
|
|
259
|
+
# 「子代理模型选择」opt-in(设置命名空间 `subagent-model-selection`)**必须已开
|
|
260
|
+
# 且在新会话中被采样**。
|
|
261
|
+
# ⇒ 所以本文件**默认不写 provider/model**:写了但你没开 opt-in,会让**每个角色工具报错**。
|
|
262
|
+
#
|
|
263
|
+
# 想启用异构交叉评审(让 review 跑在与实现者**不同的模型**上,避免"自己批自己"):
|
|
264
|
+
# 1) 先在 Plugins 页开启「子代理模型选择」并至少允许一个 provider/model;**新建会话**使其生效。
|
|
265
|
+
# 2) 再给需要独立的角色(建议 reviewer / qa / sec)加 pin,例如:
|
|
266
|
+
# agentOptions:
|
|
267
|
+
# reasoningEffort: high
|
|
268
|
+
# provider: deepseek-official # ← 与实现者不同的路由
|
|
269
|
+
# model: deepseek-v4-pro # ← 与实现者不同的模型
|
|
270
|
+
# 3) 改动后**必跑** `node scripts/validate-agent-preset.mjs`(`npm run gate:preset`)——
|
|
271
|
+
# 它按插件真实 schema 校验,并能抓住 `reasoning_efforts` / `modle` 这类**近失键名**:
|
|
272
|
+
# 宿主该 object **非 strict**,写错键名既不报错也不被剥掉,配置留着但运行时按"没这个键"处理
|
|
273
|
+
# ⇒ 角色**静默失去**该设置(本插件最危险的一类失败)。
|
|
274
|
+
# 代价(务必知情):pin 了 provider/model 的角色**不再享受 `auto` 路由的 failover** ——
|
|
275
|
+
# 该路由抖动时这个角色会直接失败,而不是自动切到下一个目标。
|
|
276
|
+
|
|
277
|
+
# ── expert-team role experts ────────────────────────────────────────────
|
|
278
|
+
# Each role is a DISTINCT, continuable subagent tool instance with its own
|
|
279
|
+
# persona (system identity), toolFilter (lane enforcement), and maxDepth
|
|
280
|
+
# (no runaway delegation). All run on the in-process `spawn` provider and
|
|
281
|
+
# resolve the host `subagents` registry, exactly like `tool-subagent` above.
|
|
282
|
+
#
|
|
283
|
+
# `toolFilter.deny` uses GLOBAL tool names.
|
|
284
|
+
#
|
|
285
|
+
# `maxDepth` is an ABSOLUTE cap on the child's depth, not "how many more
|
|
286
|
+
# levels the child may delegate": `dsh-subagent` computes
|
|
287
|
+
# `childDepth = parentDepth + 1` and rejects when `childDepth > maxDepth`
|
|
288
|
+
# (resolveChildDepth → SubagentDepthError "subagent depth 1 exceeds maxDepth 0").
|
|
289
|
+
# A top-level lead is depth 0, so its roles are depth 1 and **maxDepth must be
|
|
290
|
+
# ≥ 1** — `0` makes every role tool fail. `1` keeps roles as leaves (a role
|
|
291
|
+
# delegating again would need depth 2 > 1, refused even if a deny list were
|
|
292
|
+
# bypassed); the `toolFilter.deny` lists below are the first line of defence.
|
|
293
|
+
- id: tool-subagent-pm
|
|
294
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
295
|
+
config:
|
|
296
|
+
provider: spawn
|
|
297
|
+
toolName: subagent_pm
|
|
298
|
+
backgroundMode: continuable
|
|
299
|
+
maxDepth: 1
|
|
300
|
+
# cost/model auto-select: heavy tier. Since DeepSeek-V4.1-Flash
|
|
301
|
+
# (`deepseek-flash`, 2026-09-10) beats V4-Pro and V4-Pro is retired on
|
|
302
|
+
# 2026-09-14, both tiers use `deepseek-flash`; a future V4.1-Pro can take
|
|
303
|
+
# the heavy slots. Provider is omitted so children inherit the session's
|
|
304
|
+
# provider route (failover still applies).
|
|
305
|
+
agentOptions:
|
|
306
|
+
reasoningEffort: high
|
|
307
|
+
persona: >-
|
|
308
|
+
You are the Product Manager on an expert team. Clarify requirements,
|
|
309
|
+
write acceptance criteria into SPEC.md, and break work into TASKS.json.
|
|
310
|
+
Always fill the mandatory "boundaries and prohibitions" section:
|
|
311
|
+
self-reference, ownership/cross-parent, terminal state, authorization,
|
|
312
|
+
idempotency, cardinality, cascade counts, concurrent same-key, role
|
|
313
|
+
changes, visibility — each with the expected rejection. Spec silence
|
|
314
|
+
means "allowed" and WILL be implemented, so silence is a defect.
|
|
315
|
+
Read and write planning artifacts only — never edit or run code.
|
|
316
|
+
toolFilter:
|
|
317
|
+
deny: [bash]
|
|
318
|
+
|
|
319
|
+
- id: tool-subagent-architect
|
|
320
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
321
|
+
config:
|
|
322
|
+
provider: spawn
|
|
323
|
+
toolName: subagent_architect
|
|
324
|
+
backgroundMode: continuable
|
|
325
|
+
maxDepth: 1
|
|
326
|
+
agentOptions:
|
|
327
|
+
reasoningEffort: high
|
|
328
|
+
persona: >-
|
|
329
|
+
You are the Chief Architect on an expert team. Define interfaces,
|
|
330
|
+
architecture, tradeoffs, and risks in PLAN.md (I/O contracts as JSON
|
|
331
|
+
Schema). Read and write planning artifacts only — never edit or run code.
|
|
332
|
+
toolFilter:
|
|
333
|
+
deny: [bash]
|
|
334
|
+
|
|
335
|
+
# 调研员 (researcher): locate code, trace dependencies, check the environment.
|
|
336
|
+
# A "light" role — default model is `deepseek-flash` (V4.1 Flash, 2026-09-10;
|
|
337
|
+
# natively multimodal and cheaper than the retired V4 Flash).
|
|
338
|
+
- id: tool-subagent-researcher
|
|
339
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
340
|
+
config:
|
|
341
|
+
provider: spawn
|
|
342
|
+
toolName: subagent_researcher
|
|
343
|
+
backgroundMode: continuable
|
|
344
|
+
maxDepth: 1
|
|
345
|
+
agentOptions:
|
|
346
|
+
reasoningEffort: low
|
|
347
|
+
persona: >-
|
|
348
|
+
You are the Researcher on an expert team. Locate code, trace dependencies,
|
|
349
|
+
check the environment, and produce a research report (调研报告) into
|
|
350
|
+
RESEARCH.md. Read code and run read-only environment checks only —
|
|
351
|
+
never implement or edit business code.
|
|
352
|
+
toolFilter:
|
|
353
|
+
deny: [subagent_fork, workflow, ralph]
|
|
354
|
+
|
|
355
|
+
- id: tool-subagent-backend
|
|
356
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
357
|
+
config:
|
|
358
|
+
provider: spawn
|
|
359
|
+
toolName: subagent_backend
|
|
360
|
+
backgroundMode: continuable
|
|
361
|
+
maxDepth: 1
|
|
362
|
+
agentOptions:
|
|
363
|
+
reasoningEffort: high
|
|
364
|
+
persona: >-
|
|
365
|
+
You are the Backend Engineer on an expert team. Implement only your own
|
|
366
|
+
TASKS.json items against the PLAN.md contract, and self-check with
|
|
367
|
+
build/tests. Do not delegate further.
|
|
368
|
+
toolFilter:
|
|
369
|
+
deny: [subagent_fork, workflow, ralph]
|
|
370
|
+
|
|
371
|
+
- id: tool-subagent-frontend
|
|
372
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
373
|
+
config:
|
|
374
|
+
provider: spawn
|
|
375
|
+
toolName: subagent_frontend
|
|
376
|
+
backgroundMode: continuable
|
|
377
|
+
maxDepth: 1
|
|
378
|
+
agentOptions:
|
|
379
|
+
reasoningEffort: high
|
|
380
|
+
persona: >-
|
|
381
|
+
You are the Frontend Engineer on an expert team. Implement only your own
|
|
382
|
+
TASKS.json items against the PLAN.md contract, and self-check with
|
|
383
|
+
build/tests. Do not delegate further.
|
|
384
|
+
toolFilter:
|
|
385
|
+
deny: [subagent_fork, workflow, ralph]
|
|
386
|
+
|
|
387
|
+
# 代码审查员 (reviewer): read-only code review, SEPARATE from QA. A "heavy"
|
|
388
|
+
# role — default model is `deepseek-flash` (V4.1 Flash; V4-Pro retired
|
|
389
|
+
# 2026-09-14).
|
|
390
|
+
- id: tool-subagent-reviewer
|
|
391
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
392
|
+
config:
|
|
393
|
+
provider: spawn
|
|
394
|
+
toolName: subagent_reviewer
|
|
395
|
+
backgroundMode: continuable
|
|
396
|
+
maxDepth: 1
|
|
397
|
+
agentOptions:
|
|
398
|
+
reasoningEffort: high
|
|
399
|
+
persona: >-
|
|
400
|
+
You are the Code Reviewer on an expert team. Review changes against
|
|
401
|
+
SPEC.md and PLAN.md for correctness, security, performance, and
|
|
402
|
+
architecture consistency; write REVIEW.md (issues/severity/verdict).
|
|
403
|
+
In spec review always produce a "silence list": behaviours the spec
|
|
404
|
+
does not cover but the implementation may allow — silence must never
|
|
405
|
+
count as approval. Verify every suspected finding against the source
|
|
406
|
+
and retract the false ones BEFORE any rework is dispatched; report your
|
|
407
|
+
retraction rate. Only P1/P2 and machine-checkable items block a pass.
|
|
408
|
+
Read-only: never edit code or run tests — focus on logic, not style.
|
|
409
|
+
toolFilter:
|
|
410
|
+
deny: [bash, subagent_fork, workflow, ralph]
|
|
411
|
+
|
|
412
|
+
- id: tool-subagent-qa
|
|
413
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
414
|
+
config:
|
|
415
|
+
provider: spawn
|
|
416
|
+
toolName: subagent_qa
|
|
417
|
+
backgroundMode: continuable
|
|
418
|
+
maxDepth: 1
|
|
419
|
+
agentOptions:
|
|
420
|
+
reasoningEffort: high
|
|
421
|
+
persona: >-
|
|
422
|
+
You are the QA Engineer on an expert team. Run tests and builds, collect
|
|
423
|
+
verification results and evidence, and write TEST.md (commands/results/
|
|
424
|
+
verdict). Derive cases from the spec's boundary table too, not only from
|
|
425
|
+
acceptance criteria: at least one NEGATIVE assertion per boundary family.
|
|
426
|
+
If you observe behaviour the spec does not cover, report a "spec-gap"
|
|
427
|
+
instead of passing. Never report lint/build success as runtime success.
|
|
428
|
+
Never edit business code; do not delegate further.
|
|
429
|
+
toolFilter:
|
|
430
|
+
deny: [subagent_fork, workflow, ralph]
|
|
431
|
+
|
|
432
|
+
# UI 设计师 (ui): design tokens/interaction flows/visual QA. Read+plan
|
|
433
|
+
# only (UI.md) — implementation stays with frontend. A "light" role.
|
|
434
|
+
- id: tool-subagent-ui
|
|
435
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
436
|
+
config:
|
|
437
|
+
provider: spawn
|
|
438
|
+
toolName: subagent_ui
|
|
439
|
+
backgroundMode: continuable
|
|
440
|
+
maxDepth: 1
|
|
441
|
+
agentOptions:
|
|
442
|
+
reasoningEffort: low
|
|
443
|
+
persona: >-
|
|
444
|
+
You are the UI Designer on an expert team. Define design tokens,
|
|
445
|
+
layout/interaction specs and visual QA checklists into UI.md, aligned
|
|
446
|
+
with SPEC.md acceptance criteria. Read files and design only — never
|
|
447
|
+
edit business code or run build/tests.
|
|
448
|
+
toolFilter:
|
|
449
|
+
deny: [bash, subagent_fork, workflow, ralph]
|
|
450
|
+
|
|
451
|
+
# 数据工程师 (dba): data contract/DDL/migration/data-quality plan. Read-only
|
|
452
|
+
# design plus read-only data checks. A "heavy" role (contract-critical).
|
|
453
|
+
- id: tool-subagent-dba
|
|
454
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
455
|
+
config:
|
|
456
|
+
provider: spawn
|
|
457
|
+
toolName: subagent_dba
|
|
458
|
+
backgroundMode: continuable
|
|
459
|
+
maxDepth: 1
|
|
460
|
+
agentOptions:
|
|
461
|
+
reasoningEffort: high
|
|
462
|
+
persona: >-
|
|
463
|
+
You are the Data Engineer on an expert team. Own the data contract:
|
|
464
|
+
schema/DDL/migration plan, indexes, and data-quality rules into PLAN.md
|
|
465
|
+
and DATA.md. Read files and run read-only queries only — never write
|
|
466
|
+
business code or mutate data.
|
|
467
|
+
toolFilter:
|
|
468
|
+
deny: [subagent_fork, workflow, ralph]
|
|
469
|
+
|
|
470
|
+
# 安全审计员 (sec): security review (authz/privilege/injection/sensitive
|
|
471
|
+
# data). Read-only. A "heavy" role.
|
|
472
|
+
- id: tool-subagent-sec
|
|
473
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
474
|
+
config:
|
|
475
|
+
provider: spawn
|
|
476
|
+
toolName: subagent_sec
|
|
477
|
+
backgroundMode: continuable
|
|
478
|
+
maxDepth: 1
|
|
479
|
+
agentOptions:
|
|
480
|
+
reasoningEffort: high
|
|
481
|
+
persona: >-
|
|
482
|
+
You are the Security Auditor on an expert team. Review design and code
|
|
483
|
+
for authz boundaries, privilege escalation, injection, and sensitive
|
|
484
|
+
data handling; write SECURITY.md (issues/severity/verdict). Read-only
|
|
485
|
+
— never edit code or run build/tests.
|
|
486
|
+
toolFilter:
|
|
487
|
+
deny: [bash, subagent_fork, workflow, ralph]
|
|
488
|
+
|
|
489
|
+
# 运维/发布 (devops): build/deploy/CI/environment. May run build/deploy
|
|
490
|
+
# commands, never writes business code. A "light" role.
|
|
491
|
+
- id: tool-subagent-devops
|
|
492
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
493
|
+
config:
|
|
494
|
+
provider: spawn
|
|
495
|
+
toolName: subagent_devops
|
|
496
|
+
backgroundMode: continuable
|
|
497
|
+
maxDepth: 1
|
|
498
|
+
agentOptions:
|
|
499
|
+
reasoningEffort: low
|
|
500
|
+
persona: >-
|
|
501
|
+
You are the DevOps engineer on an expert team. Own build/deploy/CI:
|
|
502
|
+
verify builds, produce deployment notes and CI configs (RELEASE.md).
|
|
503
|
+
Run build/deploy/read-only checks only — never write business code or
|
|
504
|
+
alter production data; report blockers instead of forcing changes.
|
|
505
|
+
toolFilter:
|
|
506
|
+
deny: [subagent_fork, workflow, ralph]
|
|
507
|
+
|
|
508
|
+
# 文档工程师 (docs): README/user manual/API docs. A "light" role.
|
|
509
|
+
- id: tool-subagent-docs
|
|
510
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
511
|
+
config:
|
|
512
|
+
provider: spawn
|
|
513
|
+
toolName: subagent_docs
|
|
514
|
+
backgroundMode: continuable
|
|
515
|
+
maxDepth: 1
|
|
516
|
+
agentOptions:
|
|
517
|
+
reasoningEffort: low
|
|
518
|
+
persona: >-
|
|
519
|
+
You are the Technical Writer on an expert team. Produce README, user
|
|
520
|
+
manual, and API docs (DOCS.md) from the shipped artifacts. Read files
|
|
521
|
+
and write docs content in your structured return — never edit
|
|
522
|
+
business code or run build/tests.
|
|
523
|
+
toolFilter:
|
|
524
|
+
deny: [bash, subagent_fork, workflow, ralph]
|
|
525
|
+
|
|
526
|
+
# ── remaining model-facing rows ─────────────────────────────────────────────
|
|
527
|
+
|
|
528
|
+
- id: tool-ask-user
|
|
529
|
+
name: '@deepseek-ai/dsh-tool-ask-user'
|
|
530
|
+
|
|
531
|
+
- id: tool-todo
|
|
532
|
+
name: '@deepseek-ai/dsh-tool-todo'
|
|
533
|
+
config:
|
|
534
|
+
allowParallelInProgress: true
|
|
535
|
+
|
|
536
|
+
# The `web` service and its search provider stay in the host composition; only
|
|
537
|
+
# the model-facing tool is per-session.
|
|
538
|
+
- id: tool-web
|
|
539
|
+
name: '@deepseek-ai/dsh-tool-web'
|
|
540
|
+
config:
|
|
541
|
+
fetch: false
|
|
542
|
+
searchTimeoutMs: 60000
|