dsh-agent-team-presets 0.1.4 → 0.1.6

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.
Files changed (68) hide show
  1. package/README.md +229 -175
  2. package/README.zh.md +222 -168
  3. package/assets/skills/git-release-hygiene/SKILL.md +32 -0
  4. package/assets/skills/github-repository-presentation/SKILL.md +145 -0
  5. package/lib/THIRD-PARTY-NOTICES.txt +17 -0
  6. package/lib/client.js +17843 -2160
  7. package/lib/index.js +10926 -211
  8. package/lib/typert.host.js +12446 -294
  9. package/lib/typert.remote-client.d.ts +55 -3
  10. package/lib/typert.remote-client.js +12442 -296
  11. package/lib/types/builtin-teams.d.ts +62 -22
  12. package/lib/types/builtin-teams.js +76 -133
  13. package/lib/types/client/CategorySelect.d.ts +30 -0
  14. package/lib/types/client/CategorySelect.js +41 -0
  15. package/lib/types/client/ComposerTeamSelect.js +56 -13
  16. package/lib/types/client/TeamAgentView.d.ts +7 -0
  17. package/lib/types/client/TeamAgentView.js +46 -3
  18. package/lib/types/client/TeamCategoryManager.d.ts +39 -0
  19. package/lib/types/client/TeamCategoryManager.js +45 -0
  20. package/lib/types/client/TeamEditorView.d.ts +9 -1
  21. package/lib/types/client/TeamEditorView.js +46 -1
  22. package/lib/types/client/TeamListView.d.ts +14 -1
  23. package/lib/types/client/TeamListView.js +25 -5
  24. package/lib/types/client/TeamPresetsSection.js +46 -5
  25. package/lib/types/client/TeamSkillsView.d.ts +24 -0
  26. package/lib/types/client/TeamSkillsView.js +149 -0
  27. package/lib/types/client/index.js +29 -4
  28. package/lib/types/client/locales.d.ts +1 -1
  29. package/lib/types/client/locales.js +281 -2
  30. package/lib/types/client/team-grouping.d.ts +135 -0
  31. package/lib/types/client/team-grouping.js +162 -0
  32. package/lib/types/client/team-presets-controller.d.ts +116 -2
  33. package/lib/types/client/team-presets-controller.js +234 -8
  34. package/lib/types/client/team-skills-controller.d.ts +186 -0
  35. package/lib/types/client/team-skills-controller.js +463 -0
  36. package/lib/types/config.d.ts +116 -1
  37. package/lib/types/config.js +30 -0
  38. package/lib/types/index.js +174 -17
  39. package/lib/types/member-identity.d.ts +56 -11
  40. package/lib/types/member-identity.js +246 -79
  41. package/lib/types/member-runtime.js +44 -3
  42. package/lib/types/preset-transfer.d.ts +78 -15
  43. package/lib/types/preset-transfer.js +223 -31
  44. package/lib/types/settings-reconcile.d.ts +2 -1
  45. package/lib/types/settings-reconcile.js +31 -5
  46. package/lib/types/team-catalog.d.ts +74 -0
  47. package/lib/types/team-catalog.js +615 -0
  48. package/lib/types/team-search.d.ts +176 -0
  49. package/lib/types/team-search.js +252 -0
  50. package/lib/types/team-skills/import.d.ts +107 -0
  51. package/lib/types/team-skills/import.js +275 -0
  52. package/lib/types/team-skills/index.d.ts +120 -0
  53. package/lib/types/team-skills/index.js +197 -0
  54. package/lib/types/team-skills/manager.d.ts +202 -0
  55. package/lib/types/team-skills/manager.js +494 -0
  56. package/lib/types/team-skills/paths.d.ts +115 -0
  57. package/lib/types/team-skills/paths.js +215 -0
  58. package/lib/types/team-skills/provider.d.ts +118 -0
  59. package/lib/types/team-skills/provider.js +268 -0
  60. package/lib/types/team-skills/service.d.ts +172 -0
  61. package/lib/types/team-skills/service.js +566 -0
  62. package/lib/types/team-skills/store.d.ts +94 -0
  63. package/lib/types/team-skills/store.js +689 -0
  64. package/lib/types/team-skills/tools.d.ts +45 -0
  65. package/lib/types/team-skills/tools.js +247 -0
  66. package/lib/types/tool-policy.js +7 -0
  67. package/lib/types/types.d.ts +391 -0
  68. package/package.json +57 -46
package/README.md CHANGED
@@ -6,19 +6,19 @@
6
6
 
7
7
  English | [中文](<README.zh.md>)
8
8
 
