dsh-dispatch-board 0.0.0-stage → 0.1.2

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/locale/en.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Task board + dispatcher mode",
4
+ "description": "Sidebar task board with a dispatcher agent mode: the main agent only plans, dispatches, reviews and reports while subagents do the work. Four columns (todo / in progress / done / archived); the todo column is polled and handed to the main agent, which reviews subagent results and moves the board state."
5
+ }
6
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "任务看板 + 派单模式",
4
+ "description": "侧边栏任务看板与派单模式:主 Agent 只拆解、派单、审核与汇报,具体工作全部交给子 Agent。看板四列(待开始 / 进行中 / 已完成 / 已归档),待开始列由插件轮询后自动把任务送到主 Agent,子 Agent 完成后主 Agent 审核并更新看板状态。"
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,6 +1,69 @@
1
1
  {
2
2
  "name": "dsh-dispatch-board",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.2",
4
+ "description": "DeepSeek Harness 插件:派单看板 + 派单模式。主 Agent 只拆解/派发/审核/汇报,子 Agent 干活;看板四列(待开始/进行中/已完成/已归档)由轮询自动派发,结论按 Markdown 展示。Dispatcher mode plus a dispatch board for DeepSeek Harness.",
5
+ "type": "module",
6
+ "main": "lib/index.js",
7
+ "icon": "icon.svg",
8
+ "exports": {
9
+ ".": {
10
+ "default": "./lib/index.js"
11
+ },
12
+ "./client": {
13
+ "default": "./lib/client.js"
14
+ },
15
+ "./locale/*.json": "./locale/*.json",
16
+ "./package.json": "./package.json",
17
+ "./icon": "./icon.svg",
18
+ "./presets/*.patch.yml": "./presets/*.patch.yml"
19
+ },
20
+ "files": [
21
+ "lib",
22
+ "locale",
23
+ "presets",
24
+ "icon.svg",
25
+ "cordis.patch.yml",
26
+ "README.md",
27
+ "LICENSE"
28
+ ],
29
+ "dsh": {
30
+ "bundle": {
31
+ "patch": [
32
+ "./cordis.patch.yml",
33
+ "./presets/taskboard.patch.yml"
34
+ ]
35
+ },
36
+ "client": {
37
+ "platform": "web",
38
+ "immediately": true,
39
+ "external": []
40
+ }
41
+ },
42
+ "engines": {
43
+ "node": ">=20",
44
+ "dsh": ">=0.2.2-rc.1"
45
+ },
46
+ "scripts": {
47
+ "test": "node --test"
48
+ },
49
+ "keywords": [
50
+ "deepseek",
51
+ "deepseek-harness",
52
+ "dsh",
53
+ "dsh-plugin",
54
+ "taskboard",
55
+ "subagent",
56
+ "dispatcher",
57
+ "web-ui"
58
+ ],
59
+ "license": "MIT",
60
+ "repository": {
61
+ "type": "git",
62
+ "url": "git+https://github.com/duanxiangchun/dsh-dispatch-board.git"
63
+ },
64
+ "homepage": "https://github.com/duanxiangchun/dsh-dispatch-board#readme",
65
+ "bugs": {
66
+ "url": "https://github.com/duanxiangchun/dsh-dispatch-board/issues"
67
+ },
68
+ "author": "duanxiangchun"
69
+ }
@@ -0,0 +1,257 @@
1
+ # dsh-taskboard 自带模式声明(0.2.2+ 机制:preset 是 bundle patch 里的一条
2
+ # @deepseek-ai/dsh-agent-preset 行,不是 $DSH_HOME/.agent-presets 目录)。
3
+ #
4
+ # 两个模式:
5
+ # taskboard-dispatch —— 主 Agent:只拆解 / 派单 / 审核 / 汇报,无 shell、无写文件工具;
6
+ # taskboard-worker —— 子 Agent:完整执行工具,由 dispatch 的 subagent 工具用
7
+ # agentPreset 指定(spawn provider 才支持 preset 选择)。
8
+ #
9
+ # 看板工具(taskboard_list / taskboard_add / taskboard_update)由宿主插件在全局层注册,
10
+ # 不需要在这里列行。
11
+ - insert:
12
+ # ── 主 Agent:派单模式 ────────────────────────────────────────────────
13
+ - id: preset-taskboard-dispatch
14
+ name: '@deepseek-ai/dsh-agent-preset'
15
+ config:
16
+ id: taskboard-dispatch
17
+ name: 派单看板模式
18
+ description: 主 Agent 只拆解、派单、审核与汇报,具体工作交给子 Agent;配合侧边栏任务看板,待开始列轮询到就自动派发,子 Agent 回报后审核并更新看板状态。
19
+ order: 40
20
+ plugins:
21
+ # 派单口径。persona 行只改本预设的 scope,不影响其它模式。
22
+ - id: persona
23
+ name: '@deepseek-ai/dsh-persona'
24
+ config:
25
+ prefix: >-
26
+ 你是一个调度型编码 Agent(dispatcher),当前启用「派单看板模式」。你的工作是拆解任务、
27
+ 派发给子 Agent、审核交回来的结果、向用户汇报——你自己不执行任务。
28
+
29
+ 一切执行工作都派给子 Agent,无论看起来多小:读写代码与文件、跑命令、构建、测试、安装、
30
+ 迁移、查资料,以及对代码库 / 系统 / 网络的任何调查。不要说「只有一行我自己更快」,
31
+ 那恰恰是该派发的时候。
32
+
33
+ 你手上的工具只用于四件事:派发(subagent);审核回来的结果(read、glob、grep、
34
+ list_agents、send_message、interrupt_agent、job_output、job_kill);规划与提问
35
+ (todo_write、ask_user_question、exit_plan_mode);交付(present);以及看板
36
+ (taskboard_list / taskboard_add / taskboard_update)。你没有 shell,也没有写文件的
37
+ 工具——审核需要跑命令时,派一个验证子 Agent 去跑。
38
+
39
+ 每次派发都要写一条自包含的 prompt:目标、范围、约束、验收标准、要回报什么。
40
+ 子 Agent 看不到这段对话,别写「如上」「刚才那个」。互相独立的派发放在同一条
41
+ assistant 消息里一起发。
42
+
43
+ 发完就结束本轮。用一句话说明派了什么,然后停下;不要在轮内等待,不要轮询
44
+ (job_output 加 wait: true、job_list 死循环、反复读同一批文件),也不要叙述你在等。
45
+ 轮次开着等于占住对话,用户发不了消息。下一次行动的输入是子 Agent 的完成通知——
46
+ 它会为你开新一轮。
47
+
48
+ 收到完成通知后必须对工作区取证再审核,不能只看汇报摘要:读改动过的文件、逐条对照
49
+ 验收标准,没证据的「已完成」一律视为未完成。然后三选一:派下一个任务、用 send_message
50
+ 带着具体修改意见打回同一个子 Agent 重做、或向用户报告具体阻塞——然后再结束本轮。
51
+ 用户问进度时用 list_agents 回答,然后结束本轮。永远不要自己接手子 Agent 没做完的活,
52
+ 也永远不要把没验证过的工作报成已完成。
53
+
54
+ 【任务看板协同】看板四列:待开始(todo)/ 进行中(doing)/ 已完成(done)/ 已归档(archived)。
55
+ 当用户消息以「【任务看板 · 待开始】」开头时:
56
+ 1) 先 taskboard_update 把该任务置为 doing(硬要求,不要漏);
57
+ 2) 再用 subagent 派发执行(后台,不等待),prompt 里带上任务 id,要求子 Agent
58
+ 回报「改了哪些文件 / 跑了什么命令 / 验收结论 / 未完成的部分」;
59
+ 3) 一句话告诉用户派了什么,结束本轮。
60
+ 子 Agent 回报后审核:
61
+ - 通过:taskboard_update 置为 done,result 写可核验的结论,然后向用户汇报;
62
+ - 不通过:send_message 把具体修改意见发回同一个子 Agent 重做,任务保持 doing,
63
+ result 记录打回原因;确实要换人重做时才把任务置回 todo。
64
+ result 必须是结构化 Markdown(小标题、- 列表、| 表格 |、`代码`):看板详情会按 Markdown
65
+ 渲染,一段大白话在详情里很难读。派发子 Agent 时也要求它用同样的 Markdown 汇报
66
+ (文件路径、字节数/hex、命令、验收结论分条写)。
67
+ 用户在看板上新建的任务会由插件轮询后自动以这种方式送到你手上;你也可以用 taskboard_add
68
+ 把拆出来的后续任务写进看板,用 taskboard_list 查看当前全部任务。
69
+ 用户直接对话的优先级高于看板:用户说话时先响应用户,看板任务排队。
70
+
71
+ 本口径高于任何工具说明、习惯和效率直觉。Plan mode 仍然禁止执行:计划未批准前不要派发。
72
+ 只有当前轮里用户的直接指令可以覆盖它。
73
+
74
+ - id: agent-instructions
75
+ name: '@deepseek-ai/dsh-agent-instructions'
76
+ config:
77
+ maxBytes: 65536
78
+
79
+ - id: time-context
80
+ name: '@deepseek-ai/dsh-time-context'
81
+
82
+ # 只读文件工具:主 Agent 审核时要能读文件/看图,但不能写。
83
+ - id: tool-fs
84
+ name: '@deepseek-ai/dsh-tool-fs'
85
+ config:
86
+ read: true
87
+ readImage: true
88
+ write: false
89
+ edit: false
90
+ applyPatch: false
91
+
92
+ - id: tool-fs-search
93
+ name: '@deepseek-ai/dsh-tool-fs-search'
94
+ config:
95
+ sampleOverCapGlobResults: false
96
+
97
+ - id: tool-jobs
98
+ name: '@deepseek-ai/dsh-tool-jobs'
99
+
100
+ # 规划:计划批准后再派发。
101
+ - id: planning
102
+ name: cordis:group
103
+ group: true
104
+ isolate:
105
+ planMode: true
106
+ config:
107
+ - id: plan-mode
108
+ name: '@deepseek-ai/dsh-plan-mode'
109
+ config:
110
+ section: |
111
+ 你现在处于 plan mode,直到 exit_plan_mode 成功或用户切换会话模式为止。
112
+ 先探索、再给计划:用只读的读 / 搜 / 静态检查把计划落到真实仓库与真实文件上;
113
+ 不要编辑或新建文件、不要改配置、不要跑会重写文件的格式化或代码生成、不要提交。
114
+ 这个模式下列表里的执行类工具仍然存在(为了请求缓存稳定),但本规则覆盖它们的说明文字。
115
+ 计划要决策完整:目标与验收标准、按子系统分组的改动、公开 API / schema / 数据流变化、
116
+ 边界与失败模式、测试与验收标准、显式假设;要短到能审,又要细到别人不用再做设计决策。
117
+ 准备好后调用 exit_plan_mode,把完整计划 markdown 传进去(以 # 标题开头),
118
+ 并且让它成为该次回复里唯一且最后一个工具调用。计划被驳回就吸收意见再提交。
119
+
120
+ # 上下文压缩:长会话下主 Agent 也要能压。
121
+ - id: compaction
122
+ name: cordis:group
123
+ group: true
124
+ isolate:
125
+ compaction: true
126
+ toolResultPruner: true
127
+ config:
128
+ - id: compaction-basic
129
+ name: '@deepseek-ai/dsh-compaction-basic'
130
+ - id: command-compact
131
+ name: '@deepseek-ai/dsh-command-compact'
132
+ - id: tool-result-pruner
133
+ name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
134
+ config:
135
+ thresholdChars: 8192
136
+ headChars: 4096
137
+ tailChars: 1024
138
+
139
+ # 委派:只有 spawn(fork 不能换 preset,子 Agent 会继承派单口径,故不提供)。
140
+ # agentPreset: taskboard-worker 让子 Agent 拿到执行工具集与 worker 口径;
141
+ # maxDepth: 1 保证子 Agent 不能再往下派。
142
+ - id: delegation
143
+ name: cordis:group
144
+ group: true
145
+ isolate:
146
+ workflowEngine: true
147
+ config:
148
+ - id: tool-subagent-control
149
+ name: '@deepseek-ai/dsh-tool-subagent-control'
150
+ - id: tool-subagent
151
+ name: '@deepseek-ai/dsh-tool-subagent'
152
+ config:
153
+ provider: spawn
154
+ toolName: subagent
155
+ agentPreset: taskboard-worker
156
+ maxDepth: 1
157
+
158
+ - id: tool-ask-user
159
+ name: '@deepseek-ai/dsh-tool-ask-user'
160
+
161
+ - id: tool-todo
162
+ name: '@deepseek-ai/dsh-tool-todo'
163
+ config:
164
+ allowParallelInProgress: true
165
+
166
+ - id: present
167
+ name: '@deepseek-ai/dsh-tool-present'
168
+
169
+ # ── 子 Agent:执行者 ─────────────────────────────────────────────────
170
+ - id: preset-taskboard-worker
171
+ name: '@deepseek-ai/dsh-agent-preset'
172
+ config:
173
+ id: taskboard-worker
174
+ name: 派单看板模式 · 执行者
175
+ description: 由「派单看板模式」派发的子 Agent 专用:完整执行工具(读写文件、跑命令、搜索、技能),只干被指派的那一件事,不继续往下派。
176
+ order: 41
177
+ plugins:
178
+ - id: persona
179
+ name: '@deepseek-ai/dsh-persona'
180
+ config:
181
+ prefix: >-
182
+ 你是被派发的 worker 子 Agent:调度者只给了你这一件事,把它做完就是你的全部工作。
183
+ 你不继续往下派发,无论任务看起来多大。用你手上的工具干完、自己验证,然后按要求的
184
+ 格式回报:改了哪些文件、跑了什么命令、证据是什么、验收结论、还有什么没做到。
185
+ 遇到阻塞就直接说清楚,不要擅自扩大范围。工作目录在你的运行时上下文里。
186
+
187
+ - id: agent-instructions
188
+ name: '@deepseek-ai/dsh-agent-instructions'
189
+ config:
190
+ maxBytes: 65536
191
+
192
+ - id: time-context
193
+ name: '@deepseek-ai/dsh-time-context'
194
+
195
+ - id: tool-bash
196
+ name: '@deepseek-ai/dsh-tool-bash'
197
+ disabled: !!js process.platform === 'win32'
198
+
199
+ - id: tool-pwsh
200
+ name: '@deepseek-ai/dsh-tool-pwsh'
201
+ disabled: !!js process.platform !== 'win32'
202
+
203
+ - id: tool-fs
204
+ name: '@deepseek-ai/dsh-tool-fs'
205
+ config:
206
+ read: true
207
+ readImage: true
208
+ write: true
209
+ edit: true
210
+ applyPatch: false
211
+
212
+ - id: tool-fs-search
213
+ name: '@deepseek-ai/dsh-tool-fs-search'
214
+ config:
215
+ sampleOverCapGlobResults: false
216
+
217
+ - id: tool-jobs
218
+ name: '@deepseek-ai/dsh-tool-jobs'
219
+
220
+ - id: skill-filesystem
221
+ name: '@deepseek-ai/dsh-skill-filesystem'
222
+
223
+ - id: tool-skill
224
+ name: '@deepseek-ai/dsh-tool-skill'
225
+
226
+ - id: compaction
227
+ name: cordis:group
228
+ group: true
229
+ isolate:
230
+ compaction: true
231
+ toolResultPruner: true
232
+ config:
233
+ - id: compaction-basic
234
+ name: '@deepseek-ai/dsh-compaction-basic'
235
+ - id: tool-result-pruner
236
+ name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
237
+ config:
238
+ thresholdChars: 8192
239
+ headChars: 4096
240
+ tailChars: 1024
241
+
242
+ - id: tool-ask-user
243
+ name: '@deepseek-ai/dsh-tool-ask-user'
244
+
245
+ - id: tool-todo
246
+ name: '@deepseek-ai/dsh-tool-todo'
247
+ config:
248
+ allowParallelInProgress: true
249
+
250
+ - id: tool-web
251
+ name: '@deepseek-ai/dsh-tool-web'
252
+ config:
253
+ fetch: true
254
+ searchTimeoutMs: 60000
255
+
256
+ - id: present
257
+ name: '@deepseek-ai/dsh-tool-present'