dsh-agent-team-presets 0.1.8 → 0.2.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/README.md CHANGED
@@ -6,9 +6,16 @@
6
6
 
7
7
  English | [中文](<README.zh.md>)
8
8
 
9
- > **Community plugin v0.1.8** · [Release](https://github.com/bloodarea/dsh-agent-team-presets/releases/tag/v0.1.8)
9
+ > **Community plugin v0.2.0** · [Tag](https://github.com/bloodarea/dsh-agent-team-presets/tree/v0.2.0)
10
10
  >
11
- > Requires a compatible DeepSeek Harness deployment with Agent Teams enabled. This version supports DSH rc.2 and 0.2.1-rc.2 APIs; see [Requirements](#requirements). Prebuilt artifacts are included, so installation does not require a source build.
11
+ > This release targets **DeepSeek Harness 0.2.2-rc.1** and adds **individual member chat**: hover a Team in the composer, then select one member to run the Session as that member with its own role card, tools, Team Skills, and model route. It also moves member routing to `agent.model.select()` and per-step tool admission. Requires Agent Teams; keep 0.1.8 on older hosts. Prebuilt artifacts are included.
12
+
13
+ ### What's new in 0.2.0
14
+
15
+ - **Custom tool policies work on a PTC Session.** Applying a custom allow-list on a PTC preset registers the Harness native tool executor on that Session's Agent scope and never releases it; the deployment executor and every other Session keep PTC, and the Agent owns the registration for its whole life. The trade-off is explicit: that Session stops using `run_code` until it ends. A mount that fails, or a surface that still exposes the PTC transport, is refused without releasing anything, so a refused Session keeps its previous surface.
16
+ - **A spent member allowance is diagnosable.** The creation refusal now reports `N of M` roster slots occupied, names the occupants whose creation never became usable, and states that the Host roster is append-only with no removal API — so a Team that will never summon again is distinguishable from a busy one.
17
+
18
+ Carried over from 0.1.9: individual member chat from the composer, the Harness 0.2.2-rc.1 adaptation (`agent.model.select()` routes, per-step tool admission), and the built-in troubleshooting skill.
12
19
 
13
20
  <a id="project-introduction"></a>
14
21
  ## Overview
@@ -42,13 +49,15 @@ DeepSeek Harness already ships Agent Teams with multi-agent collaboration. In th
42
49
 
43
50
  - **Reusable Teams:** create, duplicate, edit, select, and delete named presets.
44
51
  - **Per-member model routes:** assign models and reasoning effort to individual roles without changing the captain's model.
52
+ - **Individual member chat:** hover a Team in the composer to inspect its captain and members; select one member to inject that member's role card, tool policy, Team Skills, and model route into the current Session.
45
53
  - **Independent tool policies:** choose all available tools or a custom allow-list for the captain and each member.
46
54
  - **Nine built-in presets across two series:** three software development scale teams (Lightweight, Standard, Full-Stack) and six specialized work-mode teams (Discovery, Planning, Workflow, Engineering, Security Audit, Research).
47
55
  - **Display metadata:** attach summary, tags, use cases, quick prompts (suggested tasks), and notes per Team. Strictly presentation-only: never injected into the runtime LLM context, saving context tokens.
48
56
  - **Local categories and search:** organize presets into custom categories via a dedicated category manager; instantly search over name, summary, tags, and use cases in both Settings and the Composer picker.
49
- - **Private Team Skill library:** import skill folders or ZIP archives into a plugin-owned store (`~/.dsh/team-skills`), completely isolated from global host skills.
57
+ - **Private Team Skill library:** import skill folders or ZIP archives into a plugin-owned store (`~/.dsh/agent-team-presets/team-skills`), completely isolated from global host skills.
50
58
  - **Per-agent skill isolation:** a 3-column assignment grid on member pages assigns skills to specific roles. Assigned skills are registered **strictly in that Agent's scope** when summoned—never leaked globally.
51
59
  - **Official built-in skills & local overrides:** ships two delivery skills (`github-repository-presentation`, `git-release-hygiene`) and two method skills (`grilling`, `research`), materialized into the private library and pre-bound to engineering, discovery, and research roles. Create local editable overrides and one-click restore them to the built-in copy (`恢复为插件内置版本`).
60
+ - **Plugin-level troubleshooting skill:** installing the plugin registers the global runtime skill `agent-team-presets-troubleshooting` (not a Team Skill, not per-Agent isolated). It covers Team application, member creation, tool-policy refusals, model-route evidence, Team Skill visibility, and install/upgrade failures.
52
61
  - **Guarded deletion with blocker modal:** deleting a skill bound to any role, in use by an active member, or required as a dependency is refused, with a confirmation modal detailing every blocking holder.
53
62
  - **Dependency verification & MCP boundaries:** checks declared CLI executables against host `PATH` (flags found/missing and refuses assignment when absent) and reports declared MCP servers (declarative display; never auto-connected or hard-blocking).
54
63
  - **Agent-facing tools:** root sessions provide `list_team_skills`, `assign_team_skill`, `unassign_team_skill`, and `remove_team_skill` alongside `get_team_preset` and `update_team_preset`.
@@ -78,15 +87,33 @@ DeepSeek Harness already ships Agent Teams with multi-agent collaboration. In th
78
87
  <a id="screenshots"></a>
79
88
  ## Screenshots
80
89
 
81
- The screenshots illustrate the v0.1.8 settings interface, Team Skill management, and composer workflow. Example provider and model names depend on your deployment.
90
+ The first screenshots show the 0.1.9 composer with individual member chat. The rest illustrate the settings interface, Team Skill management, and the earlier composer flow. Every provider, model, Team, and member name below is placeholder data from an isolated demo profile, not a real deployment.
82
91
 
83
- **Manage Teams: tabs, search, source and series filters**
92
+ **Browse and filter Teams in the composer**
84
93
 
85
- ![Team list in Settings](<docs/shots/teams-list.png>)
94
+ ![Composer Team picker](<docs/shots/0.2-composer-team-picker.png>)
95
+
96
+ **Hover a Team to open its member panel: captain, members, model route, and description**
97
+
98
+ ![Composer Team picker with the member panel](<docs/shots/0.2-composer-member-panel.png>)
99
+
100
+ Hovering a row never changes the selection. The captain row carries the `captain` badge and `session model`; each member row shows its own provider and model, or `session model` when it follows the Session.
101
+
102
+ **Click a member to talk to it alone: the trigger names it and the Session model follows its route**
103
+
104
+ ![Talking to one member in the composer](<docs/shots/0.2-composer-member-selected.png>)
105
+
106
+ The member's role card, tool policy, Team Skills, and model route are injected into this Session. The Team trigger reads `Team · member`, and the model control switches to the member's configured route — `Example Fast` here.
107
+
108
+ **Click the captain to select the Team normally: the Session model is left alone**
86
109
 
87
- **Choose a Team in the composer with search and source filters**
110
+ ![Selecting a captain in the composer](<docs/shots/0.2-composer-captain-selected.png>)
88
111
 
89
- ![Composer Team picker](<docs/shots/composer-picker.png>)
112
+ The captain always follows the Session, so selecting it changes the Team and the role card but never the model. The chip above keeps `Example Fast` from the previous member selection.
113
+
114
+ **Manage Teams: tabs, search, source and series filters (settings layout carried over from v0.1.8)**
115
+
116
+ ![Team list in Settings](<docs/shots/teams-list.png>)
90
117
 
91
118
  **Private Team Skill library with origin badges and actions**
92
119
 
@@ -148,65 +175,77 @@ The screenshots illustrate the v0.1.8 settings interface, Team Skill management,
148
175
  <a id="requirements"></a>
149
176
  ## Requirements
150
177
 
151
- - **DeepSeek Harness with the required rc.2 APIs.** Supported versions: `>=0.2.0-rc.2 <0.3.0`. The plugin manager enforces the declared `engines.dsh` range and refuses to install or activate the plugin outside it; the `@deepseek-ai/dsh-*` peer ranges serve package managers and are ignored by that check. This release was verified against **`0.2.1-rc.2`**; `0.2.0-rc.2` was not re-run for 0.1.8. See [package.json](<package.json>).
178
+ - **DeepSeek Harness `>=0.2.2-rc.1 <0.3.0`.** Verified against **`0.2.2-rc.1`**. Each member's route is recorded through `agent.model.select()` for fresh, forked, and cold-resumed execution; the captain keeps the conversation's model selection. The plugin manager enforces `engines.dsh` from [package.json](<package.json>).
179
+ - **Custom tool allow-lists work on PTC by giving that Session its own native surface.** The Host cannot restore an inherited executor after a release, so the plugin never releases one: on a PTC preset it mounts the Harness native tool executor on the Session's Agent scope and leaves the deployment executor alone. The trade-off is deliberate — that Session stops using `run_code` for the rest of its life, while other Sessions and the all-tools mode keep PTC. If mounting fails, or the surface still exposes the PTC transport afterwards, the application is refused and nothing is left behind, because no executor was ever released.
152
180
  - **Agent Teams enabled in the target profile.** The standard integration is `@deepseek-ai/dsh-experimental-agent-team-profile`, which supplies the Team service, tools, and Web roster. This plugin configures and manages Teams; it does not replace that subsystem.
153
181
  - **A Web or Desktop profile with Settings and the required client services.** Install into the profile you actually use, typically `web` for the Web GUI or `desktop` for Desktop.
154
182
  - **Durable storage and a continuable subagent backend for member execution.** Member creation is refused if the storage domain or selected execution backend is unavailable. The default backend names are `spawn` and `fork`.
155
183
 
156
- The plugin version (`0.1.8`) and the Harness version (`0.2.1-rc.2`, for example) are separate version lines.
184
+ The plugin version (`0.2.0`) and the Harness version (`0.2.2-rc.1`, for example) are separate version lines.
157
185
 
158
186
  <a id="use-this-package"></a>
159
187
  ## Install and upgrade
160
188
 
161
- ### One-click install in the GUI (Add plugin)
189
+ ### Install and upgrade
190
+
191
+ #### Option 1 — npm package (recommended; receives update prompts)
162
192
 
163
193
  Open **Global panels → Plugins → Add plugin**, paste the line below into **Package name or address**, and click **Install**:
164
194
 
165
195
  ```text
166
- dsh-agent-team-presets@0.1.8
196
+ dsh-agent-team-presets
167
197
  ```
168
198
 
169
199
  <!-- release-version: keep in sync with package.json version -->
170
200
 
171
- - **Registry** selects which npm source the download comes from. **Default registry** uses pnpm's own configuration. Pick **Official npm registry** to bypass a mirror, or **Custom address** for an internal or cloud mirror.
172
- - `@0.1.8` pins the version; omit it to install the latest published package.
173
- - The field accepts package names, `name@version`, `github:owner/repo`, tarball URLs, or absolute filesystem paths.
174
- - This package declares `dsh.bundle`, so the plugin manager automatically registers it as a profile bundle layer; do not add a loader entry by hand.
175
- - Once installed, reinstalling the same package identity is blocked. To switch sources (e.g. from GitHub to npm), uninstall first, then install the new spec.
176
- - After installation, reload or restart as prompted.
177
-
178
- ### Install from GitHub
179
-
180
- To receive repository update notifications:
201
+ Or install it from the CLI:
181
202
 
182
203
  ```sh
183
- dsh plugin --profile <profile> add github:bloodarea/dsh-agent-team-presets
204
+ dsh plugin --profile <profile> add dsh-agent-team-presets
184
205
  ```
185
206
 
186
207
  Replace `<profile>` with your active profile (e.g. `web` or `desktop`):
187
208
 
188
209
  ```sh
189
- dsh plugin --profile web add github:bloodarea/dsh-agent-team-presets
210
+ dsh plugin --profile web add dsh-agent-team-presets
190
211
  ```
191
212
 
192
- To pin the v0.1.8 release tag:
213
+ The plugin manager compares the installed version against npm's `latest` dist-tag, so every later release is offered as an update.
214
+
215
+ #### Option 2 — floating GitHub install
216
+
217
+ Tracks the repository's default branch; an update is offered when `package.json` on that branch moves to a higher version:
193
218
 
194
219
  ```sh
195
- dsh plugin --profile <profile> add github:bloodarea/dsh-agent-team-presets#v0.1.8
220
+ dsh plugin --profile <profile> add github:bloodarea/dsh-agent-team-presets
196
221
  ```
197
222
 
198
- ### npm release channel
223
+ #### Option 3 — reproducible pin (no update prompts)
199
224
 
200
- GitHub and [npm](https://www.npmjs.com/package/dsh-agent-team-presets) are separate release channels. Verify the published version on npm before installing:
225
+ ```text
226
+ dsh-agent-team-presets@0.2.0
227
+ dsh plugin --profile <profile> add github:bloodarea/dsh-agent-team-presets#v0.2.0
228
+ ```
229
+
230
+ A fixed version or tag reproduces exactly one release. **A `#tag` GitHub spec is only ever compared against that same tag, so the market never reports an update for it — upgrading means editing the spec by hand.** Use this form only when you need a frozen install.
231
+
232
+ #### Install notes
233
+
234
+ - **Registry** selects which npm source the download comes from. **Default registry** uses pnpm's own configuration. Pick **Official npm registry** to bypass a mirror, or **Custom address** for an internal or cloud mirror.
235
+ - The field accepts package names, `name@version`, `github:owner/repo`, tarball URLs, or absolute filesystem paths.
236
+ - This package declares `dsh.bundle`, so the plugin manager automatically registers it as a profile bundle layer; do not add a loader entry by hand.
237
+ - Once installed, reinstalling the same package identity is blocked. To switch sources (e.g. from GitHub to npm), uninstall first, then install the new spec.
238
+ - GitHub and [npm](https://www.npmjs.com/package/dsh-agent-team-presets) are separate release channels, so check the version this install would fetch before switching channels:
201
239
 
202
240
  ```sh
203
241
  npm view dsh-agent-team-presets version
204
- dsh plugin --profile <profile> add dsh-agent-team-presets
205
242
  ```
206
243
 
244
+ - After installation, reload or restart as prompted.
245
+
207
246
  ### Verify and upgrade safely
208
247
 
209
- After installation, follow the plugin manager's reload/restart prompts and navigate to **Settings → Agent team presets**. Verify that details display `dsh-agent-team-presets`, version `0.1.8`, and a running component.
248
+ After installation, follow the plugin manager's reload/restart prompts and navigate to **Settings → Agent team presets**. Verify that details display `dsh-agent-team-presets`, version `0.2.0`, and a running component.
210
249
 
211
250
  - Back up profile settings, Team definitions, and Session selections before upgrading.
212
251
  - When migrating from a development link, remove `@deepseek-ai/dsh-experimental-agent-team-presets` first before enabling the community package.
@@ -232,6 +271,15 @@ A preset role is a template. Summoning creates an instance with a unique target
232
271
 
233
272
  Selecting **No team** disarms the Team application once the captain and teammates become idle, restoring standard session contributions without changing the active model.
234
273
 
274
+ ### Talk to one member directly
275
+
276
+ Hover a Team row in the composer picker to open its member panel. The captain is listed first with the **Session model** route; every member follows with its configured provider · model and role description.
277
+
278
+ - Selecting the **captain** applies the Team normally: the captain leads, may summon members, and keeps the model the Session already selected.
279
+ - Selecting a **member** starts an individual conversation with that member. Its role card (name, role description, and standing system prompt) becomes the Session persona, its tool policy and assigned Team Skills apply, and the captain briefing plus `spawn_team_member` are **not** installed. The Session model switches to that member's configured provider/model and reasoning effort. A member with no configured route keeps the Session's current model.
280
+ - Switching back to the captain does not restore an earlier model: the captain always follows whatever model the Session currently has selected.
281
+ - Role and model changes wait for a running task to reach its boundary, exactly like a Team change. A selection naming a member that no longer exists is refused and the Session stays locked rather than silently falling back to the captain.
282
+
235
283
  ### Fields
236
284
 
237
285
  | Field | Purpose |
@@ -306,7 +354,7 @@ Each Team preset supports rich metadata:
306
354
 
307
355
  Traditional skills in Harness are typically registered into the global environment, exposing every skill to every agent. This plugin introduces a **Private Team Skill subsystem**:
308
356
 
309
- 1. **Private library:** Skills live in a plugin-managed directory (`~/.dsh/team-skills` or storage domain), isolated from host and profile skills.
357
+ 1. **Private library:** Skills live in a plugin-managed directory (`~/.dsh/agent-team-presets/team-skills` or storage domain), isolated from host and profile skills.
310
358
  2. **Per-Agent registration:** When a Team member is summoned, its assigned skills are registered **exclusively inside that member's Agent scope**. Other members and the captain cannot see or invoke them unless explicitly assigned.
311
359
  3. **Official built-in skills:** four shipped skills: delivery (`github-repository-presentation`, `git-release-hygiene`) and method (`grilling` — clarify before acting; `research` — primary sources only). Default bindings: engineering `executor`/`repository-specialist` receive the delivery skills; the Discovery captain receives `grilling`, its `technical-scout`/`product-scout` and the Research `evidence-scout` receive `research`.
312
360
  4. **Local overrides & one-click restore:** Built-in skills are read-only by default. Users can create an editable local copy ("本地副本"). If the built-in skill updates in a new plugin version, an `updateAvailable` status is displayed, and users can restore to the built-in copy (`恢复为插件内置版本`) with one click.
@@ -393,6 +441,10 @@ Configuration for "agent-team-presets" is overridden by a home patch or command-
393
441
 
394
442
  Check profile patches, `$DSH_HOME/cordis.patch.yml`, and `--patch` overlays for duplicate hand-written `agent-team-presets` declarations. Remove duplicate declarations while preserving Host-managed settings rows.
395
443
 
444
+ ### Built-in troubleshooting skill
445
+
446
+ The plugin registers `agent-team-presets-troubleshooting` on the global skill layer as soon as the profile composes the skill service. It is a host-level skill, not part of the private Team Skill library and not isolated per Agent: every Session can load it with the `skill` tool. Use it when a Team does not apply, a member cannot be summoned, a tool is refused, a member's model route is questioned, a Team Skill is invisible, or an install/upgrade behaves unexpectedly. The guide also states the evidence order: `configuredRoute`, `model/selection`, `request/header.config`, and the member snapshot `route` outrank `subagent/descriptor` or roster display values.
447
+
396
448
  ### Common issues
397
449
 
398
450
  | Symptom | What to check |
@@ -401,7 +453,8 @@ Check profile patches, `$DSH_HOME/cordis.patch.yml`, and `--patch` overlays for
401
453
  | Skill deletion button is disabled | The skill is protected: inspect the blocker list in the modal (bound roles or dependencies must be unassigned first). |
402
454
  | Skill assignment refused (`dependency-missing`) | A required executable declared by the skill is absent from host `PATH`. Note that declared MCP servers are reported for visibility and do not block assignment; ensure MCP servers are configured in your profile. |
403
455
  | Member creation refused | Check storage domain availability, subagent execution backend (`spawn`/`fork`), model quota, and concurrency limits. |
404
- | Model route display mismatch | In Harness rc.2, `list_agents.model` reports fallback metadata. Verify actual routing via `spawn_team_member`'s `configuredRoute` or session `request/header` logs. |
456
+ | Model route display mismatch | `list_agents.model` can return an inherited or fallback model even when the member actually runs on its configured route. Verify actual routing via `spawn_team_member`'s `configuredRoute`, `model/selection`, the first `request/header.config`, and the member snapshot `route`. |
457
+ | A selected member's route is unusable | The Host refuses the application and keeps the Session's previous composition and model instead of falling back to the captain. Correct that member's provider/model (and reasoning effort) in **Settings → Agent team presets**, then reselect it. The composer reports missing members but does not display a Host refusal; check the member route and the deployment's provider catalogue. |
405
458
 
406
459
  <a id="understand-the-implementation"></a>
407
460
  ## How it works
@@ -409,9 +462,9 @@ Check profile patches, `$DSH_HOME/cordis.patch.yml`, and `--patch` overlays for
409
462
  The plugin integrates via Cordis and Harness lifecycle extension points without patching host source code:
410
463
 
411
464
  1. **Profile configuration:** Stores Team presets, display metadata, local categories, and active session selections.
412
- 2. **Session application:** Installs captain persona, tool policy, and `spawn_team_member` at Agent scope.
465
+ 2. **Session application:** Installs the captain persona, tool policy, and `spawn_team_member` at Agent scope. Selecting one member instead installs that member's role card and tool policy, omits the captain briefing and member tool, and selects the member's configured model route on the Session.
413
466
  3. **Member creation & skill scoping:** Validates route and delegation limits, persists an instance snapshot, and launches the subagent. The serial `agent/created` hook injects model selection, persona, tool filters, and **assigned Team Skills strictly into that member's Agent scope**.
414
- 4. **Private skill manager:** Encapsulates skill storage (`~/.dsh/team-skills`), crash-recovery journaling, dependency resolution, and guarded deletion.
467
+ 4. **Private skill manager:** Encapsulates skill storage (`~/.dsh/agent-team-presets/team-skills`), crash-recovery journaling, dependency resolution, and guarded deletion.
415
468
 
416
469
  ### Source navigation
417
470
 
package/README.zh.md CHANGED
@@ -6,9 +6,16 @@
6
6
 
7
7
  [English](<README.md>) | 中文
8
8
 
9
- > **社区插件 v0.1.8** · [发布版本](https://github.com/bloodarea/dsh-agent-team-presets/releases/tag/v0.1.8)
9
+ > **社区插件 v0.2.0** · [标签](https://github.com/bloodarea/dsh-agent-team-presets/tree/v0.2.0)
10
10
  >
11
- > 需要启用 Agent Teams 的兼容 DeepSeek Harness 部署。本版本支持 DSH rc.2 与 0.2.1-rc.2 API,详见[环境要求](#requirements)。仓库已包含预构建产物,安装时无需从源码构建。
11
+ > 本版适配 **DeepSeek Harness 0.2.2-rc.1**,新增**与单个成员单独对话**:在输入区悬浮团队后点选成员,即可让当前会话以该成员的角色卡、工具权限、Team Skill 与模型路由运行。成员路由改用 `agent.model.select()`,工具激活按步评估。需要启用 Agent Teams;旧宿主请保留 0.1.8。仓库包含预构建产物,安装时无需构建。
12
+
13
+ ### 0.2.0 更新内容
14
+
15
+ - **PTC 会话可以用自定义工具策略了。** 在 PTC 预设下应用自定义白名单时,插件把宿主自带的 native 工具执行器注册到该会话的 Agent 作用域并从不释放:部署级执行器与其他会话仍走 PTC,注册归该 Agent 所有并随其销毁。代价是明确的 —— 该会话此后不再使用 `run_code`,直到它结束。挂载失败、或挂载后工具面仍暴露 PTC 传输时会拒绝应用,且因为从未释放,会话保留原有工具面。
16
+ - **名额耗尽时能看出是谁占的。** 召唤被拒时现在会报 `N/M` 个 roster 槽位被占用、按名字列出创建从未成功的占位,并说明宿主 roster 只追加、无移除 API —— 让"永远不能再召唤"的团队与"暂时忙"的团队可区分。
17
+
18
+ 沿用 0.1.9:输入区与单个成员单独对话、Harness 0.2.2-rc.1 适配(`agent.model.select()` 路由、按步工具激活)、内置排障 Skill。
12
19
 
13
20
  <a id="project-introduction"></a>
14
21
  ## 项目介绍
@@ -42,13 +49,15 @@ DeepSeek Harness 原生 Agent Teams 已经具备多智能体协作能力。在
42
49
 
43
50
  - **复用团队:** 新建、复制、编辑、选择和删除具名预设。
44
51
  - **成员独立路由:** 按角色分配模型与推理强度,不改变队长的模型。
52
+ - **单独对话:** 在输入区悬浮团队即可查看队长与队员;选择某个队员,可把该成员的角色卡、工具策略、Team Skill 与模型路由注入当前会话。
45
53
  - **独立工具策略:** 为队长和各成员选择所有可用工具,或设置自定义白名单。
46
54
  - **两大系列九大内置预设:** 涵盖研发规模系列(轻量研发团队、标准研发团队、全栈软件研发团队)与工作模式系列(需求探索、架构规划、既定工作流执行、工程研发协作、独立代码与安全审计、科研协作)。
47
55
  - **展示元数据:** 可为团队填写简介、标签、适用场景、推荐任务与备注。纯前端展示与检索使用,**绝不注入 LLM 运行时上下文**,节省上下文 Token。
48
56
  - **本地分类与检索:** 独立分类管理页支持创建、重命名、排序和删除自定义分类;支持按团队来源(全部/插件内置/自定义)与分类系列二级联动筛选,并在输入区与设置页实时全文搜索。
49
- - **插件私有 Team Skill 库:** 支持从文件夹或 ZIP 导入技能至插件私有目录(`~/.dsh/team-skills`),与宿主全局技能完全隔离。
57
+ - **插件私有 Team Skill 库:** 支持从文件夹或 ZIP 导入技能至插件私有目录(`~/.dsh/agent-team-presets/team-skills`),与宿主全局技能完全隔离。
50
58
  - **角色作用域技能隔离:** 成员编辑页提供专属技能三列卡片网格,分配给角色的技能在召唤时**严格仅在该 Agent 作用域内注册**,其他成员与队长均不可见。
51
59
  - **官方内置技能与本地副本:** 随包自带两个交付技能(`github-repository-presentation`、`git-release-hygiene`)和两个方法技能(`grilling`、`research`),默认物化入库并绑定给工程、需求探索与科研角色;支持创建本地可编辑副本,支持一键「恢复为插件内置版本」,并在官方更新时显示新版本提示。
60
+ - **插件级排障 Skill:** 安装插件后会在全局 skill 层注册 `agent-team-presets-troubleshooting`(不是 Team Skill,也不按 Agent 隔离)。覆盖团队不生效、成员无法召唤、工具策略被拒、模型路由取证、Team Skill 不可见以及安装/升级异常。
52
61
  - **强阻断保护的删除机制:** 若技能仍被任一团队角色绑定、被运行中成员使用或被其它技能依赖,拒绝删除;模态弹窗直观列出所有持有者(如 `标准研发团队 → executor`)并禁用确认按钮。
53
62
  - **依赖真实性检查与 MCP 边界:** 技能声明的 CLI 可执行程序会在宿主 PATH 上实际解析并标注「存在/缺失」(缺失时拒绝分配);如实展示声明的 MCP 服务(声明式展示,不自动拉起连接,不阻断分配)。
54
63
  - **面向智能体的会话工具:** 根会话提供 `list_team_skills`、`assign_team_skill`、`unassign_team_skill`、`remove_team_skill`,以及 `get_team_preset`、`update_team_preset`。
@@ -78,15 +87,33 @@ DeepSeek Harness 原生 Agent Teams 已经具备多智能体协作能力。在
78
87
  <a id="screenshots"></a>
79
88
  ## 界面预览
80
89
 
81
- 以下截图展示 v0.1.8 设置页团队管理、私有技能库与输入区选用流程。模型与工具取决于你的实际部署。
90
+ 前几张截图展示 0.1.9 输入区与「与单个成员单独对话」;其余展示设置页团队管理、私有技能库与早期输入区流程。图中所有提供方、模型、团队与成员名称都来自隔离演示环境的占位数据,不是真实部署。
82
91
 
83
- **管理已保存的团队:标签页、搜索框、来源与系列筛选**
92
+ **在输入区浏览与筛选团队**
84
93
 
85
- ![设置中的团队列表](<docs/shots/teams-list.png>)
94
+ ![会话输入区的团队选择器](<docs/shots/0.2-composer-team-picker.png>)
95
+
96
+ **悬浮团队即可展开成员面板:队长、成员、模型路由与角色描述**
97
+
98
+ ![会话输入区的团队选择器与成员面板](<docs/shots/0.2-composer-member-panel.png>)
99
+
100
+ 悬浮不会改变当前选择。队长一行带「队长」徽标并显示「会话模型」;每个成员一行显示自己的提供方与模型,未配置路由时显示「会话模型」。
101
+
102
+ **点击成员即与其单独对话:触发器标出成员,会话模型改为该成员路由**
103
+
104
+ ![在输入区与单个成员单独对话](<docs/shots/0.2-composer-member-selected.png>)
105
+
106
+ 该成员的角色卡、工具权限、Team Skill 与模型路由会注入本会话。触发器显示「团队 · 成员」,模型控件切换为该成员配置的路由(图中为 `Example Fast`)。
107
+
108
+ **点击队长则按常规方式选用团队:不改动会话模型**
86
109
 
87
- **在会话输入区选择团队:支持搜索与来源筛选**
110
+ ![在输入区选择队长](<docs/shots/0.2-composer-captain-selected.png>)
88
111
 
89
- ![会话输入区的团队选择器](<docs/shots/composer-picker.png>)
112
+ 队长始终跟随会话,因此点选队长只更换团队与角色卡,模型保持不变:上图仍保留上一次成员选择带来的 `Example Fast`。
113
+
114
+ **管理已保存的团队:标签页、搜索框、来源与系列筛选(设置页沿用 v0.1.8 版式)**
115
+
116
+ ![设置中的团队列表](<docs/shots/teams-list.png>)
90
117
 
91
118
  **私有 Team Skill 技能库:来源色标与操作入口**
92
119
 
@@ -148,65 +175,77 @@ DeepSeek Harness 原生 Agent Teams 已经具备多智能体协作能力。在
148
175
  <a id="requirements"></a>
149
176
  ## 环境要求
150
177
 
151
- - **具备所需 rc.2 API 的 DeepSeek Harness。** 支持版本:`>=0.2.0-rc.2 <0.3.0`。插件管理器按声明的 `engines.dsh` 范围判定,超出即拒绝安装或激活;`@deepseek-ai/dsh-*` 的 peer 范围供包管理器使用,该判定不读取它们。本版本实测环境为 **`0.2.1-rc.2`**;0.1.8 未在 `0.2.0-rc.2` 上复验。详见 [package.json](<package.json>)。
178
+ - **DeepSeek Harness `>=0.2.2-rc.1 <0.3.0`。** 本次实测版本为 **`0.2.2-rc.1`**。成员路由通过 `agent.model.select()` 写入各自会话,fresh、fork 与冷恢复均使用成员自己的配置;队长使用当前会话选择。插件管理器按 [package.json](<package.json>) 的 `engines.dsh` 判定兼容性。
179
+ - **自定义工具白名单在 PTC 下通过给该会话一个自己的 native 面来工作。** 宿主无法在释放执行器后恢复继承,所以插件从不主动释放:在 PTC 预设下它把宿主自带的 native 工具执行器挂到该会话的 Agent 作用域,部署级执行器保持原样。代价是明确的:该会话此后不再使用 `run_code`,而其他会话与「所有工具」模式继续走 PTC。若挂载失败、或挂载后工具面仍暴露 PTC 传输,则应用被拒绝且不留残留 —— 因为从未释放过任何执行器。
152
180
  - **目标 profile 已启用 Agent Teams。** 标准集成是 `@deepseek-ai/dsh-experimental-agent-team-profile`,提供团队服务、工具和 Web 名册。本插件负责配置与管理团队,不替代该子系统。
153
181
  - **具备 Settings 与所需客户端服务的 Web 或 Desktop profile。** 安装到实际使用的 profile:Web GUI 通常为 `web`,Desktop 通常为 `desktop`。
154
182
  - **成员执行所需的持久存储与支持恢复执行的子智能体后端。** 缺少 storage domain 或所选执行后端时,插件会拒绝创建成员。默认后端名为 `spawn` 和 `fork`。
155
183
 
156
- 插件版本(`0.1.8`)和 Harness 版本(如 `0.2.1-rc.2`)是不同的版本线。
184
+ 插件版本(`0.2.0`)和 Harness 版本(如 `0.2.2-rc.1`)是不同的版本线。
157
185
 
158
186
  <a id="use-this-package"></a>
159
187
  ## 安装与升级
160
188
 
161
- ### 在 GUI 中一键安装(添加插件)
189
+ ### 安装与升级
190
+
191
+ #### 方式一 —— npm 包(推荐,会收到更新提示)
162
192
 
163
193
  打开 **全局面板 → 插件 → 添加插件**,把下面这一行粘贴到「包名或地址」,点击 **安装**:
164
194
 
165
195
  ```text
166
- dsh-agent-team-presets@0.1.8
196
+ dsh-agent-team-presets
167
197
  ```
168
198
 
169
199
  <!-- release-version: 与 package.json 的 version 同步 -->
170
200
 
171
- - **安装源**决定从哪个 npm 源下载。「默认安装源」指 pnpm 自身配置所指的源。要绕开镜像选「npm 官方源」;要换内网私有源或云厂商镜像选「自定义地址」。
172
- - `@0.1.8` 指定版本;想装 npm 上最新的已发布版本,去掉它只填 `dsh-agent-team-presets`。
173
- - 输入框支持包名、`name@version`、`github:作者/仓库`、tarball 地址或本地绝对路径。
174
- - 本包声明了自己的 `dsh.bundle`,安装后由插件管理器登记为 profile 的 bundle 层,不要再手写 loader 条目。
175
- - 已安装本包时无法重复安装同一包名。要更换安装来源(如由 GitHub 改为 npm),先在插件列表中卸载,再粘贴新规格安装。
176
- - 安装完成后按提示重新加载或重启应用。
177
-
178
- ### 从 GitHub 安装
179
-
180
- 需要接收仓库新版本更新提示时:
201
+ 也可以用命令行安装:
181
202
 
182
203
  ```sh
183
- dsh plugin --profile <profile> add github:bloodarea/dsh-agent-team-presets
204
+ dsh plugin --profile <profile> add dsh-agent-team-presets
184
205
  ```
185
206
 
186
207
  将 `<profile>` 替换为实际运行的 profile(例如 `web` 或 `desktop`):
187
208
 
188
209
  ```sh
189
- dsh plugin --profile web add github:bloodarea/dsh-agent-team-presets
210
+ dsh plugin --profile web add dsh-agent-team-presets
190
211
  ```
191
212
 
192
- 需要固定 v0.1.8 发布标签时:
213
+ 插件管理器会把已安装版本与 npm 的 `latest` 标签比较,之后每有新版本都会提示更新。
214
+
215
+ #### 方式二 —— 浮动 GitHub 安装
216
+
217
+ 跟随仓库默认分支;该分支上的 `package.json` 版本升高后就会提示更新:
193
218
 
194
219
  ```sh
195
- dsh plugin --profile <profile> add github:bloodarea/dsh-agent-team-presets#v0.1.8
220
+ dsh plugin --profile <profile> add github:bloodarea/dsh-agent-team-presets
196
221
  ```
197
222
 
198
- ### npm 发布渠道
223
+ #### 方式三 —— 可复现的固定版本(收不到更新提示)
199
224
 
200
- GitHub 与 [npm](https://www.npmjs.com/package/dsh-agent-team-presets) 是独立发布渠道。从 npm 安装前先确认已发布版本:
225
+ ```text
226
+ dsh-agent-team-presets@0.2.0
227
+ dsh plugin --profile <profile> add github:bloodarea/dsh-agent-team-presets#v0.2.0
228
+ ```
229
+
230
+ 固定版本号或固定标签只能复现一个确定的发布。**带 `#标签` 的 GitHub 规格只会与同一个标签比对,市场永远不会提示更新——升级只能手动改规格。** 只在确实需要冻结安装时使用这种形式。
231
+
232
+ #### 安装说明
233
+
234
+ - **安装源**决定从哪个 npm 源下载。「默认安装源」指 pnpm 自身配置所指的源。要绕开镜像选「npm 官方源」;要换内网私有源或云厂商镜像选「自定义地址」。
235
+ - 输入框支持包名、`name@version`、`github:作者/仓库`、tarball 地址或本地绝对路径。
236
+ - 本包声明了自己的 `dsh.bundle`,安装后由插件管理器登记为 profile 的 bundle 层,不要再手写 loader 条目。
237
+ - 已安装本包时无法重复安装同一包名。要更换安装来源(如由 GitHub 改为 npm),先在插件列表中卸载,再粘贴新规格安装。
238
+ - GitHub 与 [npm](https://www.npmjs.com/package/dsh-agent-team-presets) 是独立发布渠道,换渠道前先确认这次会装到哪个版本:
201
239
 
202
240
  ```sh
203
241
  npm view dsh-agent-team-presets version
204
- dsh plugin --profile <profile> add dsh-agent-team-presets
205
242
  ```
206
243
 
244
+ - 安装完成后按提示重新加载或重启应用。
245
+
207
246
  ### 确认安装并安全升级
208
247
 
209
- 安装成功后,按插件管理器的提示重新加载或重启,打开 **设置 → 智能体团队预设**。确认插件详情显示 `dsh-agent-team-presets`、版本 `0.1.8`,且组件处于运行中状态。
248
+ 安装成功后,按插件管理器的提示重新加载或重启,打开 **设置 → 智能体团队预设**。确认插件详情显示 `dsh-agent-team-presets`、版本 `0.2.0`,且组件处于运行中状态。
210
249
 
211
250
  - 升级前备份 profile 设置、团队定义与会话选择记录。
212
251
  - 从开发链接迁移时,先通过插件管理器移除 `@deepseek-ai/dsh-experimental-agent-team-presets`,再启用社区包。
@@ -232,6 +271,15 @@ dsh plugin --profile <profile> add dsh-agent-team-presets
232
271
 
233
272
  选择 **不使用团队(No team)** 会在队长与队员全部空闲后卸载团队应用,恢复常规会话行为,不改变已选模型。
234
273
 
274
+ ### 与单个成员单独对话
275
+
276
+ 在输入区团队选择器中悬浮某个团队,会展开成员面板:队长排在最前,模型一栏显示 **会话模型**;其后是各队员的「提供方 · 模型」与角色描述。
277
+
278
+ - 选择 **队长** 即常规应用该团队:队长主导本会话、可召唤队员,并继续使用会话已选的模型。
279
+ - 选择 **队员** 即与该成员单独对话:该成员的角色卡(名称、角色描述、独立系统提示词)成为本会话 persona,其工具策略与已分配的 Team Skill 生效,不再安装队长简报与 `spawn_team_member`;同时会话模型自动切换为该成员配置的提供方/模型与推理强度。未配置路由的成员保持会话当前模型。
280
+ - 再切回队长不会恢复旧模型:队长始终跟随会话当前所选模型。
281
+ - 角色与模型的切换和团队切换一样,会等待运行中的任务到达边界;若所选成员已被删除,则拒绝该选择并保持会话锁定,绝不静默回退到队长。
282
+
235
283
  ### 字段说明
236
284
 
237
285
  | 字段 | 用途 |
@@ -306,7 +354,7 @@ dsh plugin --profile <profile> add dsh-agent-team-presets
306
354
 
307
355
  传统 Harness 技能一般注册到全局环境,所有智能体均可看到。本插件开创性地实现了 **Team Skill 私有技能子系统**:
308
356
 
309
- 1. **私有存储库:** 技能统一存放在插件专属目录(`~/.dsh/team-skills` 或独立存储域),不污染宿主全局技能列表。
357
+ 1. **私有存储库:** 技能统一存放在插件专属目录(`~/.dsh/agent-team-presets/team-skills` 或独立存储域),不污染宿主全局技能列表。
310
358
  2. **角色 Agent 作用域隔离:** 成员被队长召唤时,其绑定的专属技能**严格仅在该成员的 Agent Scope 内注册**。其他队员和队长既无法看到、也无法调用该技能。
311
359
  3. **官方内置技能:** 随包提供 4 个内置技能——交付型 `github-repository-presentation`、`git-release-hygiene`,方法型 `grilling`(先澄清再动手)与 `research`(只认一手来源)。默认绑定:工程团队的 `executor`/`repository-specialist` 获得交付技能;需求探索队长获得 `grilling`,其 `technical-scout`/`product-scout` 与科研协作 `evidence-scout` 获得 `research`。
312
360
  4. **本地副本与一键恢复:** 内置技能默认只读,支持一键「创建本地可编辑副本」修改文件。插件版本升级时会自动提示 `updateAvailable`,支持随时「恢复为插件内置版本」。
@@ -393,6 +441,10 @@ Configuration for "agent-team-presets" is overridden by a home patch or command-
393
441
 
394
442
  请检查 profile patch、`$DSH_HOME/cordis.patch.yml` 和 `--patch` 中是否有重复的手写 `agent-team-presets` 声明。移除重复项并保留 Host 管理的设置行。
395
443
 
444
+ ### 插件内置排障 Skill
445
+
446
+ 插件在 profile 组合出 skill 服务后,会在全局 skill 层注册 `agent-team-presets-troubleshooting`。它是宿主级 skill,不属于私有 Team Skill 库,也不按 Agent 隔离;所有会话都可以通过 `skill` 工具加载。适用于团队不生效、成员无法召唤、工具被拒、成员模型路由存疑、Team Skill 不可见或安装/升级异常。该 Skill 也写明了证据优先级:`configuredRoute`、`model/selection`、`request/header.config` 和成员快照 `route` 高于 `subagent/descriptor` 或名册展示值。
447
+
396
448
  ### 常见问题
397
449
 
398
450
  | 现象 | 排查方向 |
@@ -401,7 +453,8 @@ Configuration for "agent-team-presets" is overridden by a home patch or command-
401
453
  | 技能删除按钮置灰不可点击 | 技能受保护:查看弹窗中的阻断列表,需先在对应团队角色中取消分配。 |
402
454
  | 技能分配被拒绝 (`dependency-missing`) | 技能声明的某个必需命令行程序在宿主 `PATH` 上未找到。注意声明的 MCP 服务仅供展示参考,不阻断分配;如需使用请确认 profile 中已正确配置并连接对应 MCP。 |
403
455
  | 成员创建被拒绝 | 检查持久存储、执行后端(`spawn`/`fork`)、模型配额及并发限额。 |
404
- | 成员显示的模型与配置不一致 | 在 Harness rc.2 中,`list_agents.model` 读取 fallback 元数据。实际路由以 `spawn_team_member` 返回的 `configuredRoute` 或会话请求日志为准。 |
456
+ | 成员显示的模型与配置不一致 | `list_agents.model` 可能返回继承或 fallback 模型,即使成员实际已按配置路由运行。实际路由以 `spawn_team_member` 的 `configuredRoute`、`model/selection`、首条 `request/header.config` 和成员快照 `route` 为准。 |
457
+ | 所选成员的模型路由不可用 | Host 会拒绝应用并保留会话原有组合与模型,不会静默回退到队长。请在 **设置 → 智能体团队预设** 中修正该成员的提供方/模型(及推理强度)后重新选择。输入区只提示成员不存在,不显示 Host 拒绝原因;请同时确认成员路由与部署的提供方目录。 |
405
458
 
406
459
  <a id="understand-the-implementation"></a>
407
460
  ## 工作原理
@@ -409,9 +462,9 @@ Configuration for "agent-team-presets" is overridden by a home patch or command-
409
462
  插件通过 Cordis 与 Harness 生命周期扩展点深度协作,无需修改宿主源码:
410
463
 
411
464
  1. **Profile 配置:** 保存团队预设、展示元数据、本地分类与活动会话选择。
412
- 2. **会话应用:** 在 Agent 作用域安装队长 persona、工具策略和 `spawn_team_member`。
465
+ 2. **会话应用:** 在 Agent 作用域安装队长 persona、工具策略和 `spawn_team_member`;选择单个成员时改为安装该成员的角色卡与工具策略,不安装队长简报与成员工具,并把该成员配置的模型路由设为会话当前模型。
413
466
  3. **成员创建与技能注入:** 校验路由与委派配额,保存持久快照并召唤子会话。串行 `agent/created` 钩子在首次请求前,将模型路由、persona、工具白名单以及**专属 Team Skill 严格注入该成员的 Agent 作用域**。
414
- 4. **私有技能管理器:** 负责技能目录存储(`~/.dsh/team-skills`)、防崩溃事务日志、依赖解析与删除阻断核验。
467
+ 4. **私有技能管理器:** 负责技能目录存储(`~/.dsh/agent-team-presets/team-skills`)、防崩溃事务日志、依赖解析与删除阻断核验。
415
468
 
416
469
  ### 源码导航
417
470