dsh-subagent-preset-select 0.0.0-stage → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +100 -2
- package/README.zh.md +74 -0
- package/cordis.patch.yml +269 -0
- package/icon.svg +14 -0
- package/lead/index.js +11 -0
- package/lead/locale/en.json +6 -0
- package/lead/locale/zh.json +6 -0
- package/locale/en.json +7 -0
- package/locale/zh.json +7 -0
- package/package.json +56 -4
- package/reader/index.js +5 -0
- package/reader/locale/en.json +6 -0
- package/reader/locale/zh.json +6 -0
- package/worker/index.js +5 -0
- package/worker/locale/en.json +6 -0
- package/worker/locale/zh.json +6 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 sogeisetsu
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,101 @@
|
|
|
1
|
-
|
|
1
|
+
[<kbd>中文</kbd>](README.zh.md)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# subagent-preset-select
|
|
4
|
+
|
|
5
|
+
A configuration-only bundle for **DSH 0.2.2-rc.5 Desktop**. It adds a **Lead** Agent
|
|
6
|
+
preset that lets the main agent assign a different preset to each subagent it
|
|
7
|
+
spawns, plus two teammate presets, **Worker** and **Reader**.
|
|
8
|
+
|
|
9
|
+
## What it adds
|
|
10
|
+
|
|
11
|
+
Three Agent presets, declared as `@deepseek-ai/dsh-agent-preset` rows:
|
|
12
|
+
|
|
13
|
+
| Preset id | Composition | Purpose |
|
|
14
|
+
|---|---|---|
|
|
15
|
+
| `lead` | the shipped `standard` plugin list, verbatim, with one change | the root agent: it keeps the full standard toolset and its `subagent` tool exposes an `agent_preset` parameter with `worker`, `reader`, and `cordis` in the enum |
|
|
16
|
+
| `worker` | persona, instructions, shell, `tool-fs` (writable), `tool-fs-search`, `tool-subagent-control`, compaction | writable teammate for delegated implementation, review, or research |
|
|
17
|
+
| `reader` | persona, instructions, `tool-fs` (`write: false`, `edit: false`), `tool-fs-search`, `tool-subagent-control`, compaction | read-only investigator |
|
|
18
|
+
|
|
19
|
+
The only difference from a shipped `standard` composition is the spawn delegation
|
|
20
|
+
row:
|
|
21
|
+
|
|
22
|
+
```yaml
|
|
23
|
+
- id: tool-subagent
|
|
24
|
+
config:
|
|
25
|
+
provider: spawn
|
|
26
|
+
toolName: subagent
|
|
27
|
+
modelSelection: true
|
|
28
|
+
modelDiscovery: true
|
|
29
|
+
allowedAgentPresets: [worker, reader, cordis]
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
`allowedAgentPresets` is the deployment-owned allowlist that
|
|
33
|
+
`@deepseek-ai/dsh-tool-subagent` turns into the model-visible `agent_preset`
|
|
34
|
+
enum. Omitting the parameter keeps the child on the parent's current preset
|
|
35
|
+
revision, so inheritance still works. The shipped `standard` declaration, the
|
|
36
|
+
`agent-preset-registry` row, and every other official bundle layer are not
|
|
37
|
+
patched: this bundle only inserts new declarations.
|
|
38
|
+
|
|
39
|
+
Both teammate presets mount `@deepseek-ai/dsh-tool-subagent-control`, so a child
|
|
40
|
+
started with them keeps `send_message`, `list_agents`, and `wait_agent`.
|
|
41
|
+
Neither mounts a delegation tool, so the default delegation depth of 1 remains
|
|
42
|
+
the effective cap.
|
|
43
|
+
|
|
44
|
+
## Install
|
|
45
|
+
|
|
46
|
+
Install it with the Plugin Manager (`install_bundle` with this repository root as the target), then choose **Lead** as the new-session default in
|
|
47
|
+
**Settings → General → Agent preset**. New sessions then start with the `lead`
|
|
48
|
+
preset; existing sessions keep the preset they started with. The profile records
|
|
49
|
+
a `link:` dependency, so moving or renaming this directory requires reinstalling
|
|
50
|
+
the bundle. To install a released version, download the `.tgz` attached to the GitHub
|
|
51
|
+
release (`dsh-subagent-preset-select-<version>.tgz`) and add it with `dsh plugin --profile <profile> add <file>.tgz` (or Plugins → Add plugin).
|
|
52
|
+
|
|
53
|
+
From GitHub, add the repository itself as a Git dependency: `dsh plugin --profile <profile> add github:sogeisetsu/subagent-preset-select#v1.2.2` (pin a tag; the full `git+https://github.com/sogeisetsu/subagent-preset-select.git#v1.2.2` spec works too), or paste either address into Plugins → Add plugin. Both paths install the same lean package: the tarball and a Git install are packed with `package.json` `files` (17 runtime files); a Git install additionally clones the repository on the installing machine.
|
|
54
|
+
|
|
55
|
+
## Rollback
|
|
56
|
+
|
|
57
|
+
- set the new-session default back to **Standard** in **Settings → General →
|
|
58
|
+
Agent preset**, and
|
|
59
|
+
- remove or disable this bundle in the Plugin Manager.
|
|
60
|
+
|
|
61
|
+
`standard` itself is never overwritten, so no shipped definition has to be
|
|
62
|
+
restored.
|
|
63
|
+
|
|
64
|
+
## Repository layout
|
|
65
|
+
|
|
66
|
+
| Path | Purpose |
|
|
67
|
+
|---|---|
|
|
68
|
+
| `cordis.patch.yml` | the bundle patch: the three preset declarations |
|
|
69
|
+
| `lead/`, `worker/`, `reader/` | one subpath plugin per preset (`dsh-subagent-preset-select/lead`, …), each with its own `locale/` so the Plugins page shows a distinct row title and description |
|
|
70
|
+
| `locale/{en,zh}.json` | the bundle card text and `meta.detail` per UI language |
|
|
71
|
+
| `scripts/validate-patch.cjs` | offline structural check of the patch |
|
|
72
|
+
| `scripts/scan-sessions.cjs` | host-side acceptance evidence decoded from DSH session logs |
|
|
73
|
+
| `docs/verification.md` | acceptance report |
|
|
74
|
+
| `docs/acceptance/` | the new-session runbook and the machine report |
|
|
75
|
+
| `AGENTS.md` | instructions for coding agents |
|
|
76
|
+
|
|
77
|
+
## Development
|
|
78
|
+
|
|
79
|
+
```sh
|
|
80
|
+
npm install
|
|
81
|
+
npm run validate
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
`npm run validate` parses the patch with `js-yaml` and compiles every `!!js`
|
|
85
|
+
expression; CI runs it on every push and pull request. To regenerate the host-side
|
|
86
|
+
acceptance evidence, run `node scripts/scan-sessions.cjs <encoded-workspace-dir>`;
|
|
87
|
+
it writes `verification/raw/`, which is git-ignored.
|
|
88
|
+
|
|
89
|
+
## Requirements and limits
|
|
90
|
+
|
|
91
|
+
- The `agent_preset` parameter exists only when a preset mounted this tool with
|
|
92
|
+
`allowedAgentPresets`; sessions started on the shipped `standard` preset keep
|
|
93
|
+
the plain `subagent` schema.
|
|
94
|
+
- Preset selection happens when a child starts. A missing or unloadable preset id
|
|
95
|
+
returns an errored tool result and starts no child.
|
|
96
|
+
- Presets are not security sandboxes; they decide composed tools and prompts.
|
|
97
|
+
- Changing a preset's declaration takes effect for agents created afterwards; an
|
|
98
|
+
existing session cannot switch preset after its first turn.
|
|
99
|
+
- Each row is a subpath plugin that re-exports `@deepseek-ai/dsh-agent-preset`;
|
|
100
|
+
the package declares that peer so a linked install resolves the import from the
|
|
101
|
+
DSH installation.
|
package/README.zh.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
[<kbd>English</kbd>](README.md)
|
|
2
|
+
|
|
3
|
+
# subagent-preset-select
|
|
4
|
+
|
|
5
|
+
这是一个用于 **DSH 0.2.2-rc.5 Desktop** 的纯配置 bundle。它新增一个名为 **Lead** 的智能体预设,让主智能体为它派生的每个子智能体指定不同的预设;同时新增两个队友预设 **Worker** 与 **Reader**。
|
|
6
|
+
|
|
7
|
+
## 它新增了什么
|
|
8
|
+
|
|
9
|
+
三条以 `@deepseek-ai/dsh-agent-preset` 行声明的 Agent preset:
|
|
10
|
+
|
|
11
|
+
| preset id | 组成 | 用途 |
|
|
12
|
+
|---|---|---|
|
|
13
|
+
| `lead` | 照搬 shipped `standard` 的插件列表,只有一处改动 | 根智能体:保留完整的 standard 工具集,其 `subagent` 工具暴露 `agent_preset` 参数,枚举包含 `worker`、`reader`、`cordis` |
|
|
14
|
+
| `worker` | persona、指令、shell、`tool-fs`(可写)、`tool-fs-search`、`tool-subagent-control`、compaction | 可写的队友,用于被指派的实现、审查或调研工作 |
|
|
15
|
+
| `reader` | persona、指令、`tool-fs`(`write: false`、`edit: false`)、`tool-fs-search`、`tool-subagent-control`、compaction | 只读的调查者 |
|
|
16
|
+
|
|
17
|
+
与 shipped `standard` 的组合相比,唯一差别在 spawn 委派那一行:
|
|
18
|
+
|
|
19
|
+
```yaml
|
|
20
|
+
- id: tool-subagent
|
|
21
|
+
config:
|
|
22
|
+
provider: spawn
|
|
23
|
+
toolName: subagent
|
|
24
|
+
modelSelection: true
|
|
25
|
+
modelDiscovery: true
|
|
26
|
+
allowedAgentPresets: [worker, reader, cordis]
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
`allowedAgentPresets` 是部署侧的白名单,`@deepseek-ai/dsh-tool-subagent` 会把它变成模型可见的 `agent_preset` 枚举。省略该参数时,子智能体仍然沿用父智能体当前的 preset revision,继承照常生效。shipped 的 `standard` 声明、`agent-preset-registry` 行以及所有其他官方 bundle 层都没有被 patch:本 bundle 只插入新的声明。
|
|
30
|
+
|
|
31
|
+
两个队友 preset 都挂载 `@deepseek-ai/dsh-tool-subagent-control`,因此用它们启动的子智能体保留 `send_message`、`list_agents` 和 `wait_agent`。两者都不挂载委派工具,所以默认委派深度 1 仍是有效上限。
|
|
32
|
+
|
|
33
|
+
## 安装
|
|
34
|
+
|
|
35
|
+
用插件管理器安装(`install_bundle`,target 指向本仓库根目录),然后在 **设置 → 通用 → 智能体预设** 中把 **Lead** 选为新会话的默认预设。此后新会话从 `lead` preset 启动;已有会话保持它们启动时的 preset。profile 里记录的是 `link:` 依赖,所以移动或重命名本目录后需要重新安装一次。也可以从 GitHub Release 下载 `.tgz`,用 `dsh plugin --profile <profile> add <file>.tgz` 安装(或 Plugins > Add plugin)。
|
|
36
|
+
|
|
37
|
+
也可以直接从 GitHub 以 Git 依赖安装:`dsh plugin --profile <profile> add github:sogeisetsu/subagent-preset-select#v1.2.2`(建议钉住 tag;完整的 `git+https://github.com/sogeisetsu/subagent-preset-select.git#v1.2.2` 也可以),或者把地址粘到 Plugins → Add plugin。两种方式装到的都是同一个精简包:`.tgz` 与 Git 安装都按 `package.json` 的 `files` 打包(17 个运行时文件);Git 安装只是额外在本机克隆一次仓库。
|
|
38
|
+
|
|
39
|
+
## 回滚
|
|
40
|
+
|
|
41
|
+
- 在 **设置 → 通用 → 智能体预设** 中把新会话默认改回 **Standard**,并且
|
|
42
|
+
- 在插件管理器中移除或禁用本 bundle。
|
|
43
|
+
|
|
44
|
+
`standard` 本身从未被覆盖,因此不需要恢复任何 shipped 定义。
|
|
45
|
+
|
|
46
|
+
## 仓库结构
|
|
47
|
+
|
|
48
|
+
| 路径 | 用途 |
|
|
49
|
+
|---|---|
|
|
50
|
+
| `cordis.patch.yml` | bundle 补丁:三条 preset 声明 |
|
|
51
|
+
| `lead/`、`worker/`、`reader/` | 每个 preset 一个 subpath plugin(`dsh-subagent-preset-select/lead` 等),各自带 `locale/`,因此 Plugins 页里三行的标题与简介互不相同 |
|
|
52
|
+
| `locale/{en,zh}.json` | bundle 卡片的文案,以及按界面语言选择的 `meta.detail` |
|
|
53
|
+
| `scripts/validate-patch.cjs` | 补丁的离线结构检查 |
|
|
54
|
+
| `scripts/scan-sessions.cjs` | 从 DSH 会话日志解码出主机侧验收证据 |
|
|
55
|
+
| `docs/verification.md` | 验收报告 |
|
|
56
|
+
| `docs/acceptance/` | 新会话验收的 runbook 与机器可读报告 |
|
|
57
|
+
| `AGENTS.md` | 给编码智能体的说明 |
|
|
58
|
+
|
|
59
|
+
## 开发
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
npm install
|
|
63
|
+
npm run validate
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
`npm run validate` 用 `js-yaml` 解析补丁并编译每个 `!!js` 表达式;CI 在每次 push 和 PR 时运行它。要重新生成主机侧验收证据,运行 `node scripts/scan-sessions.cjs <encoded-workspace-dir>`;它会写入 `verification/raw/`,该目录已被 git 忽略。
|
|
67
|
+
|
|
68
|
+
## 要求与限制
|
|
69
|
+
|
|
70
|
+
- 只有当挂载该工具时带了 `allowedAgentPresets` 的 preset 才会出现 `agent_preset` 参数;用 shipped `standard` preset 启动的会话仍是普通的 `subagent` schema。
|
|
71
|
+
- preset 选择在子智能体启动时解析;不存在或无法加载的 preset id 会返回一个出错的工具结果,且不会启动子智能体。
|
|
72
|
+
- preset 不是安全沙箱;它们决定组合出来的工具与提示词。
|
|
73
|
+
- 修改 preset 声明只影响之后创建的智能体;已有会话在首轮之后无法切换 preset。
|
|
74
|
+
- 每一行都是一个 re-export `@deepseek-ai/dsh-agent-preset` 的 subpath plugin;包声明了该 peer,因此 linked 安装时会从 DSH 安装目录解析这个 import。
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
# Workspace bundle: expose an explicit `agent_preset` choice on the lead agent's
|
|
2
|
+
# `subagent` tool, plus the `worker` and `reader` presets that choice can name.
|
|
3
|
+
#
|
|
4
|
+
# - `lead` copies the shipped `standard` declaration's plugin list verbatim and
|
|
5
|
+
# changes exactly one value: the spawn delegation tool's `allowedAgentPresets`,
|
|
6
|
+
# which turns `agent_preset` into a model-visible enum parameter.
|
|
7
|
+
# - `worker` / `reader` are small independent presets for spawned teammates; both
|
|
8
|
+
# mount `tool-subagent-control` so their agents keep `send_message`,
|
|
9
|
+
# `list_agents`, and `wait_agent`. Neither mounts a delegation tool, so the
|
|
10
|
+
# default delegation depth of 1 stays the effective cap.
|
|
11
|
+
#
|
|
12
|
+
# The `agent-preset-registry` row and the shipped `standard` declaration are not
|
|
13
|
+
# patched, so this bundle composes on top of the official presets and reverting
|
|
14
|
+
# it leaves `standard` untouched.
|
|
15
|
+
- insert:
|
|
16
|
+
# ── lead: the shipped standard composition + a preset-selectable spawn tool ──
|
|
17
|
+
- id: preset-lead
|
|
18
|
+
name: 'dsh-subagent-preset-select/lead'
|
|
19
|
+
config:
|
|
20
|
+
id: lead
|
|
21
|
+
name: Lead
|
|
22
|
+
description: The standard toolset, plus an explicit child preset choice on the subagent tool(标准工具集,并让 subagent 工具可显式选择子智能体预设)
|
|
23
|
+
order: 2
|
|
24
|
+
plugins:
|
|
25
|
+
- id: persona
|
|
26
|
+
name: '@deepseek-ai/dsh-persona'
|
|
27
|
+
config:
|
|
28
|
+
prefix: You are a coding agent powered by the {{model}} model.
|
|
29
|
+
- id: agent-instructions
|
|
30
|
+
name: '@deepseek-ai/dsh-agent-instructions'
|
|
31
|
+
config:
|
|
32
|
+
maxBytes: 65536
|
|
33
|
+
- id: time-context
|
|
34
|
+
name: '@deepseek-ai/dsh-time-context'
|
|
35
|
+
- id: tool-bash
|
|
36
|
+
name: '@deepseek-ai/dsh-tool-bash'
|
|
37
|
+
disabled: !!js process.platform === 'win32'
|
|
38
|
+
- id: tool-pwsh
|
|
39
|
+
name: '@deepseek-ai/dsh-tool-pwsh'
|
|
40
|
+
disabled: !!js process.platform !== 'win32'
|
|
41
|
+
- id: tool-fs
|
|
42
|
+
name: '@deepseek-ai/dsh-tool-fs'
|
|
43
|
+
config:
|
|
44
|
+
# Set false to drop the apply_patch tool beside edit.
|
|
45
|
+
applyPatch: false
|
|
46
|
+
- id: tool-fs-search
|
|
47
|
+
name: '@deepseek-ai/dsh-tool-fs-search'
|
|
48
|
+
config:
|
|
49
|
+
sampleOverCapGlobResults: false
|
|
50
|
+
- id: tool-jobs
|
|
51
|
+
name: '@deepseek-ai/dsh-tool-jobs'
|
|
52
|
+
- id: tool-schedule
|
|
53
|
+
name: '@deepseek-ai/dsh-tool-schedule'
|
|
54
|
+
- id: skill-filesystem
|
|
55
|
+
name: '@deepseek-ai/dsh-skill-filesystem'
|
|
56
|
+
config:
|
|
57
|
+
# Same resolution as the shipped standard row: the Loader evaluates
|
|
58
|
+
# this against the declaring patch's baseUrl, from which the shipped
|
|
59
|
+
# package resolves. Wrapped so a future resolution failure degrades to
|
|
60
|
+
# a harmless relative root instead of breaking the whole preset.
|
|
61
|
+
customSkillDirs:
|
|
62
|
+
- !!js "(() => { const p = process.getBuiltinModule('node:path'); const m = process.getBuiltinModule('node:module'); try { return p.join(p.dirname(m.createRequire(baseUrl).resolve('@deepseek-ai/dsh-agent-preset/package.json')), 'skills') } catch (e) { return 'skills' } })()"
|
|
63
|
+
- id: tool-skill
|
|
64
|
+
name: '@deepseek-ai/dsh-tool-skill'
|
|
65
|
+
- id: command-goal
|
|
66
|
+
name: '@deepseek-ai/dsh-command-goal'
|
|
67
|
+
- id: tool-goal
|
|
68
|
+
name: '@deepseek-ai/dsh-tool-goal'
|
|
69
|
+
- id: planning
|
|
70
|
+
name: cordis:group
|
|
71
|
+
group: true
|
|
72
|
+
isolate:
|
|
73
|
+
planMode: true
|
|
74
|
+
config:
|
|
75
|
+
- id: plan-mode
|
|
76
|
+
name: '@deepseek-ai/dsh-plan-mode'
|
|
77
|
+
config:
|
|
78
|
+
section: |
|
|
79
|
+
You are in plan mode. Stay in plan mode until the user approves your plan through exit_plan_mode or switches the session mode. Imperative language to implement changes means plan the implementation, not execute it. A user's conversational agreement — including an answer confirming something you asked — approves nothing and does not end plan mode; fold the confirmed decision into the plan and submit it through exit_plan_mode.
|
|
80
|
+
|
|
81
|
+
Explore first. Use non-mutating reads, searches, static analysis, and checks to ground the plan in the actual repository. Do not edit or write files, change configuration, run formatters or code generation that rewrites tracked files, commit, or otherwise carry out the plan. Prefer existing functions and patterns over new machinery.
|
|
82
|
+
|
|
83
|
+
The tool catalog stays the same across modes for request-cache stability. These plan-mode rules override any later tool description or guidance that suggests using mutation tools; those tools remain listed to keep the tool catalog unchanged. Do not use todo_write to track this planning phase: it tracks implementation after an approved plan, while the plan itself belongs in exit_plan_mode.
|
|
84
|
+
|
|
85
|
+
Resolve discoverable facts by inspection. Use ask_user_question only for user-owned choices or material ambiguity that inspection cannot answer. Do not ask the user where code lives or how current behavior works when you can find out.
|
|
86
|
+
|
|
87
|
+
Make the plan decision-complete: state the goal and success criteria; group implementation changes by subsystem; identify public API, schema, and data-flow changes; cover edge cases, failure modes, tests, acceptance criteria, and explicit assumptions. Keep it concise enough to review but detailed enough that another engineer can implement it without making design decisions.
|
|
88
|
+
|
|
89
|
+
When ready, call exit_plan_mode with the complete plan markdown, starting with a # title. Make exit_plan_mode the only and final tool call in that assistant response: it presents the plan for approval, and implementation begins only in a later step after approval. Do not paste the final plan as a plain reply or ask "should I proceed?" through prose or ask_user_question. If review rejects it, incorporate the feedback and present again. If the review channel is unavailable or aborted, stay in plan mode and ask the user to switch modes manually; do not proceed with implementation.
|
|
90
|
+
- id: compaction
|
|
91
|
+
name: cordis:group
|
|
92
|
+
group: true
|
|
93
|
+
isolate:
|
|
94
|
+
compaction: true
|
|
95
|
+
toolResultPruner: true
|
|
96
|
+
config:
|
|
97
|
+
- id: compaction-basic
|
|
98
|
+
name: '@deepseek-ai/dsh-compaction-basic'
|
|
99
|
+
- id: command-compact
|
|
100
|
+
name: '@deepseek-ai/dsh-command-compact'
|
|
101
|
+
- id: tool-result-pruner
|
|
102
|
+
name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
|
|
103
|
+
config:
|
|
104
|
+
thresholdChars: 8192
|
|
105
|
+
headChars: 4096
|
|
106
|
+
tailChars: 1024
|
|
107
|
+
- id: delegation
|
|
108
|
+
name: cordis:group
|
|
109
|
+
group: true
|
|
110
|
+
isolate:
|
|
111
|
+
workflowEngine: true
|
|
112
|
+
config:
|
|
113
|
+
- id: tool-subagent-control
|
|
114
|
+
name: '@deepseek-ai/dsh-tool-subagent-control'
|
|
115
|
+
config:
|
|
116
|
+
interrupt: false
|
|
117
|
+
- id: tool-subagent
|
|
118
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
119
|
+
config:
|
|
120
|
+
provider: spawn
|
|
121
|
+
toolName: subagent
|
|
122
|
+
modelSelection: true
|
|
123
|
+
modelDiscovery: true
|
|
124
|
+
# The only deviation from the shipped standard row: expose the
|
|
125
|
+
# child preset choice. Omission keeps inheriting the parent.
|
|
126
|
+
allowedAgentPresets:
|
|
127
|
+
- worker
|
|
128
|
+
- reader
|
|
129
|
+
- cordis
|
|
130
|
+
- id: tool-subagent-fork
|
|
131
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
132
|
+
config:
|
|
133
|
+
provider: fork
|
|
134
|
+
toolName: subagent_fork
|
|
135
|
+
- id: workflow-ptc
|
|
136
|
+
name: '@deepseek-ai/dsh-workflow-ptc'
|
|
137
|
+
config:
|
|
138
|
+
provider: spawn
|
|
139
|
+
- id: tool-workflow
|
|
140
|
+
name: '@deepseek-ai/dsh-tool-workflow'
|
|
141
|
+
- id: tool-ask-user
|
|
142
|
+
name: '@deepseek-ai/dsh-tool-ask-user'
|
|
143
|
+
- id: tool-todo
|
|
144
|
+
name: '@deepseek-ai/dsh-tool-todo'
|
|
145
|
+
config:
|
|
146
|
+
allowParallelInProgress: true
|
|
147
|
+
- id: tool-web
|
|
148
|
+
name: '@deepseek-ai/dsh-tool-web'
|
|
149
|
+
config:
|
|
150
|
+
fetch: true
|
|
151
|
+
searchTimeoutMs: 60000
|
|
152
|
+
- id: present
|
|
153
|
+
name: '@deepseek-ai/dsh-tool-present'
|
|
154
|
+
- id: tool-office
|
|
155
|
+
name: '@deepseek-ai/dsh-tool-office'
|
|
156
|
+
- id: tool-plugin-manager
|
|
157
|
+
name: '@deepseek-ai/dsh-plugin-manager/tools'
|
|
158
|
+
disabled: !!js "!ctx.get('profileContext')"
|
|
159
|
+
- id: tool-plugin-market
|
|
160
|
+
name: '@deepseek-ai/dsh-plugin-market/tools'
|
|
161
|
+
disabled: true
|
|
162
|
+
|
|
163
|
+
# ── worker: writable teammate, no delegation of its own ────────────────────
|
|
164
|
+
- id: preset-worker
|
|
165
|
+
name: 'dsh-subagent-preset-select/worker'
|
|
166
|
+
config:
|
|
167
|
+
id: worker
|
|
168
|
+
name: Worker
|
|
169
|
+
description: A writable teammate for delegated implementation, review, or research(可写队友:用于被指派的实现、审查或调研)
|
|
170
|
+
order: 10
|
|
171
|
+
plugins:
|
|
172
|
+
- id: persona
|
|
173
|
+
name: '@deepseek-ai/dsh-persona'
|
|
174
|
+
config:
|
|
175
|
+
prefix: |-
|
|
176
|
+
You are a worker subagent powered by the {{model}} model. The lead agent delegated one self-contained task to you. Work only on that task: use your tools to inspect and change the workspace, then finish with a concise report of what you changed, the exact commands and outputs you relied on, and anything you left unverified. Do not ask the user questions; when a requirement is ambiguous, choose the safest reasonable interpretation and state the choice you made.
|
|
177
|
+
- id: agent-instructions
|
|
178
|
+
name: '@deepseek-ai/dsh-agent-instructions'
|
|
179
|
+
config:
|
|
180
|
+
maxBytes: 65536
|
|
181
|
+
- id: time-context
|
|
182
|
+
name: '@deepseek-ai/dsh-time-context'
|
|
183
|
+
- id: tool-bash
|
|
184
|
+
name: '@deepseek-ai/dsh-tool-bash'
|
|
185
|
+
disabled: !!js process.platform === 'win32'
|
|
186
|
+
- id: tool-pwsh
|
|
187
|
+
name: '@deepseek-ai/dsh-tool-pwsh'
|
|
188
|
+
disabled: !!js process.platform !== 'win32'
|
|
189
|
+
- id: tool-fs
|
|
190
|
+
name: '@deepseek-ai/dsh-tool-fs'
|
|
191
|
+
config:
|
|
192
|
+
applyPatch: false
|
|
193
|
+
- id: tool-fs-search
|
|
194
|
+
name: '@deepseek-ai/dsh-tool-fs-search'
|
|
195
|
+
config:
|
|
196
|
+
sampleOverCapGlobResults: false
|
|
197
|
+
- id: tool-subagent-control
|
|
198
|
+
name: '@deepseek-ai/dsh-tool-subagent-control'
|
|
199
|
+
config:
|
|
200
|
+
interrupt: false
|
|
201
|
+
- id: compaction
|
|
202
|
+
name: cordis:group
|
|
203
|
+
group: true
|
|
204
|
+
isolate:
|
|
205
|
+
compaction: true
|
|
206
|
+
toolResultPruner: true
|
|
207
|
+
config:
|
|
208
|
+
- id: compaction-basic
|
|
209
|
+
name: '@deepseek-ai/dsh-compaction-basic'
|
|
210
|
+
- id: command-compact
|
|
211
|
+
name: '@deepseek-ai/dsh-command-compact'
|
|
212
|
+
- id: tool-result-pruner
|
|
213
|
+
name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
|
|
214
|
+
config:
|
|
215
|
+
thresholdChars: 8192
|
|
216
|
+
headChars: 4096
|
|
217
|
+
tailChars: 1024
|
|
218
|
+
|
|
219
|
+
# ── reader: read-only investigator, no delegation of its own ───────────────
|
|
220
|
+
- id: preset-reader
|
|
221
|
+
name: 'dsh-subagent-preset-select/reader'
|
|
222
|
+
config:
|
|
223
|
+
id: reader
|
|
224
|
+
name: Reader
|
|
225
|
+
description: A read-only investigator for delegated code reading and research(只读调查者:用于被指派的代码阅读与调研)
|
|
226
|
+
order: 11
|
|
227
|
+
plugins:
|
|
228
|
+
- id: persona
|
|
229
|
+
name: '@deepseek-ai/dsh-persona'
|
|
230
|
+
config:
|
|
231
|
+
prefix: |-
|
|
232
|
+
You are a reader subagent powered by the {{model}} model. The lead agent delegated one read-only investigation to you. Read files and search the workspace, but never create, modify, delete, or move files and never run a command that writes. Finish with a concise, evidence-based report that cites the file paths and exact outputs you relied on, and state what you could not verify.
|
|
233
|
+
- id: agent-instructions
|
|
234
|
+
name: '@deepseek-ai/dsh-agent-instructions'
|
|
235
|
+
config:
|
|
236
|
+
maxBytes: 65536
|
|
237
|
+
- id: time-context
|
|
238
|
+
name: '@deepseek-ai/dsh-time-context'
|
|
239
|
+
- id: tool-fs
|
|
240
|
+
name: '@deepseek-ai/dsh-tool-fs'
|
|
241
|
+
config:
|
|
242
|
+
write: false
|
|
243
|
+
edit: false
|
|
244
|
+
applyPatch: false
|
|
245
|
+
- id: tool-fs-search
|
|
246
|
+
name: '@deepseek-ai/dsh-tool-fs-search'
|
|
247
|
+
config:
|
|
248
|
+
sampleOverCapGlobResults: false
|
|
249
|
+
- id: tool-subagent-control
|
|
250
|
+
name: '@deepseek-ai/dsh-tool-subagent-control'
|
|
251
|
+
config:
|
|
252
|
+
interrupt: false
|
|
253
|
+
- id: compaction
|
|
254
|
+
name: cordis:group
|
|
255
|
+
group: true
|
|
256
|
+
isolate:
|
|
257
|
+
compaction: true
|
|
258
|
+
toolResultPruner: true
|
|
259
|
+
config:
|
|
260
|
+
- id: compaction-basic
|
|
261
|
+
name: '@deepseek-ai/dsh-compaction-basic'
|
|
262
|
+
- id: command-compact
|
|
263
|
+
name: '@deepseek-ai/dsh-command-compact'
|
|
264
|
+
- id: tool-result-pruner
|
|
265
|
+
name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
|
|
266
|
+
config:
|
|
267
|
+
thresholdChars: 8192
|
|
268
|
+
headChars: 4096
|
|
269
|
+
tailChars: 1024
|
package/icon.svg
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-label="Subagent preset select">
|
|
2
|
+
<rect x="2" y="2" width="60" height="60" rx="14" fill="#0f172a"/>
|
|
3
|
+
<g fill="none" stroke="#475569" stroke-width="3" stroke-linecap="round">
|
|
4
|
+
<path d="M23 18h6"/>
|
|
5
|
+
<path d="M23 46h6"/>
|
|
6
|
+
</g>
|
|
7
|
+
<g fill="#475569">
|
|
8
|
+
<circle cx="17" cy="18" r="5"/>
|
|
9
|
+
<circle cx="17" cy="46" r="5"/>
|
|
10
|
+
</g>
|
|
11
|
+
<circle cx="17" cy="32" r="6" fill="#38bdf8"/>
|
|
12
|
+
<path d="M17 32h8" stroke="#38bdf8" stroke-width="3" stroke-linecap="round"/>
|
|
13
|
+
<path d="M45 20l10 12-10 12" fill="none" stroke="#38bdf8" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
|
|
14
|
+
</svg>
|
package/lead/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Subpath plugin for the `lead` Agent preset.
|
|
3
|
+
*
|
|
4
|
+
* The Plugins page derives a row's title and description from the row's module
|
|
5
|
+
* specifier alone (`pluginPackages.metaOf(row.name)`), so each preset is declared
|
|
6
|
+
* through its own subpath with its own `locale/` directory. Re-exporting the
|
|
7
|
+
* shipped declaration plugin keeps its exact semantics: the class-level
|
|
8
|
+
* `cordis.group` marker preserves the child `!!js` expressions until they are
|
|
9
|
+
* evaluated in the preset scope.
|
|
10
|
+
*/
|
|
11
|
+
export { default } from '@deepseek-ai/dsh-agent-preset'
|
package/locale/en.json
ADDED
package/locale/zh.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,58 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-subagent-preset-select",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
6
|
-
|
|
3
|
+
"version": "1.2.2",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Adds a Lead Agent preset that lets the main agent assign a different preset to each subagent it spawns, plus two teammate presets, Worker and Reader.",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/sogeisetsu/subagent-preset-select.git"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/sogeisetsu/subagent-preset-select#readme",
|
|
12
|
+
"keywords": [
|
|
13
|
+
"dsh",
|
|
14
|
+
"deepseek-harness",
|
|
15
|
+
"agent-preset",
|
|
16
|
+
"subagent"
|
|
17
|
+
],
|
|
18
|
+
"exports": {
|
|
19
|
+
"./lead": "./lead/index.js",
|
|
20
|
+
"./worker": "./worker/index.js",
|
|
21
|
+
"./reader": "./reader/index.js",
|
|
22
|
+
"./lead/locale/*.json": "./lead/locale/*.json",
|
|
23
|
+
"./worker/locale/*.json": "./worker/locale/*.json",
|
|
24
|
+
"./reader/locale/*.json": "./reader/locale/*.json",
|
|
25
|
+
"./locale/*.json": "./locale/*.json",
|
|
26
|
+
"./icon": "./icon.svg"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"cordis.patch.yml",
|
|
30
|
+
"README.md",
|
|
31
|
+
"README.zh.md",
|
|
32
|
+
"lead",
|
|
33
|
+
"worker",
|
|
34
|
+
"reader",
|
|
35
|
+
"locale/*.json",
|
|
36
|
+
"icon.svg"
|
|
37
|
+
],
|
|
38
|
+
"scripts": {
|
|
39
|
+
"validate": "node scripts/validate-patch.cjs"
|
|
40
|
+
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"@deepseek-ai/dsh-agent-preset": ">=0.2.2-rc.5 <0.3.0"
|
|
43
|
+
},
|
|
44
|
+
"engines": {
|
|
45
|
+
"dsh": ">=0.2.2-rc.5 <0.3.0"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"js-yaml": "^4.1.0"
|
|
49
|
+
},
|
|
50
|
+
"dsh": {
|
|
51
|
+
"bundle": {
|
|
52
|
+
"patch": "./cordis.patch.yml"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"publishConfig": {
|
|
56
|
+
"access": "public"
|
|
57
|
+
}
|
|
58
|
+
}
|
package/reader/index.js
ADDED
package/worker/index.js
ADDED