dsh-agent-team-presets 0.1.8 → 0.1.9

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.1.9** · [Tag](https://github.com/bloodarea/dsh-agent-team-presets/tree/v0.1.9)
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.1.9
14
+
15
+ - **Talk to one member directly.** The composer's Team picker now shows a member panel on hover. Selecting a member injects its role card, tool policy, Team Skills, and model route into the current Session; selecting the captain keeps the Session model unchanged.
16
+ - **DeepSeek Harness 0.2.2-rc.1.** Member routes are recorded through `agent.model.select()` and tool admission is evaluated per step. The plugin refuses an unusable member route before applying anything instead of falling back to the captain.
17
+ - **Custom tool policies are native-only.** On PTC presets the plugin preserves the deployment's executor and explicitly refuses custom allow-lists; PTC still works with the all-tools mode.
18
+ - **Built-in troubleshooting skill.** The global `agent-team-presets-troubleshooting` skill explains Team application, member creation, route evidence, Team Skill visibility, and install/upgrade failures.
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,12 +175,13 @@ 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 require a native Agent preset (standard or cordis).** This Host cannot restore an inherited executor after a temporary override, so the plugin preserves the deployment's executor and explicitly refuses custom policies on PTC. PTC remains available with the all-tools mode. Select a native Agent preset before using custom policies.
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.1.9`) 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
@@ -163,13 +191,15 @@ The plugin version (`0.1.8`) and the Harness version (`0.2.1-rc.2`, for example)
163
191
  Open **Global panels → Plugins → Add plugin**, paste the line below into **Package name or address**, and click **Install**:
164
192
 
165
193
  ```text
166
- dsh-agent-team-presets@0.1.8
194
+ github:bloodarea/dsh-agent-team-presets#v0.1.9
167
195
  ```
168
196
 
169
197
  <!-- release-version: keep in sync with package.json version -->
170
198
 
199
+ 0.1.9 is currently distributed from the GitHub tag. npm still publishes 0.1.8; use the npm channel below once 0.1.9 is published there.
200
+
171
201
  - **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.
202
+ - `#v0.1.9` pins the GitHub tag; `@0.1.9` works on npm after the next npm publish. Omit the pin to install the latest published package.
173
203
  - The field accepts package names, `name@version`, `github:owner/repo`, tarball URLs, or absolute filesystem paths.
174
204
  - 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
205
  - 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.
@@ -189,15 +219,15 @@ Replace `<profile>` with your active profile (e.g. `web` or `desktop`):
189
219
  dsh plugin --profile web add github:bloodarea/dsh-agent-team-presets
190
220
  ```
191
221
 
192
- To pin the v0.1.8 release tag:
222
+ To pin the v0.1.9 release tag:
193
223
 
194
224
  ```sh
195
- dsh plugin --profile <profile> add github:bloodarea/dsh-agent-team-presets#v0.1.8
225
+ dsh plugin --profile <profile> add github:bloodarea/dsh-agent-team-presets#v0.1.9
196
226
  ```
197
227
 
198
228
  ### npm release channel
199
229
 
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:
230
+ GitHub and [npm](https://www.npmjs.com/package/dsh-agent-team-presets) are separate release channels. npm currently publishes 0.1.8; 0.1.9 is available from the GitHub tag until the npm publish follows. Verify the published version before installing:
201
231
 
202
232
  ```sh
203
233
  npm view dsh-agent-team-presets version
@@ -206,7 +236,7 @@ dsh plugin --profile <profile> add dsh-agent-team-presets
206
236
 
207
237
  ### Verify and upgrade safely
208
238
 
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.
239
+ 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.9`, and a running component.
210
240
 
211
241
  - Back up profile settings, Team definitions, and Session selections before upgrading.
212
242
  - When migrating from a development link, remove `@deepseek-ai/dsh-experimental-agent-team-presets` first before enabling the community package.
@@ -232,6 +262,15 @@ A preset role is a template. Summoning creates an instance with a unique target
232
262
 
233
263
  Selecting **No team** disarms the Team application once the captain and teammates become idle, restoring standard session contributions without changing the active model.
234
264
 
265
+ ### Talk to one member directly
266
+
267
+ 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.
268
+
269
+ - Selecting the **captain** applies the Team normally: the captain leads, may summon members, and keeps the model the Session already selected.
270
+ - 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.
271
+ - Switching back to the captain does not restore an earlier model: the captain always follows whatever model the Session currently has selected.
272
+ - 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.
273
+
235
274
  ### Fields
236
275
 
237
276
  | Field | Purpose |
@@ -306,7 +345,7 @@ Each Team preset supports rich metadata:
306
345
 
307
346
  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
347
 
309
- 1. **Private library:** Skills live in a plugin-managed directory (`~/.dsh/team-skills` or storage domain), isolated from host and profile skills.
348
+ 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
349
  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
350
  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
351
  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 +432,10 @@ Configuration for "agent-team-presets" is overridden by a home patch or command-
393
432
 
394
433
  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
434
 
435
+ ### Built-in troubleshooting skill
436
+
437
+ 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.
438
+
396
439
  ### Common issues
397
440
 
398
441
  | Symptom | What to check |
@@ -401,7 +444,8 @@ Check profile patches, `$DSH_HOME/cordis.patch.yml`, and `--patch` overlays for
401
444
  | 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
445
  | 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
446
  | 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. |
447
+ | 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`. |
448
+ | 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
449
 
406
450
  <a id="understand-the-implementation"></a>
407
451
  ## How it works
@@ -409,9 +453,9 @@ Check profile patches, `$DSH_HOME/cordis.patch.yml`, and `--patch` overlays for
409
453
  The plugin integrates via Cordis and Harness lifecycle extension points without patching host source code:
410
454
 
411
455
  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.
456
+ 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
457
  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.
458
+ 4. **Private skill manager:** Encapsulates skill storage (`~/.dsh/agent-team-presets/team-skills`), crash-recovery journaling, dependency resolution, and guarded deletion.
415
459
 
416
460
  ### Source navigation
417
461
 
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.1.9** · [标签](https://github.com/bloodarea/dsh-agent-team-presets/tree/v0.1.9)
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.1.9 更新内容
14
+
15
+ - **与单个成员单独对话。** 输入区的团队选择器在悬浮时展开成员面板;点选成员会把该成员的角色卡、工具策略、Team Skill 与模型路由注入当前会话;点选队长则保持会话模型不变。
16
+ - **适配 DeepSeek Harness 0.2.2-rc.1。** 成员路由通过 `agent.model.select()` 写入,工具激活按步评估;成员路由不可用时在应用前明确拒绝,不会回退到队长。
17
+ - **自定义工具策略仅支持原生 Agent 预设。** PTC 下插件保留宿主执行器并明确拒绝自定义白名单;PTC 配合「所有工具」模式仍可继续使用。
18
+ - **内置排障 Skill。** 全局 `agent-team-presets-troubleshooting` 覆盖团队应用、成员创建、路由证据、Team 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,12 +175,13 @@ 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
+ - **自定义工具白名单使用原生工具 Agent 预设(standard 或 cordis)。** 当前宿主无法在临时覆盖执行器后恢复继承的执行器,因此插件保留宿主执行器;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.1.9`)和 Harness 版本(如 `0.2.2-rc.1`)是不同的版本线。
157
185
 
158
186
  <a id="use-this-package"></a>
159
187
  ## 安装与升级
@@ -163,13 +191,15 @@ DeepSeek Harness 原生 Agent Teams 已经具备多智能体协作能力。在
163
191
  打开 **全局面板 → 插件 → 添加插件**,把下面这一行粘贴到「包名或地址」,点击 **安装**:
164
192
 
165
193
  ```text
166
- dsh-agent-team-presets@0.1.8
194
+ github:bloodarea/dsh-agent-team-presets#v0.1.9
167
195
  ```
168
196
 
169
197
  <!-- release-version: 与 package.json 的 version 同步 -->
170
198
 
199
+ 0.1.9 目前从 GitHub 标签分发;npm 仍为 0.1.8,待下一次 npm 发布后再使用下方 npm 渠道。
200
+
171
201
  - **安装源**决定从哪个 npm 源下载。「默认安装源」指 pnpm 自身配置所指的源。要绕开镜像选「npm 官方源」;要换内网私有源或云厂商镜像选「自定义地址」。
172
- - `@0.1.8` 指定版本;想装 npm 上最新的已发布版本,去掉它只填 `dsh-agent-team-presets`。
202
+ - `#v0.1.9` 指定 GitHub 标签;npm 发布 0.1.9 后也可用 `@0.1.9`。想装 npm 上最新的已发布版本,去掉版本只填 `dsh-agent-team-presets`。
173
203
  - 输入框支持包名、`name@version`、`github:作者/仓库`、tarball 地址或本地绝对路径。
174
204
  - 本包声明了自己的 `dsh.bundle`,安装后由插件管理器登记为 profile 的 bundle 层,不要再手写 loader 条目。
175
205
  - 已安装本包时无法重复安装同一包名。要更换安装来源(如由 GitHub 改为 npm),先在插件列表中卸载,再粘贴新规格安装。
@@ -189,10 +219,10 @@ dsh plugin --profile <profile> add github:bloodarea/dsh-agent-team-presets
189
219
  dsh plugin --profile web add github:bloodarea/dsh-agent-team-presets
190
220
  ```
191
221
 
192
- 需要固定 v0.1.8 发布标签时:
222
+ 需要固定 v0.1.9 发布标签时:
193
223
 
194
224
  ```sh
195
- dsh plugin --profile <profile> add github:bloodarea/dsh-agent-team-presets#v0.1.8
225
+ dsh plugin --profile <profile> add github:bloodarea/dsh-agent-team-presets#v0.1.9
196
226
  ```
197
227
 
198
228
  ### npm 发布渠道
@@ -206,7 +236,7 @@ dsh plugin --profile <profile> add dsh-agent-team-presets
206
236
 
207
237
  ### 确认安装并安全升级
208
238
 
209
- 安装成功后,按插件管理器的提示重新加载或重启,打开 **设置 → 智能体团队预设**。确认插件详情显示 `dsh-agent-team-presets`、版本 `0.1.8`,且组件处于运行中状态。
239
+ 安装成功后,按插件管理器的提示重新加载或重启,打开 **设置 → 智能体团队预设**。确认插件详情显示 `dsh-agent-team-presets`、版本 `0.1.9`,且组件处于运行中状态。
210
240
 
211
241
  - 升级前备份 profile 设置、团队定义与会话选择记录。
212
242
  - 从开发链接迁移时,先通过插件管理器移除 `@deepseek-ai/dsh-experimental-agent-team-presets`,再启用社区包。
@@ -232,6 +262,15 @@ dsh plugin --profile <profile> add dsh-agent-team-presets
232
262
 
233
263
  选择 **不使用团队(No team)** 会在队长与队员全部空闲后卸载团队应用,恢复常规会话行为,不改变已选模型。
234
264
 
265
+ ### 与单个成员单独对话
266
+
267
+ 在输入区团队选择器中悬浮某个团队,会展开成员面板:队长排在最前,模型一栏显示 **会话模型**;其后是各队员的「提供方 · 模型」与角色描述。
268
+
269
+ - 选择 **队长** 即常规应用该团队:队长主导本会话、可召唤队员,并继续使用会话已选的模型。
270
+ - 选择 **队员** 即与该成员单独对话:该成员的角色卡(名称、角色描述、独立系统提示词)成为本会话 persona,其工具策略与已分配的 Team Skill 生效,不再安装队长简报与 `spawn_team_member`;同时会话模型自动切换为该成员配置的提供方/模型与推理强度。未配置路由的成员保持会话当前模型。
271
+ - 再切回队长不会恢复旧模型:队长始终跟随会话当前所选模型。
272
+ - 角色与模型的切换和团队切换一样,会等待运行中的任务到达边界;若所选成员已被删除,则拒绝该选择并保持会话锁定,绝不静默回退到队长。
273
+
235
274
  ### 字段说明
236
275
 
237
276
  | 字段 | 用途 |
@@ -306,7 +345,7 @@ dsh plugin --profile <profile> add dsh-agent-team-presets
306
345
 
307
346
  传统 Harness 技能一般注册到全局环境,所有智能体均可看到。本插件开创性地实现了 **Team Skill 私有技能子系统**:
308
347
 
309
- 1. **私有存储库:** 技能统一存放在插件专属目录(`~/.dsh/team-skills` 或独立存储域),不污染宿主全局技能列表。
348
+ 1. **私有存储库:** 技能统一存放在插件专属目录(`~/.dsh/agent-team-presets/team-skills` 或独立存储域),不污染宿主全局技能列表。
310
349
  2. **角色 Agent 作用域隔离:** 成员被队长召唤时,其绑定的专属技能**严格仅在该成员的 Agent Scope 内注册**。其他队员和队长既无法看到、也无法调用该技能。
311
350
  3. **官方内置技能:** 随包提供 4 个内置技能——交付型 `github-repository-presentation`、`git-release-hygiene`,方法型 `grilling`(先澄清再动手)与 `research`(只认一手来源)。默认绑定:工程团队的 `executor`/`repository-specialist` 获得交付技能;需求探索队长获得 `grilling`,其 `technical-scout`/`product-scout` 与科研协作 `evidence-scout` 获得 `research`。
312
351
  4. **本地副本与一键恢复:** 内置技能默认只读,支持一键「创建本地可编辑副本」修改文件。插件版本升级时会自动提示 `updateAvailable`,支持随时「恢复为插件内置版本」。
@@ -393,6 +432,10 @@ Configuration for "agent-team-presets" is overridden by a home patch or command-
393
432
 
394
433
  请检查 profile patch、`$DSH_HOME/cordis.patch.yml` 和 `--patch` 中是否有重复的手写 `agent-team-presets` 声明。移除重复项并保留 Host 管理的设置行。
395
434
 
435
+ ### 插件内置排障 Skill
436
+
437
+ 插件在 profile 组合出 skill 服务后,会在全局 skill 层注册 `agent-team-presets-troubleshooting`。它是宿主级 skill,不属于私有 Team Skill 库,也不按 Agent 隔离;所有会话都可以通过 `skill` 工具加载。适用于团队不生效、成员无法召唤、工具被拒、成员模型路由存疑、Team Skill 不可见或安装/升级异常。该 Skill 也写明了证据优先级:`configuredRoute`、`model/selection`、`request/header.config` 和成员快照 `route` 高于 `subagent/descriptor` 或名册展示值。
438
+
396
439
  ### 常见问题
397
440
 
398
441
  | 现象 | 排查方向 |
@@ -401,7 +444,8 @@ Configuration for "agent-team-presets" is overridden by a home patch or command-
401
444
  | 技能删除按钮置灰不可点击 | 技能受保护:查看弹窗中的阻断列表,需先在对应团队角色中取消分配。 |
402
445
  | 技能分配被拒绝 (`dependency-missing`) | 技能声明的某个必需命令行程序在宿主 `PATH` 上未找到。注意声明的 MCP 服务仅供展示参考,不阻断分配;如需使用请确认 profile 中已正确配置并连接对应 MCP。 |
403
446
  | 成员创建被拒绝 | 检查持久存储、执行后端(`spawn`/`fork`)、模型配额及并发限额。 |
404
- | 成员显示的模型与配置不一致 | 在 Harness rc.2 中,`list_agents.model` 读取 fallback 元数据。实际路由以 `spawn_team_member` 返回的 `configuredRoute` 或会话请求日志为准。 |
447
+ | 成员显示的模型与配置不一致 | `list_agents.model` 可能返回继承或 fallback 模型,即使成员实际已按配置路由运行。实际路由以 `spawn_team_member` 的 `configuredRoute`、`model/selection`、首条 `request/header.config` 和成员快照 `route` 为准。 |
448
+ | 所选成员的模型路由不可用 | Host 会拒绝应用并保留会话原有组合与模型,不会静默回退到队长。请在 **设置 → 智能体团队预设** 中修正该成员的提供方/模型(及推理强度)后重新选择。输入区只提示成员不存在,不显示 Host 拒绝原因;请同时确认成员路由与部署的提供方目录。 |
405
449
 
406
450
  <a id="understand-the-implementation"></a>
407
451
  ## 工作原理
@@ -409,9 +453,9 @@ Configuration for "agent-team-presets" is overridden by a home patch or command-
409
453
  插件通过 Cordis 与 Harness 生命周期扩展点深度协作,无需修改宿主源码:
410
454
 
411
455
  1. **Profile 配置:** 保存团队预设、展示元数据、本地分类与活动会话选择。
412
- 2. **会话应用:** 在 Agent 作用域安装队长 persona、工具策略和 `spawn_team_member`。
456
+ 2. **会话应用:** 在 Agent 作用域安装队长 persona、工具策略和 `spawn_team_member`;选择单个成员时改为安装该成员的角色卡与工具策略,不安装队长简报与成员工具,并把该成员配置的模型路由设为会话当前模型。
413
457
  3. **成员创建与技能注入:** 校验路由与委派配额,保存持久快照并召唤子会话。串行 `agent/created` 钩子在首次请求前,将模型路由、persona、工具白名单以及**专属 Team Skill 严格注入该成员的 Agent 作用域**。
414
- 4. **私有技能管理器:** 负责技能目录存储(`~/.dsh/team-skills`)、防崩溃事务日志、依赖解析与删除阻断核验。
458
+ 4. **私有技能管理器:** 负责技能目录存储(`~/.dsh/agent-team-presets/team-skills`)、防崩溃事务日志、依赖解析与删除阻断核验。
415
459
 
416
460
  ### 源码导航
417
461