9
- > **Community plugin v0.1.4** · [Release](https://github.com/bloodarea/dsh-agent-team-presets/releases/tag/v0.1.4)
9
+ > **Community plugin v0.1.6** · [Release](https://github.com/bloodarea/dsh-agent-team-presets/releases/tag/v0.1.6)
10
10
  >
11
- > Requires a compatible DeepSeek Harness deployment with Agent Teams enabled. This version uses rc.2 APIs; see [Requirements](#requirements). Prebuilt artifacts are included, so installation does not require a source build.
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.
12
12
 
13
13
  <a id="project-introduction"></a>
14
14
  ## Overview
15
15
 
16
- **dsh-agent-team-presets** is a visual Team preset manager for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness). Configure a Team once, then select it from the conversation composer whenever you need it.
16
+ **dsh-agent-team-presets** is a visual Team preset and private skill manager for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness). Configure a Team once, assign per-agent isolated skills, then select it from the conversation composer whenever you need it.
17
17
 
18
18
  A Team contains a **captain** and any number of **member roles**:
19
19
 
20
20
  - The captain uses the conversation's selected model, with its own role description, system prompt, and tool policy.
21
- - Each member can have a different provider, model, reasoning effort, system prompt, and tool policy.
21
+ - Each member can have an independent provider, model, reasoning effort, system prompt, tool policy, and assigned Team Skills.
22
22
  - The captain summons members through `spawn_team_member`; native Agent Teams provides messaging, the shared task board, and runtime coordination.
23
23
 
24
24
  This is a community plugin, not the Harness's bundled `@deepseek-ai/dsh-experimental-agent-team-presets` development package.
@@ -26,15 +26,16 @@ This is a community plugin, not the Harness's bundled `@deepseek-ai/dsh-experime
26
26
  <a id="why-this-plugin"></a>
27
27
  ## Why this plugin?
28
28
 
29
- DeepSeek Harness already ships Agent Teams with multi-agent collaboration. In the Harness versions this plugin supports, per-Team configuration and reuse are still left to the user, which is what this plugin addresses:
29
+ DeepSeek Harness already ships Agent Teams with multi-agent collaboration. In the Harness versions this plugin supports, per-Team configuration, skill isolation, and reuse are still left to the user, which is what this plugin addresses:
30
30
 
31
- - **Teams are hard to reuse.** In those versions, native teams focus on runtime creation and collaboration, with no visual preset management; this plugin saves, duplicates, and reuses named presets.
32
- - **Role setup is repetitive.** Each role's name, description, and system prompt are configured once instead of re-described every time.
31
+ - **Teams are hard to reuse.** In those versions, native teams focus on runtime creation and collaboration, with no visual preset management; this plugin saves, duplicates, categorizes, and reuses named presets.
32
+ - **Role setup is repetitive.** Each role's name, description, system prompt, and tool policies are configured once instead of re-described every time.
33
33
  - **Splitting work across models is awkward.** Every member picks its own model and reasoning effort, so one Team combines models by task, while the captain keeps leading on the Session's model.
34
34
  - **Tool permissions have no fine-grained entry point.** In those versions the native tool surface offers no per-role allow-list; here the captain and each member carry their own, so roles differ in what they may use.
35
- - **Switching teams is inconvenient.** Pick a preset Team from the composer instead of rebuilding roles by hand.
35
+ - **Skills lack per-agent scope isolation.** Shipped or user skills are typically registered globally, making all skills visible to every agent; this plugin provides a private Team Skill library where skills are discovered **only** by the specific Agent they are assigned to.
36
+ - **Switching teams is inconvenient.** Pick a preset Team directly from the composer instead of rebuilding roles by hand.
36
37
 
37
- **Design principle:** native Agent Teams owns collaboration at runtime; this plugin owns configuring, managing, and reusing teams.
38
+ **Design principle:** native Agent Teams owns collaboration at runtime; this plugin owns configuring, managing, isolating, and reusing teams and their skills.
38
39
 
39
40
  <a id="features"></a>
40
41
  ## Features
@@ -42,9 +43,17 @@ DeepSeek Harness already ships Agent Teams with multi-agent collaboration. In th
42
43
  - **Reusable Teams:** create, duplicate, edit, select, and delete named presets.
43
44
  - **Per-member model routes:** assign models and reasoning effort to individual roles without changing the captain's model.
44
45
  - **Independent tool policies:** choose all available tools or a custom allow-list for the captain and each member.
45
- - **Portable presets:** import and export role definitions while keeping deployment-specific routes and tool permissions local.
46
- - **Built-in starting points:** lightweight, standard, and full-stack software development Teams.
46
+ - **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
+ - **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
+ - **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.
50
+ - **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
+ - **Official built-in skills & local overrides:** ships `github-repository-presentation` and `git-release-hygiene` materialized into the private library and pre-bound to engineering roles. Create local editable overrides and one-click restore them to the built-in copy (`恢复为插件内置版本`).
52
+ - **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
+ - **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
+ - **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`.
47
55
  - **Live settings feedback:** see whether a Team is idle, busy, or awaiting an update in an online Session.
56
+ - **Theme integration:** robust light and dark mode adaptation across all cards, dialogs, inputs, and dropdowns.
48
57
 
49
58
  ## Contents
50
59
 
@@ -55,8 +64,10 @@ DeepSeek Harness already ships Agent Teams with multi-agent collaboration. In th
55
64
  - [Requirements](#requirements)
56
65
  - [Install and upgrade](#use-this-package)
57
66
  - [Configure and use a Team](#configure-a-team)
67
+ - [Display metadata, categories, and search](#metadata-categories-search)
68
+ - [Private Team Skills and per-agent isolation](#team-skills)
58
69
  - [Share presets](#share-presets)
59
- - [Let the captain edit a preset](#edit-presets-with-tools)
70
+ - [Agent-facing tools](#agent-facing-tools)
60
71
  - [Tool permissions and security](#tool-permissions)
61
72
  - [Troubleshooting and limitations](#known-limitations-and-deferred-work)
62
73
  - [How it works](#understand-the-implementation)
@@ -67,36 +78,64 @@ DeepSeek Harness already ships Agent Teams with multi-agent collaboration. In th
67
78
  <a id="screenshots"></a>
68
79
  ## Screenshots
69
80
 
70
- The screenshots illustrate the composer control and settings workflow. Example Team and provider names are illustrative; available models and tools depend on your deployment. Some screenshots show an earlier UI revision, so controls and helper text may differ from v0.1.4. The permission rules below describe the current version.
81
+ The screenshots illustrate the v0.1.6 settings interface, Team Skill management, and composer workflow. Example provider and model names depend on your deployment.
71
82
 
72
- **Choose a Team in the composer**
83
+ **Manage Teams: tabs, search, source and series filters**
73
84
 
74
- ![The Team control in the composer](<docs/images/01-composer-team-control.png>)
85
+ ![Team list in Settings](<docs/shots/teams-list.png>)
75
86
 
76
- **Manage saved Teams**
87
+ **Choose a Team in the composer with search and source filters**
77
88
 
78
- ![The Team list in Settings](<docs/images/02-team-list.png>)
89
+ ![Composer Team picker](<docs/shots/composer-picker.png>)
79
90
 
80
- **Configure member models and reasoning effort**
91
+ **Private Team Skill library with origin badges and actions**
92
+
93
+ ![Team Skill library](<docs/shots/skills-library.png>)
94
+
95
+ **Assign Team Skills to a member role**
96
+
97
+ ![Member Team Skill assignment grid](<docs/shots/member-skill-grid.png>)
98
+
99
+ **Skill details: file tree, editor, and local copy actions**
100
+
101
+ ![Team Skill detail view](<docs/shots/skill-git-release-hygiene.png>)
102
+
103
+ **Guarded skill deletion with blocking holders modal**
81
104
 
82
- ![A member's model settings](<docs/images/04-member-route.png>)
105
+ ![Skill delete blocker dialog](<docs/shots/skill-delete-dialog.png>)
106
+
107
+ **Manage custom preset categories**
108
+
109
+ ![Team preset categories page](<docs/shots/category-manager.png>)
110
+
111
+ **Team editor: display metadata, category picker, and status notices**
112
+
113
+ ![Team editor](<docs/shots/team-editor.png>)
83
114
 
84
115
  <details>
85
- <summary>More settings screenshots</summary>
116
+ <summary>More screenshots (model routing, custom dropdowns, prompts, and tool policies)</summary>
117
+
118
+ **Category dropdown in Team editor**
119
+
120
+ ![Category select popup](<docs/shots/category-select-popup.png>)
121
+
122
+ **Filter Teams by custom source**
86
123
 
87
- **Team editor**
124
+ ![Custom source filter](<docs/shots/teams-custom-source.png>)
88
125
 
89
- ![One Team's editor](<docs/images/03-team-editor.png>)
126
+ **Configure member models and reasoning effort**
127
+
128
+ ![Member model settings](<docs/images/04-member-route.png>)
90
129
 
91
130
  **Model picker**
92
131
 
93
- ![The model picker](<docs/images/05-model-picker.png>)
132
+ ![Model picker](<docs/images/05-model-picker.png>)
94
133
 
95
134
  **Captain and member system prompts**
96
135
 
97
- ![The captain's system prompt](<docs/images/06-captain-system-prompt.png>)
136
+ ![Captain system prompt](<docs/images/06-captain-system-prompt.png>)
98
137
 
99
- ![A member's system prompt](<docs/images/07-member-system-prompt.png>)
138
+ ![Member system prompt](<docs/images/07-member-system-prompt.png>)
100
139
 
101
140
  **Tool policy controls**
102
141
 
@@ -109,170 +148,223 @@ The screenshots illustrate the composer control and settings workflow. Example T
109
148
  <a id="requirements"></a>
110
149
  ## Requirements
111
150
 
112
- - **DeepSeek Harness with the required rc.2 APIs.** Several dependencies require `>=0.2.0-rc.2 <0.3.0`, while others have broader peer ranges. The plugin manager checks every declared dependency; the exact requirements are in [package.json](<package.json>). Do not treat rc.1 as sufficient for this release.
113
- - **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 Teams; it does not replace that subsystem.
151
+ - **DeepSeek Harness with the required rc.2 APIs.** Supported versions: `>=0.2.0-rc.2 <0.3.0` (tested with `0.2.1-rc.2`). Fully verified via manual real-device end-to-end acceptance testing across both Web and Desktop platforms. The plugin manager checks declared peer dependencies; see [package.json](<package.json>).
152
+ - **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.
114
153
  - **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.
115
- - **Durable storage and a continuable subagent backend for member execution.** Member creation is refused if the storage domain or the selected execution backend is unavailable. The default backend names are `spawn` and `fork`; custom deployments must configure compatible backends.
154
+ - **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`.
116
155
 
117
- The plugin version (`0.1.4`) and the Harness version (`0.2.0-rc.2`, for example) are separate version lines.
156
+ The plugin version (`0.1.6`) and the Harness version (`0.2.1-rc.2`, for example) are separate version lines.
118
157
 
119
158
  <a id="use-this-package"></a>
120
159
  ## Install and upgrade
121
160
 
161
+ ### One-click install in the GUI (Add plugin)
162
+
163
+ Open **Global panels → Plugins → Add plugin**, paste the line below into **Package name or address**, and click **Install**:
164
+
165
+ ```text
166
+ dsh-agent-team-presets@0.1.6
167
+ ```
168
+
169
+ <!-- release-version: keep in sync with package.json version -->
170
+
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.6` 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
+
122
178
  ### Install from GitHub
123
179
 
124
- For an installation that can receive repository-version update notifications:
180
+ To receive repository update notifications:
125
181
 
126
182
  ```sh
127
183
  dsh plugin --profile <profile> add github:bloodarea/dsh-agent-team-presets
128
184
  ```
129
185
 
130
- Replace `<profile>` with the profile your GUI runs. For example:
186
+ Replace `<profile>` with your active profile (e.g. `web` or `desktop`):
131
187
 
132
188
  ```sh
133
189
  dsh plugin --profile web add github:bloodarea/dsh-agent-team-presets
134
190
  ```
135
191
 
136
- To select the v0.1.4 release tag instead:
192
+ To pin the v0.1.6 release tag:
137
193
 
138
194
  ```sh
139
- dsh plugin --profile <profile> add github:bloodarea/dsh-agent-team-presets#v0.1.4
195
+ dsh plugin --profile <profile> add github:bloodarea/dsh-agent-team-presets#v0.1.6
140
196
  ```
141
197
 
142
- An unpinned GitHub install follows the repository's package version for market update checks; commits without a version increase do not produce a new-version notification. A pinned ref is compared only with that ref, so later releases are not offered automatically. Use a commit SHA rather than a tag if you need an immutable source reference.
143
-
144
198
  ### npm release channel
145
199
 
146
- GitHub and [npm](https://www.npmjs.com/package/dsh-agent-team-presets) are separate release channels and may not carry the same version. Check npm before installing from it:
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:
147
201
 
148
202
  ```sh
149
203
  npm view dsh-agent-team-presets version
150
- ```
151
-
152
- If that version meets your requirements, install it with:
153
-
154
- ```sh
155
204
  dsh plugin --profile <profile> add dsh-agent-team-presets
156
205
  ```
157
206
 
158
- If the registry version is older than the release you need, use the GitHub command instead. Installing this package uses the prebuilt artifacts; rebuilding them is a separate [development task](#development).
159
-
160
207
  ### Verify and upgrade safely
161
208
 
162
- After a successful installation, follow the plugin manager's reload or restart instructions and open **Settings → Agent team presets**. Check that plugin details show `dsh-agent-team-presets`, the expected version, and a running component.
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.6`, and a running component.
163
210
 
164
- - Back up the profile, Team definitions, and Session selections before upgrading or changing installation sources.
165
- - A failed command, compatibility rejection, or failed component is not a successful installation. Inspect the error before retrying; repeated restarts do not repair a failed install.
166
- - When switching from a development link, remove `@deepseek-ai/dsh-experimental-agent-team-presets` through the plugin manager before enabling the community package. Do not enable both: they use the same settings namespace and client registrations. Preserve existing Team settings and selections during migration.
167
- - Restart Harness after changing package identities, then refresh the GUI. A page refresh alone may leave the old client module registered in the Host.
211
+ - Back up profile settings, Team definitions, and Session selections before upgrading.
212
+ - When migrating from a development link, remove `@deepseek-ai/dsh-experimental-agent-team-presets` first before enabling the community package.
213
+ - Restart Harness after switching package identities, then refresh the GUI.
168
214
 
169
- > **Install the bundle; do not add a second loader declaration.** The package already supplies its own [bundle patch](<cordis.patch.yml>). Hand-written copies of the `agent-team-presets` entry in profile, home, or command-line patches can prevent Team settings from being saved. See [Configuration writes are overridden](#configuration-overridden) if this happens.
215
+ > **Install the bundle; do not add a second loader declaration.** The package already supplies its own [bundle patch](<cordis.patch.yml>). Duplicate hand-written declarations in profile patches can prevent settings from saving. See [Configuration writes are overridden](#configuration-overridden).
170
216
 
171
217
  <a id="configure-a-team"></a>
172
218
  ## Configure and use a Team
173
219
 
174
220
  1. Open **Settings → Agent team presets**.
175
- 2. Choose a built-in Team, duplicate one, or create a new Team.
176
- 3. Set its purpose, captain, and member roles. Configure member routes and tool permissions for your deployment.
177
- 4. Press **Save** in the shared footer. Edits remain a draft until saved.
178
- 5. Select the Team from the conversation composer's Team control, then ask the captain to carry out a task with the relevant roles.
221
+ 2. Select a built-in Team, duplicate an existing one, or click **New Team**.
222
+ 3. Configure its name, purpose, display metadata, category, captain, and member roles.
223
+ 4. For each member, configure its provider/model route, reasoning effort, tool policy, and assigned Team Skills.
224
+ 5. Press **Save** in the shared footer. Edits remain staged drafts until saved.
225
+ 6. Select the Team from the conversation composer's Team control, then prompt the captain to coordinate the task.
179
226
 
180
- For a Team with implementation and review roles, a request could be:
227
+ Example prompt for a Team with execution and review roles:
181
228
 
182
- > Use the selected Team. Have the implementation member make the agreed change, then ask the reviewer to check it independently. Summarize the changes, test results, and remaining risks.
229
+ > Use the selected Team. Have the executor implement the agreed changes and regression tests, then ask the reviewer to inspect them independently. Summarize changes, test results, and remaining risks.
183
230
 
184
- A preset role is not an already-running member. Each call creates a new instance with a unique target such as `reviewer` or `reviewer-2`. Use the returned target with `send_message` to continue an existing member instead of creating another one.
231
+ A preset role is a template. Summoning creates an instance with a unique target such as `executor` or `executor-2`. Use `send_message` with the returned target to continue working with an existing instance rather than spawning a new one.
185
232
 
186
- Selecting **No team** removes the Team application once the captain and its teammates are idle. It restores the conversation's other prompt and tool contributions, without changing the selected model.
233
+ Selecting **No team** disarms the Team application once the captain and teammates become idle, restoring standard session contributions without changing the active model.
187
234
 
188
235
  ### Fields
189
236
 
190
237
  | Field | Purpose |
191
238
  |---|---|
192
- | Team name and purpose | Identify the preset and explain what work it should handle. |
193
- | Captain | The conversation's lead agent. A nonempty captain prompt replaces its persona prefix; the captain keeps the conversation's selected model. |
194
- | Members | Reusable role templates the captain can summon. A role may have multiple runtime instances, subject to Harness limits. |
195
- | Name | Display name. After trimming and lowercasing, ASCII letters/digits separated by single hyphens form a role target if it is at most 64 characters and not `lead`. Other names, including empty or non-Latin names, use a target such as `member-1`; collisions receive suffixes. Runtime messages use the returned instance target. |
196
- | Description | Explain the role's responsibilities so the captain can choose an appropriate member. Keep member descriptions within 200 characters, as required by the Team service. |
197
- | Color | Accent used to distinguish the role in Settings and the roster. |
198
- | Provider / Model | Members only. Select a route from the deployment's model catalog; without a complete provider/model selection, no member-specific route is installed. |
199
- | Reasoning effort | Members only. Options depend on the selected model; empty uses that route's default. |
200
- | Allowed tools | Independent all-tools or custom policy for each slot; see [Tool permissions](#tool-permissions). |
201
- | System prompt | Standing role instructions. Complete `{{variable}}` groups are prompt-template variables; an unresolved variable can fail a request. |
202
-
203
- The editor has three levels: the Team list, one Team, and one captain or member. You can return to the list without losing a staged edit, but **Save** is required to persist it.
239
+ | Team name and purpose | Identify the preset and explain what work it handles. |
240
+ | Category | Assign the Team to a local category for organization in lists and picker. |
241
+ | Display metadata | Summary, tags, use cases, quick prompts, and notes. Purely presentation-only; never injected into LLM context tokens. |
242
+ | Captain | The lead agent. A nonempty captain prompt replaces its persona prefix; the captain keeps the conversation's model. |
243
+ | Members | Reusable role templates the captain can summon. |
244
+ | Name | Role display name and target base. ASCII letters/digits and hyphens (max 64 chars, not `lead`). |
245
+ | Description | Role responsibilities for the captain to select appropriate members (max 200 chars). |
246
+ | Color | Accent color distinguishing the role in settings and the roster. |
247
+ | Provider / Model | Members only. Route from the deployment's model catalog. |
248
+ | Reasoning effort | Members only. Options depend on model support; empty uses route default. |
249
+ | Allowed tools | Independent all-tools or custom allow-list policy. |
250
+ | Team Skills | Assigned private skills, registered exclusively in this Agent's scope upon creation. |
251
+ | System prompt | Standing role instructions. `{{variable}}` denotes prompt template variables. |
204
252
 
205
253
  ### Built-in presets
206
254
 
207
- A fresh installation seeds three editable Teams:
255
+ A fresh installation seeds nine editable Teams across two series:
208
256
 
209
- | Preset | Intended use |
210
- |---|---|
211
- | 轻量研发团队 | Small features and module iterations, with an implementation member and an on-demand technical advisor. |
212
- | 标准研发团队 | Medium features and significant refactoring, adding an independent reviewer. |
213
- | 全栈软件研发团队 | Work across Web, desktop, and Android, with implementation, architecture, UI/UX, and review roles. |
257
+ #### 研发规模系列 (Classic Development Scale)
214
258
 
215
- Their prompts are in Chinese. The same portable documents are available in [contrib/default-presets](<contrib/default-presets>) for manual import.
259
+ | Preset | Roles | Intended use |
260
+ |---|---|---|
261
+ | **轻量研发团队**<br>`builtin-lightweight` | Captain, fullstack-advisor, executor | Small features and module iterations. Captain plans and verifies, architecture advisor handles cross-layer technical contracts on demand, executor writes code, tests, and debugs. Pre-bound with official delivery skills. |
262
+ | **标准研发团队**<br>`builtin-standard` | Captain, system-architect, executor, code-reviewer | Standard software projects. Captain coordinates, system architect establishes interface contracts and module boundaries, executor develops and tests, independent code reviewer inspects quality. Pre-bound with official delivery skills. |
263
+ | **全栈软件研发团队**<br>`builtin-fullstack` | Captain, backend-architect, ui-designer, executor, reviewer | Complex full-stack engineering across Web, Desktop, and Android. Captain leads, backend architect and UI designer provide technical/UX contracts, reviewer enforces quality gates, executor implements. Pre-bound with official delivery skills. |
216
264
 
217
- Defaults are offered once per profile configuration: deleted presets stay deleted across restarts and upgrades, and edited presets are not overwritten. **Restore defaults** restores the shipped fields while preserving routes and tool policies on matched roles, and leaves user-created Teams alone. It also restores each built-in Team's shipped roster, removing roles you added to that Team; duplicate a customized Team first if you want to keep it. Restored presets are staged until you press **Save**. A deleted preset added back has no previous local route or tool policy to preserve.
265
+ #### 工作模式系列 (Work Modes)
218
266
 
219
- ### When saved changes take effect
267
+ | Preset | Roles | Intended use |
268
+ |---|---|---|
269
+ | **需求探索**<br>`builtin-discovery` | Captain, demand-analyst, solution-explorer, independent-challenger | Open-ended ideas where goal, technical path, or product direction is still exploratory; read-only research with independent challenge. |
270
+ | **架构规划**<br>`builtin-planning` | Captain, system-architect, technology-evaluator, compliance-auditor | Settled goals where systems, module boundaries, and cross-module contracts must be designed. |
271
+ | **既定工作流执行**<br>`builtin-workflow` | Captain, workflow-coordinator, task-executor, delivery-verifier | Established workflows where user specifies next task, and team implements, verifies, and delivers it. |
272
+ | **工程研发协作**<br>`builtin-engineering` | Captain, architect-advisor, executor, code-reviewer, repository-specialist | Feature development, cross-layer implementation, UI/UX, and debugging, with a dedicated repository delivery specialist (`repository-specialist`). Pre-bound with official delivery skills. |
273
+ | **独立代码与安全审计**<br>`builtin-audit` | Captain, vulnerability-expert, security-auditor, compliance-inspector | Independent read-only review of specified code, vulnerabilities, security configurations, and dependency compliance. |
274
+ | **科研协作**<br>`builtin-research` | Captain, domain-researcher, experiment-analyst, rigor-reviewer | Literature review, experiment design, scientific computing, data analysis, and academic rigor inspection. |
220
275
 
221
- A Team preset is shared across Sessions in the profile, but each Session adopts updates independently:
276
+ Default presets are seeded once per profile. Deleting or editing a built-in preset is respected across restarts. **Restore defaults** restores shipped fields and official rosters while preserving local member model routes and tool policies.
222
277
 
223
- | Change | Effect |
224
- |---|---|
225
- | Purpose, role descriptions, prompts, roster, or tool policies | An idle Session adopts the change immediately. A busy Session keeps its applied definition until the task ends. |
226
- | Team selection, including No team | Takes effect once that Session's captain and teammates are idle. |
227
- | Member provider, model, or reasoning effort | Read when a **new member instance** is summoned, even during a running task. Existing instances retain their creation-time route. |
228
- | Color | Updates when the UI redraws. |
278
+ <a id="metadata-categories-search"></a>
279
+ ## Display metadata, categories, and search
280
+
281
+ ### Presentation-only display metadata
282
+
283
+ Each Team preset supports rich metadata:
284
+ - **Summary**: One-line description shown on cards and intros.
285
+ - **Tags**: Keyword chips for filtering and categorization.
286
+ - **Use cases**: Recommended project scenarios.
287
+ - **Quick prompts**: Ready-to-use task templates shown when selecting the Team.
288
+ - **Notes**: Operational reminders or cautions.
289
+
290
+ **Token economy:** Display metadata is stored in the preset document and used by the UI for search, grouping, and cards, but is **never injected into the runtime LLM prompt context**.
291
+
292
+ ### Local categories and hierarchical filtering
229
293
 
230
- The footer summarizes online Sessions as **idle**, **busy**, or **unknown**. Busy includes a running captain or a running/provisioning teammate. Unknown means execution state could not be confirmed, not that the Team is idle.
294
+ - **Category manager:** Click **管理团队预设分类** in the Settings list to open a dedicated management page. Create, rename, reorder, and delete categories, and inspect team counts per category.
295
+ - **Local isolation:** Categories and team-category bindings are saved in profile settings and are **never exported** with shareable preset documents.
296
+ - **Two-level filters:** The Teams list provides two independent filter rows:
297
+ - **来源 (Source):** 全部 (All), 插件内置 (Built-in), 自定义 (Custom).
298
+ - **分类 (Category):** For built-in teams, filters by official series (研发规模 / 工作模式); for custom teams, filters by user-created categories.
299
+ - **Instant search:** A responsive search box searches team names, summaries, tags, use cases, and quick prompts with real-time matched count reporting.
300
+ - **Composer integration:** The conversation composer's Team picker mirrors these source filters and search capabilities, with `不使用团队` pinned to the top.
301
+
302
+ <a id="team-skills"></a>
303
+ ## Private Team Skills and per-agent isolation
304
+
305
+ ### Private store and scope isolation
306
+
307
+ 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
+
309
+ 1. **Private library:** Skills live in a plugin-managed directory (`~/.dsh/team-skills` or storage domain), isolated from host and profile skills.
310
+ 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
+ 3. **Official built-in skills:** Shipped skills (`github-repository-presentation` and `git-release-hygiene`) are materialized into the private library and pre-bound to `executor` and `repository-specialist` roles in software engineering presets.
312
+ 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.
313
+ 5. **Origin labels and badges:** Skills display clear color-coded origin tags across all views:
314
+ - 插件内置 (Built-in, blue)
315
+ - 自定义 (Custom, purple)
316
+ - 本地副本 (Override, amber)
317
+
318
+ ### Import, directory scan, and dependencies
319
+
320
+ - **Folder and ZIP import:** Import external skill folders or `.zip` packages directly in the Web GUI.
321
+ - **Directory scan:** Scans candidate folders in the import path, reporting eligibility and reasons for any rejected folder. Users can copy the absolute library path with one click.
322
+ - **Dependency checks and MCP boundaries:**
323
+ - **CLI executables:** Declared CLI executables in `SKILL.md` are resolved against host `PATH`. Missing required executables are flagged and assignment is refused (`dependency-missing`).
324
+ - **MCP servers (declarative only, not auto-connected):** Declared MCP servers are strictly declarative dependencies displayed in the UI (`skillsDeclared`). The plugin **never connects, launches, or manages** external MCP servers automatically (their lifecycle belongs to the Harness environment and profile). Because MCP connectivity is an environment-level fact, declared MCP servers are reported as `unverified` rather than hard-blocking role assignment. When an MCP server is configured and running in the Harness profile, its exposed tools (`mcp__<server>__<name>`) appear under the MCP tool group in the role's tool configuration and can be authorized via tool policies.
325
+ - **Guarded deletion:** Deletion is strongly guarded. If a skill is currently bound to any team role, used by a running member, or required by another skill, deletion is blocked. The confirmation dialog explicitly lists every holding team and member role (e.g. `标准研发团队 → executor`), keeping the confirm button disabled until bindings are cleared.
231
326
 
232
327
  <a id="share-presets"></a>
233
328
  ## Share presets
234
329
 
235
- **Export** saves one Team as JSON. **Import preset** reads that document and stages it in the editor.
330
+ **Export** saves one Team as a JSON document (format version 2). **Import preset** reads the document and stages it in the editor.
236
331
 
237
- - Shared fields: Team name and purpose; captain/member names, descriptions, prompts, and colors.
238
- - Local fields: model routes and tool permissions. These are not exported; an import containing them is rejected.
239
- - Name collisions: choose replacement or a renamed addition for the Team and conflicting roles. Replacement preserves matched roles' local routes and tool policies, and keeps members not mentioned in the import.
240
- - New Teams and roles start without a fixed member route and with the default all-tools policy. Review their prompts and permissions before use, especially for documents from others.
332
+ - **Shared fields:** Team name, purpose, display metadata (summary, tags, use cases, quick prompts, notes), captain/member names, descriptions, prompts, and colors.
333
+ - **Local fields:** Model routes, reasoning effort, tool permissions, and local category bindings are **never exported**. Documents containing them are rejected on import.
334
+ - **Name collisions:** Choose between replacing the existing preset or creating a renamed copy. Replacement preserves local routes and tool policies on matched roles.
335
+ - Review imported prompts before executing tasks, especially when using documents from third parties.
241
336
 
242
- Exports include the currently displayed draft, including unsaved edits. Imports do not reach stored settings until you press **Save**. Review prompts for private information before publishing an exported document.
337
+ <a id="agent-facing-tools"></a>
338
+ ## Agent-facing tools
243
339
 
244
- <a id="edit-presets-with-tools"></a>
245
- ## Let the captain edit a preset
340
+ Root sessions register tools allowing agents to inspect and update presets and skills programmatically, subject to tool policies:
246
341
 
247
- You can ask the conversation's lead agent to adjust a Team's purpose or role instructions. Two tools are registered on root Sessions, including Sessions with no Team selected, subject to the active tool policy:
342
+ ### Team preset tools
248
343
 
249
- - **`get_team_preset`** reads the selected Team, or the Team named by `team_id`, and returns its editable fields and settings revision. Without a selection, it lists configured Teams so you can choose one.
250
- - **`update_team_preset`** changes Team/captain descriptions and captain/member system prompts or member descriptions, using that revision. Names, model routes, colors, and tool permissions must be edited in Settings.
344
+ - **`get_team_preset`**: Reads the active or specified Team preset, returning its purpose, role descriptions, prompts, roster, and settings revision.
345
+ - **`update_team_preset`**: Updates team/captain descriptions and member prompts/descriptions using compare-and-set revision checks. Requires direct human turn and Host approval. Returns `team-busy` if affected members are currently active.
251
346
 
252
- A write requires a direct user-started turn and Host approval of the exact target and changes. If approval is disabled, denied, or unavailable, nothing is saved. Another writer advancing the revision also requires a fresh read before retrying.
347
+ ### Team Skill tools
253
348
 
254
- The update tool returns **`team-busy`** while any affected online Session has a running or provisioning teammate. Wait for those teammates to finish, then read the revision again. The Settings page can still save changes for later adoption. A successful tool write uses the same adoption timing as a Settings save; it does not rewrite an existing teammate's stored persona or policy.
349
+ - **`list_team_skills`**: Lists installed private Team Skills, origins, dependencies, and role assignment status.
350
+ - **`assign_team_skill`**: Assigns one Team Skill to a role in a Team (isolated to that agent scope).
351
+ - **`unassign_team_skill`**: Removes a Team Skill assignment from a role.
352
+ - **`remove_team_skill`**: Deletes a Team Skill from the library, enforcing blocker checks.
255
353
 
256
354
  <a id="tool-permissions"></a>
257
355
  ## Tool permissions and security
258
356
 
259
357
  ### Policy modes
260
358
 
261
- - **Default: all tools** adds no allow-list restriction beyond the deployment's permissions and Team role rules.
262
- - **Custom allowed tools** permits only selected tool names, including scoped Team coordination tools such as `send_message`, `list_agents`, and `team_task_*`. An empty custom list denies all configurable tool calls. Switching modes preserves the saved custom selections.
263
- - Captain and member policies are independent. To coordinate a Team under a custom policy, explicitly allow the tools each role needs; allowing them for the captain does not grant them to members.
264
-
265
- The catalog groups tools by this plugin, MCP server, and other tools. Groups offer selection controls and show selected/total counts. Descriptions use the registry's model-facing text and may remain English even when the interface is localized. The catalog combines tools from different Agent presets; a listed tool is not necessarily available to the current Session. Choose an Agent preset that provides it or remove it from the allow-list if application is refused.
266
-
267
- Captain-only tools are disabled on member pages. Native `spawn_teammate` is blocked while a Team preset is active; use `spawn_team_member` so member configuration is applied consistently.
359
+ - **Default: all tools**: No allow-list restriction beyond deployment permissions and role rules.
360
+ - **Custom allowed tools**: Permits only selected tool names. Coordination tools (`send_message`, `list_agents`, `team_task_*`) must be explicitly allowed if needed.
361
+ - Captain and member policies are independent. Granting a tool to the captain does not grant it to members.
268
362
 
269
363
  ### Security boundaries
270
364
 
271
- - The allow-list is **not a filesystem, process, or network sandbox**. An allowed shell, code-capable tool, or third-party plugin may have broad indirect capabilities. Keep Harness's own sandbox and approval settings appropriate for the work.
272
- - Custom mode denies general-purpose `run_code` and ordinary `subagent`, `subagent_fork`, and `workflow` delegation, because those paths do not provide this plugin's durable strict-policy contract. Use preset-managed Team members for delegation.
273
- - Custom policies use native tool calling. If an inherited programmatic tool-calling (PTC) presentation is replaced, Settings discloses the change. If a conflicting presentation is declared on the exact Session scope and cannot be replaced, Team application is refused rather than silently weakening the policy.
274
- - Invalid updates retain the last valid application. If a safe initial application or recovery cannot be established, affected tool execution is blocked until the configuration is corrected or a valid Team/No team selection can take effect.
275
- - Managed members require their durable configuration on resume. Missing or corrupt records are refused rather than replaced by unrestricted defaults. The plugin must remain installed for this protection; it cannot enforce policies after it has been removed.
365
+ - The allow-list is **not a filesystem, process, or network sandbox**. Allowed tools (such as bash) retain their native capabilities. Maintain appropriate Harness sandbox and approval policies.
366
+ - Custom policy mode disallows general-purpose `run_code` and ordinary `subagent` / `workflow` delegation to preserve strict policy contracts. Use preset Team members for delegation.
367
+ - Managed members require their durable configuration on resume. Missing or corrupted records are refused loud rather than falling back to unrestricted defaults.
276
368
 
277
369
  <a id="known-limitations-and-deferred-work"></a>
278
370
  ## Troubleshooting and limitations
@@ -286,76 +378,45 @@ If saving or selecting a Team reports:
286
378
  Configuration for "agent-team-presets" is overridden by a home patch or command-line overlay
287
379
  ```
288
380
 
289
- a patch layer conflicts with the settings write. The installed bundle already inserts the plugin entry; a duplicate hand-written declaration or an overriding configuration can prevent the Host's editor from committing changes.
290
-
291
- 1. Back up the profile, Team definitions, and Session selections.
292
- 2. Check the profile patch, `$DSH_HOME/cordis.patch.yml`, and any `--patch` overlays for conflicting hand-written `agent-team-presets` declarations.
293
- 3. Remove the conflicting declaration or override. **Do not simply move it into another patch.** Preserve the Host-managed settings row and saved Teams; do not delete every occurrence of the entry indiscriminately.
294
- 4. Keep the installed bundle in `dsh.profile.bundles` and edit Teams through Settings.
295
-
296
- The composer and Settings page show the Host's error text when a write fails.
297
-
298
- <a id="verify-member-model-route"></a>
299
- ### A member's displayed model differs from its route
381
+ 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.
300
382
 
301
- In Harness `0.2.0-rc.2`, the Team roster and `list_agents.model` read creation-time options or fallback metadata, not this plugin's member-scoped request selection. `list_agents.provider` identifies the subagent execution backend, not the LLM provider, and the tool does not report `reasoningEffort`. A display mismatch alone does not establish a routing failure.
302
-
303
- - **Check configuration:** `configuredRoute` in the `spawn_team_member` result reports the route captured for that instance. It is omitted when no member-specific route is configured. Advanced diagnostics can also inspect `route` in the durable `agent_team_presets_members` unit.
304
- - **Check request records:** inspect the corresponding member Session's `request/header` or `modelSelection.lastUsed` projection. Before the first request header, `lastUsed` is empty; afterwards it describes the last recorded request, not the next selection.
305
- - **Understand the scope:** a configured value does not prove that a request executed. Request records identify the route used by Harness, not a third-party service's internal model implementation. Self-reported names and throughput are not independent model-identity verification.
306
-
307
- ### Other common issues
383
+ ### Common issues
308
384
 
309
385
  | Symptom | What to check |
310
386
  |---|---|
311
- | Settings page is absent or the plugin is pending | Confirm the target profile, peer compatibility, Agent Teams, and required client services. |
312
- | Model or tool catalog fails to load | Read the displayed error and check the deployment's provider/tool services. Saving a preset cannot add a missing capability. |
313
- | Member creation is refused | Check durable storage, the configured execution backend, route/effort availability, and Harness depth/concurrency/member limits. A finished member frees an activity slot, not its permanent Team roster slot. |
314
- | A prompt fails with an unknown variable | Correct the `{{variable}}` group or provide the variable through the deployment. |
315
- | Windows configuration cannot be parsed | Preserve valid UTF-8 JSON without a BOM when editing profile manifests. Do not disable schema validation or delete active Host/credential locks to work around an error. |
316
- | The selected Team was deleted | Select a valid Team or No team. A missing Team is an error, not an implicit switch to unrestricted mode. |
317
-
318
- ### Persistence and compatibility
319
-
320
- - Team definitions and Session selections live in profile settings, not a structured selection history in the Session event log. Rendered prompts may contain the Team name, but they do not make the selection portable: a fork or a move to another deployment needs an explicit Team selection and matching settings.
321
- - Already-created members retain their creation-time persona, description, route, and tool policy, including when resumed with `send_message`. Saved preset changes apply to future instances; send an existing member a message to adjust its immediate task.
322
- - Legacy captain route fields are removed during settings reconciliation because captains use the conversation's model. Back up configuration before migrating older profiles.
323
- - The bundled schema runtime in v0.1.4 fixes missing-`zod` startup imports from earlier package builds. It does not repair unrelated Harness installation, encoding, lock, or third-party plugin failures.
387
+ | Settings page is absent or plugin pending | Confirm profile type, peer dependencies, Agent Teams enablement, and client services. |
388
+ | Skill deletion button is disabled | The skill is protected: inspect the blocker list in the modal (bound roles or dependencies must be unassigned first). |
389
+ | 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. |
390
+ | Member creation refused | Check storage domain availability, subagent execution backend (`spawn`/`fork`), model quota, and concurrency limits. |
391
+ | 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. |
324
392
 
325
393
  <a id="understand-the-implementation"></a>
326
394
  ## How it works
327
395
 
328
- The plugin uses Cordis and Harness extension points without patching the Host:
396
+ The plugin integrates via Cordis and Harness lifecycle extension points without patching host source code:
329
397
 
330
- 1. **Profile configuration** stores Team definitions and Session selections. The browser uses revision-checked settings writes and an event-driven execution stream.
331
- 2. **Session application** installs the captain's persona/briefing, tool policy, and `spawn_team_member` at the Agent scope. It does not change the root conversation's model selection.
332
- 3. **Member creation** validates the route and delegation limits, stores an instance snapshot, and creates the child through a plugin-owned execution-backend alias. The serial `agent/created` lifecycle installs its model route, persona, Team context, and strict tool policy before its first request.
333
- 4. **Resume and cleanup** restore a managed member's snapshot and dispose scoped registrations when their owning application ends. Existing members keep their captured configuration rather than adopting later preset edits.
398
+ 1. **Profile configuration:** Stores Team presets, display metadata, local categories, and active session selections.
399
+ 2. **Session application:** Installs captain persona, tool policy, and `spawn_team_member` at Agent scope.
400
+ 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**.
401
+ 4. **Private skill manager:** Encapsulates skill storage (`~/.dsh/team-skills`), crash-recovery journaling, dependency resolution, and guarded deletion.
334
402
 
335
403
  ### Source navigation
336
404
 
337
405
  | Area | Source |
338
406
  |---|---|
339
- | Plugin lifecycle and settings reconciliation | [index.ts](<src/index.ts>), [settings-reconcile.ts](<src/settings-reconcile.ts>) |
340
- | Team application and member tool | [application.ts](<src/application.ts>) |
341
- | Member snapshots, identity, and resume | [member-store.ts](<src/member-store.ts>), [member-identity.ts](<src/member-identity.ts>), [member-runtime.ts](<src/member-runtime.ts>) |
342
- | Tool policies and presentation | [tool-policy.ts](<src/tool-policy.ts>), [presentation.ts](<src/presentation.ts>) |
343
- | Preset editing and portable documents | [preset-tools.ts](<src/preset-tools.ts>), [preset-transfer.ts](<src/preset-transfer.ts>) |
344
- | Execution state and catalog | [execution.ts](<src/execution.ts>), [tool-catalog.ts](<src/tool-catalog.ts>) |
345
- | Browser UI | [src/client](<src/client>) |
346
-
347
- <a id="model-experience"></a>
348
- ### Prompt and context behavior
349
-
350
- The captain sees its configured persona, the Team purpose, and a roster of member role targets and descriptions. A member sees its own role instructions and the Team's division of labour; that role list is not a live runtime roster. Use `list_agents` for current targets and status.
351
-
352
- These prompt sections and the `spawn_team_member` schema add to the model's context. Larger rosters and longer prompts therefore use more tokens. Definitions remain stable during a task, but actual prompt-cache reuse depends on prompt variables and the provider; the plugin makes no cache-hit guarantee. Rendered system prompts are recorded in the Session's `system/message` events.
407
+ | Plugin lifecycle and settings reconciliation | [src/index.ts](<src/index.ts>), [src/settings-reconcile.ts](<src/settings-reconcile.ts>) |
408
+ | Built-in team catalog and series | [src/builtin-teams.ts](<src/builtin-teams.ts>), [src/team-catalog.ts](<src/team-catalog.ts>) |
409
+ | Team application and member tool | [src/application.ts](<src/application.ts>) |
410
+ | Member snapshots and runtime injection | [src/member-store.ts](<src/member-store.ts>), [src/member-identity.ts](<src/member-identity.ts>), [src/member-runtime.ts](<src/member-runtime.ts>) |
411
+ | Private Team Skills subsystem | [src/team-skills/store.ts](<src/team-skills/store.ts>), [src/team-skills/manager.ts](<src/team-skills/manager.ts>), [src/team-skills/service.ts](<src/team-skills/service.ts>), [src/team-skills/tools.ts](<src/team-skills/tools.ts>) |
412
+ | Tool policies and presentation | [src/tool-policy.ts](<src/tool-policy.ts>), [src/presentation.ts](<src/presentation.ts>) |
413
+ | Preset tools and transfer | [src/preset-tools.ts](<src/preset-tools.ts>), [src/preset-transfer.ts](<src/preset-transfer.ts>) |
414
+ | Browser client UI | [src/client/](<src/client/>) |
353
415
 
354
- <a id="dev-note"></a>
355
416
  <a id="development"></a>
356
417
  ## Development and contributing
357
418
 
358
- Source development requires a compatible, dependency-installed [Harness checkout](https://github.com/deepseek-ai/deepseek-harness). From this repository:
419
+ Source development requires a compatible, dependency-installed [Harness checkout](https://github.com/deepseek-ai/deepseek-harness):
359
420
 
360
421
  ```sh
361
422
  export DSH_CHECKOUT=/absolute/path/to/deepseek-harness
@@ -364,22 +425,15 @@ npm run typecheck
364
425
  npm run bundle
365
426
  ```
366
427
 
367
- The scripts use the checkout's tooling and source aliases. Tests use mock model adapters; `npm run typecheck` reports this plugin's diagnostics, not a clean typecheck of the entire Harness. `npm run bundle` rebuilds the committed artifacts in an isolated staging workspace. These checks do not replace visual or real-provider testing. See the scripts in [tools](<tools>) and the [test suite](<tests>) for the current verification scope.
368
-
369
- Bug reports and pull requests are welcome in [GitHub Issues](https://github.com/bloodarea/dsh-agent-team-presets/issues) and [Pull requests](https://github.com/bloodarea/dsh-agent-team-presets/pulls). For a report, include:
370
-
371
- - Harness and plugin versions, OS, profile type, and installation source/ref.
372
- - Reproduction steps, expected behavior, actual behavior, and relevant error text.
373
- - A minimal, redacted preset or screenshot when helpful.
374
-
375
- Do not publish credentials, private endpoints, full Session logs, or proprietary prompt content. Review the affected behavior and add focused tests when changing runtime code. Keep the two README versions and prebuilt artifacts consistent with a release.
428
+ Bug reports and pull requests are welcome at [GitHub Issues](https://github.com/bloodarea/dsh-agent-team-presets/issues) and [Pull requests](https://github.com/bloodarea/dsh-agent-team-presets/pulls).
376
429
 
377
430
  <a id="further-exploration"></a>
378
431
  ## Related resources
379
432
 
380
- - [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) — the Host and its plugin system.
381
- - [Built-in preset documents](<contrib/default-presets>) — portable starting points for your own Teams.
382
- - [GitHub Releases](https://github.com/bloodarea/dsh-agent-team-presets/releases) — published versions.
433
+ - [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) — Host and plugin architecture.
434
+ - [Built-in preset documents](<contrib/default-presets>) — Shipped team JSON definitions for reference or custom imports.
435
+ - [Bundled skill documents](<assets/skills>) — Shipped skills (`SKILL.md` bundles) materialized into the private library.
436
+ - [GitHub Releases](https://github.com/bloodarea/dsh-agent-team-presets/releases) — Published release packages.
383
437
 
384
438
  <a id="license"></a>
385
439
  ## License