dsh-lead-mode 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/README.zh-CN.md +5 -5
- package/cordis.patch.yml +3 -35
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -92,7 +92,7 @@ Two channels:
|
|
|
92
92
|
| First persona section | The model | As soon as you switch to Lead mode. It is section 0 of the system prompt |
|
|
93
93
|
| Startup warn and `/lead-mode` | You | When the Team runtime is detected missing |
|
|
94
94
|
|
|
95
|
-
Both
|
|
95
|
+
Both tell you to stop when the Team tools are missing. The persona only carries the check and the stop rule; the next step (the session switch on a newer host, the profile package on an older one) lives in `/lead-mode` output and the skill, so the per-turn context stays short.
|
|
96
96
|
|
|
97
97
|
On an older host the model will not pretend it can delegate, and it will not pass `subagent` off as a teammate. On a newer host `subagent` is how a teammate is built, so that caution does not apply.
|
|
98
98
|
|
|
@@ -168,7 +168,7 @@ Restart dsh afterwards, then pick "Lead 模式" in the preset list.
|
|
|
168
168
|
|
|
169
169
|
Three steps.
|
|
170
170
|
|
|
171
|
-
**1. Switch to Lead mode.** Pick "Lead 模式" in a new session's preset list. The first system-prompt section becomes the Lead persona, and
|
|
171
|
+
**1. Switch to Lead mode.** Pick "Lead 模式" in a new session's preset list. The first system-prompt section becomes the Lead persona, and its short pointer to the `lead-mode` skill goes in with it.
|
|
172
172
|
|
|
173
173
|
**2. Run `/lead-mode` to check dependencies.** This command delegates nothing; it only reports state. When something is missing it gives the next step by generation: the session switch on a newer host, the version-pinned install command on an older one.
|
|
174
174
|
|
|
@@ -178,7 +178,7 @@ Three steps.
|
|
|
178
178
|
|
|
179
179
|
You do not have to touch your preset. Install the plugin, keep `standard` or whatever you already use, and run `/skill lead-mode` in any session to load the method; the model also loads it when it judges the task needs it.
|
|
180
180
|
|
|
181
|
-
One thing is missing: the
|
|
181
|
+
One thing is missing: the persona pointer only appears under the `lead-mode` preset. Run `/lead-mode` once before you start to check the dependencies; when the Team runtime is absent it gives the next step — the session switch on a newer host, the version-pinned install command on an older one.
|
|
182
182
|
|
|
183
183
|
`team-digest` works the same way. It is not tied to a preset, any session can use it, and the model decides at wrap-up whether a digest is worth writing.
|
|
184
184
|
|
|
@@ -250,7 +250,7 @@ $ npm view @deepseek-ai/dsh-experimental-agent-team-profile version
|
|
|
250
250
|
0.1.5-alpha.2
|
|
251
251
|
```
|
|
252
252
|
|
|
253
|
-
So every install command in this plugin's own text carries `@0.2.2-rc.1`, the current `dshTarget`: the
|
|
253
|
+
So every install command in this plugin's own text carries `@0.2.2-rc.1`, the current `dshTarget`: the `/lead-mode` output, the startup warn, and SKILL.md. The persona prefix deliberately carries no command, and `test/preset.test.mjs` asserts that, so the per-turn context stays small.
|
|
254
254
|
|
|
255
255
|
`next` now points at `0.2.2-rc.1`, the build this plugin pins; `alpha` (`0.2.2-alpha.3`) is an earlier preview of the same line.
|
|
256
256
|
|
|
@@ -260,7 +260,7 @@ One place only: the persona. The other 21 rows are copied field for field from `
|
|
|
260
260
|
|
|
261
261
|
| Item | standard | lead-mode |
|
|
262
262
|
|---|---|---|
|
|
263
|
-
| persona prefix | `You are a coding agent powered by the {{model}} model.` | Chinese Lead persona
|
|
263
|
+
| persona prefix | `You are a coding agent powered by the {{model}} model.` | Short Chinese Lead persona: the tool check, the stop rule, and a pointer to the `lead-mode` skill |
|
|
264
264
|
| other 21 rows | — | identical to standard, field for field |
|
|
265
265
|
|
|
266
266
|
The three classic subagent rows (`tool-subagent-control`, `tool-subagent`, `tool-subagent-fork`) stay enabled. `list_agents` now comes from `tool-subagent-control` itself, so there is no separate row for it. Nothing is disabled. The Team tools are a host decision, not a preset decision.
|
package/README.zh-CN.md
CHANGED
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
| persona 第一段 | 模型 | 一切到 Lead 模式就在。system prompt 的第 0 段 |
|
|
93
93
|
| 启动 warn 与 `/lead-mode` | 用户 | 检测到 Team 运行时缺失时 |
|
|
94
94
|
|
|
95
|
-
|
|
95
|
+
两条都让你在 Team 工具不齐时先停下。persona 只带判据和停手规则;下一步怎么做(新宿主开会话开关、老宿主装 profile 包)在 `/lead-mode` 输出和 skill 里,好让每轮上下文保持短。
|
|
96
96
|
|
|
97
97
|
老一代宿主上,模型不会假装能派活,也不会拿 `subagent` 顶替 teammate;新一代的 teammate 本来就是 `subagent` 建的,这条不适用。
|
|
98
98
|
|
|
@@ -168,7 +168,7 @@ dsh plugin --profile <你的 profile 名> add https://github.com/xiebaiyuan/dsh-
|
|
|
168
168
|
|
|
169
169
|
三步。
|
|
170
170
|
|
|
171
|
-
**1. 切到 Lead 模式。** 新会话的预设列表里选「Lead 模式」。切过去之后,模型 system prompt 的第一段就换成 Lead
|
|
171
|
+
**1. 切到 Lead 模式。** 新会话的预设列表里选「Lead 模式」。切过去之后,模型 system prompt 的第一段就换成 Lead 人设,里面那句指向 `lead-mode` skill 的短指针跟着进去。
|
|
172
172
|
|
|
173
173
|
**2. 敲 `/lead-mode` 查依赖。** 这条命令不派活,只报状态。缺东西时它按代际给下一步:新一代提示会话开关,老一代给出带版本号的安装命令。
|
|
174
174
|
|
|
@@ -178,7 +178,7 @@ dsh plugin --profile <你的 profile 名> add https://github.com/xiebaiyuan/dsh-
|
|
|
178
178
|
|
|
179
179
|
预设不动也能用。插件装好,预设保持 `standard` 或你自己的,任何会话敲 `/skill lead-mode` 就加载那套方法;模型判断任务需要时也会自己加载。
|
|
180
180
|
|
|
181
|
-
少了一样东西:persona
|
|
181
|
+
少了一样东西:persona 里那句短指针只在 `lead-mode` 预设里,不切过去就看不到。所以第一次先敲 `/lead-mode` 看依赖:缺 Team 运行时它会给下一步,新一代是会话开关,老一代才是带版本号的安装命令。
|
|
182
182
|
|
|
183
183
|
`team-digest` 同理。它不绑预设,任何会话可用,收尾时模型自己判断要不要写汇总。
|
|
184
184
|
|
|
@@ -250,7 +250,7 @@ $ npm view @deepseek-ai/dsh-experimental-agent-team-profile version
|
|
|
250
250
|
0.1.5-alpha.2
|
|
251
251
|
```
|
|
252
252
|
|
|
253
|
-
所以本插件文案里所有出现安装命令的地方都带 `@0.2.2-rc.1
|
|
253
|
+
所以本插件文案里所有出现安装命令的地方都带 `@0.2.2-rc.1`:`/lead-mode` 输出、启动 warn、SKILL.md,也就是当前的 `dshTarget`。persona prefix 故意不带命令,`test/preset.test.mjs` 反过来断言它不该出现,好让每轮上下文保持短。
|
|
254
254
|
|
|
255
255
|
`next` 现在指向 `0.2.2-rc.1`,就是本插件钉的版本;`alpha`(`0.2.2-alpha.3`)是同一条线的早期预览。
|
|
256
256
|
|
|
@@ -260,7 +260,7 @@ $ npm view @deepseek-ai/dsh-experimental-agent-team-profile version
|
|
|
260
260
|
|
|
261
261
|
| 项 | standard | lead-mode |
|
|
262
262
|
|---|---|---|
|
|
263
|
-
| persona prefix | `You are a coding agent powered by the {{model}} model.` |
|
|
263
|
+
| persona prefix | `You are a coding agent powered by the {{model}} model.` | 短中文 Lead 人设:查工具、停手规则、指向 `lead-mode` skill |
|
|
264
264
|
| 其余 21 行 | — | 与 standard 逐字段相同 |
|
|
265
265
|
|
|
266
266
|
classic subagent 三行(`tool-subagent-control`、`tool-subagent`、`tool-subagent-fork`)保持启用,没有禁用。`list_agents` 现在由 `tool-subagent-control` 自己注册,不再单列一行。Team 工具由 host 决定,不由预设决定。
|
package/cordis.patch.yml
CHANGED
|
@@ -54,43 +54,11 @@
|
|
|
54
54
|
prefix: |
|
|
55
55
|
你是 Lead,负责拆活、派活、验收。动手的活尽量派出去。
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
派活前先加载 `lead-mode` skill。两代 Agent Teams 的工具差异、派活写法、等通知与验收都在里面。
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
2. 没有 spawn_teammate,但有 subagent 和 team_task_*:新一代。teammate 就是 subagent,建成员 subagent({ name, description, prompt }),要继承你已完成的回合用 subagent_fork;发消息 send_message({ agent, message }),打断 interrupt_agent({ agent })。
|
|
61
|
-
3. team_task_* 一个都没有:Team 没开,照下面那段做,别跳步。
|
|
59
|
+
开工第一件事:看本会话有没有 `team_task_*` 工具。一个都没有就是 Team 没开:停下,别自己干完,也别拿 subagent 顶替 teammate;让用户敲 `/lead-mode`,照它给出的下一步开 Agent Teams。装包命令里的版本号必须跟 `dsh --version` 的输出一致。
|
|
62
60
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
第一步,让用户打开会话开关。位置在模型与推理等级菜单里的「使用智能体团队」。新一代宿主 Team 插件随 base 与 web 组合下发,打开这个开关就有工具,不需要装任何包。
|
|
66
|
-
|
|
67
|
-
第二步,只有在确认是老一代宿主(≤0.2.2-rc.1,那个菜单里没有这个开关)时,才给装包命令:
|
|
68
|
-
|
|
69
|
-
dsh plugin --profile <你的 profile 名> add @deepseek-ai/dsh-experimental-agent-team-profile@0.2.2-rc.1
|
|
70
|
-
|
|
71
|
-
版本号要跟 `dsh --version` 的输出一致。不带版本号会装到 0.1.5-alpha.2,和 0.2.2 宿主对不上。装完重启 dsh。新版宿主上不要让人装这个包:它已进 RETIRED_BUNDLES,app-boot 会把 profile 里的它删掉,装了也白装。
|
|
72
|
-
|
|
73
|
-
这是本插件存在的主要理由。没有这些工具,你派不了活。不要自己硬干,不要假装能派活,也不要拿 subagent 当别的工具凑数:新一代里 subagent 本身就是 teammate。
|
|
74
|
-
|
|
75
|
-
派了活就按 Lead 工作法执行,这些条目两代通用:
|
|
76
|
-
|
|
77
|
-
- 派活自包含。teammate 看不到你的上下文,把目标、约束、验收标准、已知失败、绝对路径都写进 prompt。
|
|
78
|
-
- 要求它收尾那条消息写清交付物。它收工时那条消息会随通知回到你手上,格式仍是「Its closing message:」。
|
|
79
|
-
- 派活时要求它第一步建工作日志(.scratch/<effort>/worklog-<mate>.md),收尾前补完最后一轮。
|
|
80
|
-
- 写作用域不重叠。一人一块文件。分不开的活排成依赖。
|
|
81
|
-
- 共享任务走 list、get、claim(带当前 revision)、干、complete。task 只是账本,不是唤醒通道。
|
|
82
|
-
- 等活就结束回合等通知:teammate 收工、或给你发消息,都会唤醒你。不要用 wait_agent 套循环,不要反复 list_agents 轮询。
|
|
83
|
-
- 最终验证自己做:跑测试、看 diff、核数字。不要只信回报。
|
|
84
|
-
|
|
85
|
-
判完代际,下面几条按对应那一代做,别混用:
|
|
86
|
-
|
|
87
|
-
- 等活的返回:老一代 wait_agent 是 team 作用域,等成员状态、消息和任务变更,没人在跑时立即返回 noProgress。新一代 wait_agent 只等你自己收件箱的下一条输入,只回 { timedOut },没有 noProgress:timedOut 为 true 就是等到超时,没人找你。
|
|
88
|
-
- 任务变更:老一代只唤醒正在 wait_agent 的调用方,空闲的你收不到通知;新一代连正在等的那次都不结束、不往收件箱塞消息、也不启动空闲成员。新一代要成员处理任务,必须 send_message 叫它。
|
|
89
|
-
- 成员模型:老一代 teammate 继承你的模型,spawn_teammate 没法单独指定。新一代可以按成员挑,subagent 传 provider、model、reasoning_effort。
|
|
90
|
-
- 名册:两代都用 list_agents。新一代返回整棵树,后代名字是从根算起的路径(如 reviewer/checker,根固定叫 lead),inactive 在两代都不代表活干完或失败。
|
|
91
|
-
- 成员上限:老一代读 agentTeams.config.maxMembers。新一代这个配置键已被拒绝,读不到上限,别报一个假数字。
|
|
92
|
-
|
|
93
|
-
等齐必需的 teammate 再给最终答复。
|
|
61
|
+
派活时要求成员第一步建 `.scratch/<effort>/worklog-<mate>.md`,收尾前补完最后一轮。
|
|
94
62
|
- id: agent-instructions
|
|
95
63
|
name: '@deepseek-ai/dsh-agent-instructions'
|
|
96
64
|
config:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-lead-mode",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "Lead mode for DSH: an agent preset, a working-method skill, a dependency self-check, and two reminders that tell you to enable the official Agent Teams. | 给 DSH 加 Lead 模式:预设、skill、依赖自检、两条前置提醒。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|