@yangdcm/dsh-expert-team 1.3.11 → 1.3.12
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/CHANGELOG.md +18 -0
- package/README.en.md +90 -22
- package/README.md +95 -27
- package/package.json +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
3
3
|
本包遵循[语义化版本](https://semver.org/lang/zh-CN/)。dsh 宿主版本线的对应关系写在
|
|
4
4
|
`package.json` 的 `engines.dsh` 与 `dsh.compatibility` 里,插件市场按它判断"这个插件跟你的宿主兼不兼容"。
|
|
5
5
|
|
|
6
|
+
## 1.3.12
|
|
7
|
+
|
|
8
|
+
**面向"可被 AI 检索与引用"的文档与元数据补齐**(纯文档/元数据,代码与 1.3.11 完全相同)。
|
|
9
|
+
|
|
10
|
+
- README(中英各自对等)新增:
|
|
11
|
+
- **速览 / At a glance** 事实表:包名 · npm · 仓库 · 宿主版本 · 运行时依赖 · Node · License · 一行安装 · 一行上手 · 过程产物路径 · 本机数据路径;
|
|
12
|
+
- 一句**同义词行**(dsh 插件 · DeepSeek Harness 多智能体 · agent team · orchestration · 角色化 subagent · DAG 并行 · 阶段门控 · 质量门禁 · 工件留痕)—— 自然成句,不堆砌关键词;
|
|
13
|
+
- **常见问题 / FAQ**:用自然语言问句覆盖「是什么 / 与"一个 agent 硬做"的区别 / 是否必须装别的插件 / 支持哪些 dsh 版本 / 数据放在哪 / 怎么卸载 / 会不会联网 / 支持哪些模型 / 不切 preset 能否用 / 打开很慢怎么办」;
|
|
14
|
+
- **术语 / Glossary**:12 角色 ↔ 代码 id、9 阶段 ↔ id(以 `lib/vocab.js` 为唯一真源)、主要工件清单;
|
|
15
|
+
- 主要小节标题改为**双语**(安装 / 依赖与推荐插件 / 快速上手 / 自定义预设 / 常见问题 / 术语)。
|
|
16
|
+
- **图片 alt 文本**全部换成带关键词的描述性文案(此前偏短 —— alt 是可机读文本,不该白丢)。
|
|
17
|
+
- 「快速上手」的命令块改为 **14 行速查表**(命令 + 一句话用途),措辞以 `lib/command-parse.js` 的 `USAGE` 为真源。
|
|
18
|
+
- 新增仓库根 [`llms.txt`](https://github.com/yangdcm/dsh-expert-team/blob/main/llms.txt):按 [llmstxt.org](https://llmstxt.org) 约定给 LLM 用的索引 —— 事实块(可逐条核对)+ 文档链接(只列仓库里真实存在的文件)+ 诚实边界;README 顶部加一行指路。
|
|
19
|
+
- `package.json` `keywords` 补 4 个:`role-based` / `spec-driven` / `dag` / `agentic-workflow`(`description` 未动)。
|
|
20
|
+
- GitHub 仓库 topics 补齐:`ai-agents` / `agent-orchestration` / `multi-agent-systems` / `llm` / `cordis` / `code-generation` / `workflow-automation`。
|
|
21
|
+
|
|
22
|
+
> 两条**没有做**的(有意):不写隐藏关键词/meta 标签(GitHub 会剥掉,且属取巧);不写夸大话术 —— 本节所有事实都能在仓库或实测里核到。
|
|
23
|
+
|
|
6
24
|
## 1.3.11
|
|
7
25
|
|
|
8
26
|
**`/state` 的 `subs` / `roles` 两段收口 —— 这次不靠预测,靠 1.3.10 留下的分步计时开关实测定位。**
|
package/README.en.md
CHANGED
|
@@ -6,7 +6,7 @@ English | [中文](README.md)
|
|
|
6
6
|
[](https://github.com/yangdcm/dsh-expert-team/blob/main/LICENSE)
|
|
7
7
|
[](https://github.com/yangdcm/dsh-expert-team/actions/workflows/ci.yml)
|
|
8
8
|
|
|
9
|
-

|
|
10
10
|
|
|
11
11
|
> **One sentence in, a gated team delivery out.** `/team build a payments module with login`
|
|
12
12
|
> assembles a 12-role expert team and runs
|
|
@@ -22,6 +22,25 @@ A plugin for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)
|
|
|
22
22
|
|
|
23
23
|
> Zero runtime dependencies. Recommended: also install **Hindsight** (cross-project memory) — see [Dependencies and recommended plugins](#dependencies-and-recommended-plugins).
|
|
24
24
|
|
|
25
|
+
## At a glance
|
|
26
|
+
|
|
27
|
+
| Item | Value |
|
|
28
|
+
|---|---|
|
|
29
|
+
| Package | `@yangdcm/dsh-expert-team` (public npm package) |
|
|
30
|
+
| Repository | <https://github.com/yangdcm/dsh-expert-team> |
|
|
31
|
+
| Host | [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) ≥ **0.1.5-rc.1** (`web` profile) |
|
|
32
|
+
| Runtime dependencies | **none** (`dependencies: {}`; `lib/` imports only sibling files and Node builtins) |
|
|
33
|
+
| Node.js | ≥ 20 |
|
|
34
|
+
| License | MIT |
|
|
35
|
+
| Install (one line) | `dsh plugin --profile web add @yangdcm/dsh-expert-team` |
|
|
36
|
+
| First run (one line) | switch the session to "Expert team mode" → `/team build a payments module with login` |
|
|
37
|
+
| Process artifacts | `<your workspace>/team/<run-id>/` (`SPEC.md` · `PLAN.md` · `TASKS.json` · `REVIEW.md` · `TEST.md` · `SUMMARY.md` …) |
|
|
38
|
+
| Machine-local data | `$DSH_HOME/expert-team/` (`settings.json` · `LEARNINGS.md` · `session-runs.json`) |
|
|
39
|
+
|
|
40
|
+
> A dsh plugin · a DeepSeek Harness multi-agent (agent team) orchestrator: role-based subagents · DAG parallelism · staged gates · quality gates · artifact trail.
|
|
41
|
+
>
|
|
42
|
+
> Index for LLMs and retrieval: [`llms.txt`](https://github.com/yangdcm/dsh-expert-team/blob/main/llms.txt)
|
|
43
|
+
|
|
25
44
|
## Who it is for
|
|
26
45
|
|
|
27
46
|
**A complete engineering department for small teams and solo builders** — no hiring, no assembling a team:
|
|
@@ -49,7 +68,7 @@ solo developers shipping a complete project · any long task where "someone inde
|
|
|
49
68
|
|
|
50
69
|
<sub>One honest boundary: this is **not** a human team — product-level and scope-level decisions remain yours.</sub>
|
|
51
70
|
|
|
52
|
-

|
|
71
|
+

|
|
53
72
|
|
|
54
73
|
<sub>Figure 1: the 9-phase gated pipeline. `spec-review` is a **hard gate** — if the SPEC.md
|
|
55
74
|
"boundaries and prohibitions" section is empty, the run does not advance (`lib/interception.js`).
|
|
@@ -96,32 +115,32 @@ answer them:
|
|
|
96
115
|
|
|
97
116
|
## What it looks like in action
|
|
98
117
|
|
|
99
|
-

|
|
100
119
|
|
|
101
120
|
<sub>Figure 2: **the full-screen canvas**. Look at the phase bar and progress, the roster (who is running, on which model), and the four views (people / tasks / artifacts / board) — one layer above the floating panel.</sub>
|
|
102
121
|
|
|
103
|
-

|
|
104
123
|
|
|
105
124
|
<sub>Figure 3: **the task dependency graph** — 11 tasks advance in parallel along the dependency DAG; 7 completed, 4 failed. A failure triggers `repair` plus **independent re-verification** (`repair-1 → review-2 → repair-2 → review-3`) until it passes or is honestly marked as needing revision — this is what the "rework does not converge" hard gate looks like in a real run.</sub>
|
|
106
125
|
|
|
107
|
-

|
|
108
127
|
|
|
109
128
|
<sub>Figure 4: **gate violations**. Look at the banner at the top — the violation and its refusal reason
|
|
110
129
|
(e.g. "SPEC.md's boundary section has entered `implement` but still has no 'expected rejection' row")
|
|
111
130
|
is decided by `lib/interception.js`, hooked onto the host's `tools/post-execute` waterfall, and surfaced
|
|
112
131
|
immediately. This is code, not a prompt reminder.</sub>
|
|
113
132
|
|
|
114
|
-

|
|
115
134
|
|
|
116
135
|
<sub>Figure 5: **the roster**. Look at the member list — who is running, on which model, and what it is doing;
|
|
117
136
|
expand a member for its tasks and artifacts. Models are configurable per role; heterogeneous models are used for cross-checking.</sub>
|
|
118
137
|
|
|
119
|
-

|
|
120
139
|
|
|
121
140
|
<sub>Figure 6: **phases and artifacts**. Look at the phase bar and the preview pane — the current phase, the phases
|
|
122
141
|
already passed, and the actual body of the artifact written in that phase (artifacts are the single source of truth; the overlay is just a view of them).</sub>
|
|
123
142
|
|
|
124
|
-

|
|
143
|
+

|
|
125
144
|
|
|
126
145
|
<sub>Figure 7: **settings**. Look at the official `Settings → Expert team` page — 18 settings, Chinese labels,
|
|
127
146
|
**saved on change and applied immediately** (caps, rounds, the tier gate and the oscillation detector are recomputed
|
|
@@ -271,20 +290,24 @@ dsh plugin --profile web add dshmarket
|
|
|
271
290
|
|
|
272
291
|
## Quick start
|
|
273
292
|
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
`/team
|
|
293
|
+
| Command | What it does |
|
|
294
|
+
|---|---|
|
|
295
|
+
| `/team <one-sentence goal>` | one sentence in, a one-shot team delivery out |
|
|
296
|
+
| `/team --persist <task>` | persistent live team: members can be re-tasked, survives sessions |
|
|
297
|
+
| `/team --one-shot <task>` | inverse override: run once even if persistence is the default |
|
|
298
|
+
| `/team --no-code <task>` | produce planning/review/test artifacts only, change no code |
|
|
299
|
+
| `/team --code <task>` | inverse override: touch code even if "artifacts only" is the default |
|
|
300
|
+
| `/team --confirm <task>` | create the run but do not dispatch; click "run" in the overlay |
|
|
301
|
+
| `/team --tier <tier> <task>` | pick the process tier (fast / standard / strict) |
|
|
302
|
+
| `/team status` | phase, members, model plan and live violations for every run |
|
|
303
|
+
| `/team models [<run>]` | cost / model plan per role |
|
|
304
|
+
| `/team canvas [<run>]` | render the team canvas (HTML); `--watch` refreshes live |
|
|
305
|
+
| `/team learn` | aggregate logs → `METRICS.md` + distilled lessons → `LEARNINGS.md` |
|
|
306
|
+
| `/team wait [<run>]` | in-flight task progress (non-blocking) |
|
|
307
|
+
| `/team resume <run-id>` | resume across sessions |
|
|
308
|
+
| `/team uninstall` | reclaim what this plugin laid down under `$DSH_HOME` |
|
|
309
|
+
|
|
310
|
+
Full command list (`/team codeindex` code index, `/team limit` quotas, `/team settle` cold-start settlement, …) — see `/team help`.
|
|
288
311
|
|
|
289
312
|
**Where artifacts land**
|
|
290
313
|
|
|
@@ -292,6 +315,51 @@ Full command list (`/team canvas` visual canvas, `/team codeindex` code index, `
|
|
|
292
315
|
- `$DSH_HOME/expert-team/` — machine-local preferences and cross-project experience: `settings.json`,
|
|
293
316
|
`session-runs.json`, `LEARNINGS.md`
|
|
294
317
|
|
|
318
|
+
## FAQ
|
|
319
|
+
|
|
320
|
+
**What exactly is it?** A plugin you install into your local `dsh`: `/team <one-sentence goal>` spins up a 12-role subagent team (product / architect / researcher / UI / backend / frontend / data / security / reviewer / QA / DevOps / docs), delivers through a 9-phase gated pipeline inside your workspace, and writes the whole process down as reviewable artifacts.
|
|
321
|
+
|
|
322
|
+
**How is it different from "one agent doing it all"?** It targets the three classic failure modes: **context drift** (hand-offs carry structured returns *and* artifact files, not chat history), **grading your own homework** (review and test are separate roles; a `qa`/`reviewer` verdict is required), and **rework that never converges** (over-budget rounds and unclosed items are stopped by hard gates and reported, not hidden).
|
|
323
|
+
|
|
324
|
+
**Do I have to install other plugins?** **No.** This plugin has zero runtime dependencies; Hindsight (cross-project memory) is **recommended** and `dsh-cost-meter` (cost view) is **optional** — the full flow runs without either. See [Dependencies and recommended plugins](#dependencies-and-recommended-plugins).
|
|
325
|
+
|
|
326
|
+
**Which dsh versions are supported?** `engines.dsh: >=0.1.5-rc.1` (developed and verified on 0.1.5-rc.1); earlier versions are untested. Node.js ≥ 20.
|
|
327
|
+
|
|
328
|
+
**Where does the data live?** Artifacts in your workspace: `<workspace>/team/<run-id>/`. Machine-local preferences and cross-project lessons: `$DSH_HOME/expert-team/` (`settings.json` / `LEARNINGS.md` / `session-runs.json`).
|
|
329
|
+
|
|
330
|
+
**How do I uninstall?** `/team uninstall` reclaims the copies this plugin laid down under `$DSH_HOME` (the skill is registered at runtime and never copied), then remove the plugin via the CLI or the marketplace. **Note:** `LEARNINGS.md` and friends under `$DSH_HOME/expert-team/` are **your data** and are kept.
|
|
331
|
+
|
|
332
|
+
**Does it go online by itself?** No. It only calls the tools the host gives the session (files, shell, subagents); network access depends on the tool face you grant.
|
|
333
|
+
|
|
334
|
+
**Which models does it use?** Whatever the host provides; this plugin supports **per-role model configuration** (the overlay shows which model each member runs), and heterogeneous models can be used for cross-checking.
|
|
335
|
+
|
|
336
|
+
**Does it work without the "Expert team mode" preset?** Yes. `/team` is a host-plane command and runs under any preset; it then falls back to the generic `subagent` (role personas go into the prompt), losing only the configuration-level boundaries (`toolFilter` / `maxDepth: 1`).
|
|
337
|
+
|
|
338
|
+
**Why is the overlay/canvas slow to open?** See [Troubleshooting](#troubleshooting) — since 1.3.5 `/state` no longer reads every sub-session log in full; upgrade to ≥ 1.3.5 and restart `dsh web`.
|
|
339
|
+
|
|
340
|
+
## Glossary
|
|
341
|
+
|
|
342
|
+
**Roles (12)**
|
|
343
|
+
|
|
344
|
+
| Term | Code id |
|
|
345
|
+
|---|---|
|
|
346
|
+
| Product | `pm` |
|
|
347
|
+
| Architect | `architect` |
|
|
348
|
+
| Researcher | `researcher` |
|
|
349
|
+
| UI/UX | `ui` |
|
|
350
|
+
| Backend | `backend` |
|
|
351
|
+
| Frontend | `frontend` |
|
|
352
|
+
| DBA | `dba` |
|
|
353
|
+
| Security | `sec` |
|
|
354
|
+
| Reviewer | `reviewer` |
|
|
355
|
+
| QA | `qa` |
|
|
356
|
+
| DevOps | `devops` |
|
|
357
|
+
| Docs | `docs` |
|
|
358
|
+
|
|
359
|
+
**Phases (9)**: `clarify` → `research` → `design` → `spec-review` (**hard gate**) → `方案确认` plan approval (**approval gate**, on by default, can be turned off) → `implement` → `review` → `test` → `deliver`. (Ids and Chinese labels come from the single source `lib/vocab.js`.)
|
|
360
|
+
|
|
361
|
+
**Key artifacts**: `SPEC.md` (spec and boundaries) · `RESEARCH.md` · `PLAN.md` · `TASKS.json` (task ledger) · `ROSTER.json` (staffing) · `STATE.json` · `AUTHORITY.md` (single source for write authority) · `REVIEW.md` · `TEST.md` · `SUMMARY.md` · `METRICS.md` (cost and timing) · `RUN.log.md`
|
|
362
|
+
|
|
295
363
|
## Layout
|
|
296
364
|
|
|
297
365
|
```
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[](https://github.com/yangdcm/dsh-expert-team/blob/main/LICENSE)
|
|
7
7
|
[](https://github.com/yangdcm/dsh-expert-team/actions/workflows/ci.yml)
|
|
8
8
|
|
|
9
|
-

|
|
10
10
|
|
|
11
11
|
> **一句话组队交付**:`/team 做一个带登录的支付模块` —— 自动组建 12 角色专家团,走
|
|
12
12
|
> 澄清 → 调研 → 设计 → 规格评审 → 方案确认 → 实现 → 审查 → 测试 → 交付 的门控流水线,
|
|
@@ -18,7 +18,26 @@
|
|
|
18
18
|
|---|---|---|---|---|
|
|
19
19
|
| 各带人设 / `toolFilter` / `maxDepth: 1` | 含 1 道硬门 + 1 道确认门 | 含 136 条变异目录与多组棘轮 | `dependencies: {}` | 无 bundler、无 `prepare` 钩子 |
|
|
20
20
|
|
|
21
|
-
> 零运行时依赖。推荐同时装 **Hindsight**(跨项目记忆)—— 见[依赖与推荐插件](
|
|
21
|
+
> 零运行时依赖。推荐同时装 **Hindsight**(跨项目记忆)—— 见[依赖与推荐插件](#依赖与推荐插件--dependencies-and-recommended-plugins)。
|
|
22
|
+
|
|
23
|
+
## 速览 / At a glance
|
|
24
|
+
|
|
25
|
+
| 项目 | 值 |
|
|
26
|
+
|---|---|
|
|
27
|
+
| 包名 | `@yangdcm/dsh-expert-team`(npm 公开包) |
|
|
28
|
+
| 仓库 | <https://github.com/yangdcm/dsh-expert-team> |
|
|
29
|
+
| 宿主 | [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) ≥ **0.1.5-rc.1**(`web` profile) |
|
|
30
|
+
| 运行时依赖 | **无**(`dependencies: {}`;`lib/` 只 import 同目录文件与 Node 内建) |
|
|
31
|
+
| Node.js | ≥ 20 |
|
|
32
|
+
| License | MIT |
|
|
33
|
+
| 安装(一行) | `dsh plugin --profile web add @yangdcm/dsh-expert-team` |
|
|
34
|
+
| 上手(一行) | 会话切到「专家团模式」→ `/team 做一个带登录的支付模块` |
|
|
35
|
+
| 过程产物 | `<你的工作区>/team/<run-id>/`(`SPEC.md` · `PLAN.md` · `TASKS.json` · `REVIEW.md` · `TEST.md` · `SUMMARY.md` …) |
|
|
36
|
+
| 本机数据 | `$DSH_HOME/expert-team/`(`settings.json` · `LEARNINGS.md` · `session-runs.json`) |
|
|
37
|
+
|
|
38
|
+
> dsh 插件 · DeepSeek Harness 多智能体(multi-agent)编排器:角色化 subagent 团队 · 依赖 DAG 并行 · 阶段门控 · 质量门禁 · 工件留痕。
|
|
39
|
+
>
|
|
40
|
+
> 给 LLM / 检索用的索引:[`llms.txt`](https://github.com/yangdcm/dsh-expert-team/blob/main/llms.txt)
|
|
22
41
|
|
|
23
42
|
## 为谁而做
|
|
24
43
|
|
|
@@ -46,7 +65,7 @@ UI/UX、前后端、数据、安全、评审、测试、运维、文档这 12
|
|
|
46
65
|
|
|
47
66
|
<sub>一句诚实边界:它**不是**人类团队 —— 产品级与范围级决策仍由你拍板。</sub>
|
|
48
67
|
|
|
49
|
-

|
|
50
69
|
|
|
51
70
|
<sub>图 1:9 阶段门控流水线。「规格评审」是**硬门** —— SPEC.md 的「边界与禁止项」没填就不放行(`lib/interception.js`);「方案确认」是默认开启的**确认门**(`identity.keepPlanGate`,可在设置里关掉);「实现」阶段按依赖 DAG **并行扇出**,多个实现者同时开工、各自只改自己那份文件。</sub>
|
|
52
71
|
|
|
@@ -87,27 +106,27 @@ $ /team 做一个带登录的支付模块
|
|
|
87
106
|
|
|
88
107
|
## 看一眼它在干什么
|
|
89
108
|
|
|
90
|
-

|
|
91
110
|
|
|
92
111
|
<sub>图 2:**全屏画布**。看阶段条与进度、团队编制(谁在跑、用哪个模型)、以及 `人 / 事 / 料 / 盘` 四个视角 —— 比浮层更完整的一层视图。</sub>
|
|
93
112
|
|
|
94
|
-

|
|
95
114
|
|
|
96
115
|
<sub>图 3:**任务依赖图** —— 11 个任务按依赖 DAG 并行推进;7 个完成、4 个失败。失败会触发 `repair` 与**独立复验**(`repair-1 → review-2 → repair-2 → review-3`),直到通过或被如实判为需修订 —— 这就是「返工不收敛」的硬门禁在真实运行里的样子。</sub>
|
|
97
116
|
|
|
98
|
-

|
|
99
118
|
|
|
100
119
|
<sub>图 4:**门禁违规**。看顶部那条横幅 —— 违规项与拒绝理由(例如"SPEC.md 的边界章节已进入 `implement` 但仍无任何一行填写")由 `lib/interception.js` 挂在宿主 `tools/post-execute` 上当场判出后推出,不是提示词提醒。</sub>
|
|
101
120
|
|
|
102
|
-

|
|
103
122
|
|
|
104
123
|
<sub>图 5:**角色编制**。看成员列表 —— 谁在跑、用哪个模型、当前在做什么;展开任一成员可看它的任务与产物。模型可按角色分别配置,异构模型用于交叉验证。</sub>
|
|
105
124
|
|
|
106
|
-

|
|
107
126
|
|
|
108
127
|
<sub>图 6:**阶段与工件**。看阶段条与预览区 —— 当前阶段、已过阶段、以及该阶段真正写下的工件正文(工件是唯一真源,浮层只是它的视图)。</sub>
|
|
109
128
|
|
|
110
|
-

|
|
111
130
|
|
|
112
131
|
<sub>图 7:**设置**。看官方 `设置 →「专家团」` 这一页 —— 18 个设置项、中文标签、**改动即保存并即时生效**(上限/轮次/档位门/振荡检测在进程内重算);值存在宿主命名空间 `expert-team`,随插件市场的备份/恢复一起走。</sub>
|
|
113
132
|
|
|
@@ -131,7 +150,7 @@ $ /team 做一个带登录的支付模块
|
|
|
131
150
|
还会堵住整个 `dsh web` 的事件循环。1.3.5 改成只查表(实测 0.0026 ms/次、零次 `readSession`),
|
|
132
151
|
**修复后的端到端数字待实机复测**;`state-perf-guard.test.mjs` 守着它不许回退。
|
|
133
152
|
|
|
134
|
-
## 安装
|
|
153
|
+
## 安装 / Installation
|
|
135
154
|
|
|
136
155
|
**要求**
|
|
137
156
|
|
|
@@ -190,7 +209,7 @@ pnpm install && dsh web
|
|
|
190
209
|
**排障**:预设丢了、或被同名预设占住 —— **重启一次 `dsh web` 即自愈**(插件加载会重铺),也可跑一次 `/team <任务>`。
|
|
191
210
|
细节见下面「排障」一节,其中包含那条最容易踩的坑:**不要**用 `expert-team` 这个 id 去「创建 preset」。
|
|
192
211
|
|
|
193
|
-
## 依赖与推荐插件
|
|
212
|
+
## 依赖与推荐插件 / Dependencies and recommended plugins
|
|
194
213
|
|
|
195
214
|
**必需**:无。本插件**零运行时依赖**(`package.json` 无 `dependencies` 字段;`lib/` 只 import 同目录文件与 Node 内建,
|
|
196
215
|
`client.js` 只 `require('react')`,由宿主提供),只要求宿主 `DeepSeek Harness ≥ 0.1.5-rc.1`(web profile)。
|
|
@@ -229,28 +248,77 @@ dsh plugin --profile web add dshmarket
|
|
|
229
248
|
> 装了 `dsh-browser` / `dsh-mcp-connector` / `@xmanrui/dsh-im` 之后,活动流里出现的就是它们真实的工具名与参数:
|
|
230
249
|
> **纯显示,装了更清楚,不装不影响团队功能。**
|
|
231
250
|
|
|
232
|
-
## 快速上手
|
|
233
|
-
|
|
234
|
-
```
|
|
235
|
-
/team 做一个带登录的支付模块 # 一句话组队(一次性,自动组队并交付)
|
|
236
|
-
/team --persist 重构订单模块 # 持久化活团队:成员可反复指挥、跨会话恢复
|
|
237
|
-
/team --one-shot 跑一个小活 # 反向覆盖:即使默认设了持久化,这次也只跑一次
|
|
238
|
-
/team --no-code 评审现有 API 设计 # 只产出计划/评审/测试工件,不改代码
|
|
239
|
-
/team --code 直接改 # 反向覆盖:即使默认设了"只出工件",这次也动代码
|
|
240
|
-
/team --confirm 大改版需求 # 先建 run、不自动派工,浮层点「执行」才开工
|
|
241
|
-
/team uninstall # 回收本插件铺到 $DSH_HOME 的副本(skill 默认走运行时注册,本就不落地)
|
|
242
|
-
/team status # 所有 run 的阶段、成员、模型计划、实时违规
|
|
243
|
-
/team resume <run-id> # 跨会话恢复
|
|
244
|
-
```
|
|
251
|
+
## 快速上手 / Quick start
|
|
245
252
|
|
|
246
|
-
|
|
247
|
-
|
|
253
|
+
| 命令 | 作用 |
|
|
254
|
+
|---|---|
|
|
255
|
+
| `/team <一句话目标>` | 一句话组队(一次性,自动组队并交付) |
|
|
256
|
+
| `/team --persist <任务>` | 持久化活团队:成员可反复指挥、跨会话恢复 |
|
|
257
|
+
| `/team --one-shot <任务>` | 反向覆盖:即使默认设了持久化,这次也只跑一次 |
|
|
258
|
+
| `/team --no-code <任务>` | 只产出计划/评审/测试工件,不改代码 |
|
|
259
|
+
| `/team --code <任务>` | 反向覆盖:即使默认"只出工件",这次也动代码 |
|
|
260
|
+
| `/team --confirm <任务>` | 先建 run、不自动派工,浮层点「执行」才开工 |
|
|
261
|
+
| `/team --tier <档位> <任务>` | 指定流程档位(快速档 / 标准档 / 严格档) |
|
|
262
|
+
| `/team status` | 所有 run 的阶段、成员、模型计划、实时违规 |
|
|
263
|
+
| `/team models [<run>]` | 每个角色的成本 / 模型计划 |
|
|
264
|
+
| `/team canvas [<run>]` | 生成可视化团队画布(HTML);`--watch` 实时刷新 |
|
|
265
|
+
| `/team learn` | 聚合日志 → `METRICS.md` + 蒸馏经验到 `LEARNINGS.md` |
|
|
266
|
+
| `/team wait [<run>]` | 查看在飞任务进展(不阻塞) |
|
|
267
|
+
| `/team resume <run-id>` | 跨会话恢复 |
|
|
268
|
+
| `/team uninstall` | 回收本插件铺到 `$DSH_HOME` 的副本(skill 走运行时注册,本就不落地) |
|
|
269
|
+
|
|
270
|
+
完整命令(`/team codeindex` 代码索引、`/team limit` 配额、`/team settle` 冷启动清算……)见 `/team help`。
|
|
248
271
|
|
|
249
272
|
**产物落在哪**
|
|
250
273
|
|
|
251
274
|
- `<你的工作区>/team/<run-id>/` —— `SPEC / PLAN / TASKS / ROSTER / STATE / REVIEW / TEST / SUMMARY / RUN.log.md` 等工件
|
|
252
275
|
- `$DSH_HOME/expert-team/` —— 本机偏好与跨项目经验:`settings.json`、`session-runs.json`、`LEARNINGS.md`
|
|
253
276
|
|
|
277
|
+
## 常见问题 / FAQ
|
|
278
|
+
|
|
279
|
+
**它到底是什么?** 一个装在本机 `dsh` 上的插件:`/team <一句话目标>` 会拉起一支 12 角色的 subagent 团队(产品 / 架构 / 调研 / UI / 前后端 / 数据 / 安全 / 评审 / 测试 / 运维 / 文档),按 9 阶段门控流程在你的工作区里交付,并把过程写成可复核的工件。
|
|
280
|
+
|
|
281
|
+
**和"直接让一个 agent 硬做"有什么区别?** 针对三个固定失败模式:**上下文漂移**(阶段与工件双通道交接)、**自己批自己**(评审/测试是独立角色,`qa`/`reviewer` 裁决才算过)、**返工不收敛**(超轮次与未闭环被硬门禁拦下并如实报错)。详见[为什么不是「一个 agent 硬做」](#为什么不是一个-agent-硬做)。
|
|
282
|
+
|
|
283
|
+
**必须再装别的插件吗?** **不必**。本插件零运行时依赖;Hindsight(跨项目记忆)是**推荐**、`dsh-cost-meter`(费用视图)是**可选**,不装也能跑完整个流程 —— 见[依赖与推荐插件](#依赖与推荐插件--dependencies-and-recommended-plugins)。
|
|
284
|
+
|
|
285
|
+
**支持哪些 dsh 版本?** `engines.dsh: >=0.1.5-rc.1`(开发与验证基线 0.1.5-rc.1);更早版本未经测试。Node.js ≥ 20。
|
|
286
|
+
|
|
287
|
+
**数据放在哪?** 工件在你的工作区 `<workspace>/team/<run-id>/`;本机偏好与跨项目经验在 `$DSH_HOME/expert-team/`(`settings.json` / `LEARNINGS.md` / `session-runs.json`)。
|
|
288
|
+
|
|
289
|
+
**怎么卸载?** `/team uninstall` 回收它铺到 `$DSH_HOME` 的副本(skill 走运行时注册、本就不落地),再从命令行或插件市场移除插件。**注意**:`$DSH_HOME/expert-team/` 下的 `LEARNINGS.md` 等是**你的数据**,卸载不会删。
|
|
290
|
+
|
|
291
|
+
**会自己联网吗?** 不会主动联网:它只调用宿主提供的工具(文件、shell、子代理);能不能联网取决于你给会话的工具面。
|
|
292
|
+
|
|
293
|
+
**支持哪些模型?** 由宿主决定;本插件支持**按角色分别配置模型**(浮层里能看到每个成员用哪个模型),异构模型可用于交叉验证。
|
|
294
|
+
|
|
295
|
+
**不切「专家团模式」preset 也能用吗?** 能。`/team` 是 host 平面命令,任何预设下都能跑;此时退回通用 `subagent`(角色人设写进 prompt),少的是配置层的边界保证(`toolFilter` / `maxDepth: 1`)。
|
|
296
|
+
|
|
297
|
+
**浮层/画布打开很慢?** 见[排障](#排障) —— 1.3.5 起 `/state` 不再逐条全量读子会话日志;升级到 ≥ 1.3.5 后重启 `dsh web` 即可。
|
|
298
|
+
|
|
299
|
+
## 术语 / Glossary
|
|
300
|
+
|
|
301
|
+
**角色(12)**
|
|
302
|
+
|
|
303
|
+
| 中文 | English | 代码标识 |
|
|
304
|
+
|---|---|---|
|
|
305
|
+
| 产品 | Product | `pm` |
|
|
306
|
+
| 架构 | Architect | `architect` |
|
|
307
|
+
| 调研 | Researcher | `researcher` |
|
|
308
|
+
| 界面设计 | UI/UX | `ui` |
|
|
309
|
+
| 后端 | Backend | `backend` |
|
|
310
|
+
| 前端 | Frontend | `frontend` |
|
|
311
|
+
| 数据 | DBA | `dba` |
|
|
312
|
+
| 安全审计 | Security | `sec` |
|
|
313
|
+
| 评审 | Reviewer | `reviewer` |
|
|
314
|
+
| 测试 | QA | `qa` |
|
|
315
|
+
| 运维 | DevOps | `devops` |
|
|
316
|
+
| 文档 | Docs | `docs` |
|
|
317
|
+
|
|
318
|
+
**阶段(9)**:`clarify` 澄清 → `research` 调研 → `design` 设计 → `spec-review` 规格评审(**硬门**)→ `方案确认` 方案确认(**确认门**,默认开、可关)→ `implement` 实现 → `review` 审查 → `test` 测试 → `deliver` 交付。(id 与中文名的唯一真源是 `lib/vocab.js`。)
|
|
319
|
+
|
|
320
|
+
**主要工件**:`SPEC.md`(规格与边界)· `RESEARCH.md`(调研)· `PLAN.md`(方案)· `TASKS.json`(任务台账)· `ROSTER.json`(编制)· `STATE.json`(状态)· `AUTHORITY.md`(写入权限单源)· `REVIEW.md`(评审)· `TEST.md`(测试)· `SUMMARY.md`(交付总结)· `METRICS.md`(成本与耗时)· `RUN.log.md`(运行日志)
|
|
321
|
+
|
|
254
322
|
## 插件结构
|
|
255
323
|
|
|
256
324
|
```
|
|
@@ -299,7 +367,7 @@ dsh 安装里插件自带的 Config schema(dsh 路径自动探测,可用 `DS
|
|
|
299
367
|
**浮层打开很慢 / 整个 `dsh web` 发卡?** 1.3.5 之前 `/state` 会逐条全量读子会话日志(实测热态 7–10 s、
|
|
300
368
|
冷态 283 s),并堵住事件循环。升级到 ≥ 1.3.5 后重启 `dsh web` 即可。
|
|
301
369
|
|
|
302
|
-
##
|
|
370
|
+
## 自定义预设 / Custom presets(想改专家团默认行为时)
|
|
303
371
|
|
|
304
372
|
- **创建**:`设置 → Agent 预设 → 用「创造模式」创作自定义预设`(其机制是"复制一份既有预设",产出落在 `$DSH_HOME/.agent-presets/<id>/`)。
|
|
305
373
|
- **要定制专家团,请以「专家团模式」为源、换一个你自己的 id**(例如 `my-team`):复制出来的目录天然带上 12 个角色工具与它的 skill 目录,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yangdcm/dsh-expert-team",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.12",
|
|
4
4
|
"description": "dsh「专家团」bundle:一句自然语言自动组建/持久化一支 12 角色多智能体团队,共享工作区协议 + 阶段门控编排 + 结构化交接 + 质量门禁/自动调度,实现者直接改代码并产出持久工件;带 live 团队浮层(质量门禁/覆盖率/工件预览)。 · Role-based multi-agent expert team for DeepSeek Harness: one sentence in, a staged and gated team delivery out.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,7 +16,11 @@
|
|
|
16
16
|
"workflow",
|
|
17
17
|
"subagent",
|
|
18
18
|
"code-review",
|
|
19
|
-
"quality-gate"
|
|
19
|
+
"quality-gate",
|
|
20
|
+
"role-based",
|
|
21
|
+
"spec-driven",
|
|
22
|
+
"dag",
|
|
23
|
+
"agentic-workflow"
|
|
20
24
|
],
|
|
21
25
|
"repository": {
|
|
22
26
|
"type": "git",
|