dsh-gitbash-shell 0.31.1 → 0.32.1

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.
@@ -1,74 +0,0 @@
1
- # ERA: one text serves both dsh eras — the built-in `minimal` preset did not
2
- # change across the 0.1.1 → 0.1.2 code→ptc rename, so no agent.cordis.ptc.yml
3
- # twin exists here. The plugin probes the roster and writes this file as the
4
- # preset's own agent.cordis.yml either way.
5
- # The `minimal` agent preset: a fixed-prompt, single-tool coding-agent composition.
6
- #
7
- # The persona is the complete system prompt, so global identity, Web orientation,
8
- # tool guidance, and later assembly listeners cannot add prompt text. Runtime
9
- # context snapshots are suppressed for this preset, and the model receives only
10
- # the persistent shell (Git for Windows bash; bash on POSIX). Context compaction
11
- # is absent.
12
-
13
- - id: persona
14
- name: '@deepseek-ai/dsh-persona'
15
- config:
16
- text: You are a helpful software engineer assistant.
17
- complete: true
18
- includeRuntimeContext: false
19
-
20
- # The PTY registry is an agent-owned service, so it lives in an entry-local
21
- # realm. The backend still consumes the host sandbox policy and subprocess
22
- # implementation, while the tool registers into this agent's scoped catalog.
23
- # Exactly one shell stack mounts per host: the bash stack gates off win32 and
24
- # its pwsh twin gates off POSIX, mirroring the one-shot shell rows.
25
- - id: persistent-shell
26
- name: cordis:group
27
- group: true
28
- isolate:
29
- terminals: true
30
- config:
31
- - id: pty
32
- name: '@deepseek-ai/dsh-terminal'
33
-
34
- - id: terminal-bash
35
- name: '@deepseek-ai/dsh-terminal-bash'
36
- disabled: false
37
- config:
38
- timeoutMs: 300000
39
- shellPath: !!js "process.platform === 'win32' ? 'C:/Program Files/Git/bin/bash.exe' : '/bin/bash'"
40
-
41
- - id: persistent-bash
42
- name: '@deepseek-ai/dsh-tool-bash-persistent'
43
- disabled: false
44
- config:
45
- timeoutMs: 300000
46
- description: |-
47
- Run commands in a bash shell (Git for Windows bash on Windows: native paths like C:/... work, and PATH plus the rest of the environment are inherited from the host)
48
- * When invoking this tool, the contents of the "command" parameter does NOT need to be XML-escaped.
49
- * Network access depends on the task environment. Prefer configured mirrors/proxies when they are available.
50
- * State is persistent across command calls and discussions with the user.
51
- * To inspect a particular line range of a file, e.g. lines 10-25, try 'sed -n 10,25p /path/to/the/file'.
52
- * Please avoid commands that may produce a very large amount of output.
53
- * Please run long lived commands in the background, e.g. 'sleep 10 &' or start a server in the background.
54
-
55
- - id: terminal-pwsh
56
- name: '@deepseek-ai/dsh-terminal-bash'
57
- disabled: true
58
- config:
59
- shellDialect: pwsh
60
- timeoutMs: 300000
61
-
62
- - id: persistent-pwsh
63
- name: '@deepseek-ai/dsh-tool-pwsh-persistent'
64
- disabled: true
65
- config:
66
- timeoutMs: 300000
67
- description: |-
68
- Run commands in a PowerShell shell
69
- * When invoking this tool, the contents of the "command" parameter does NOT need to be XML-escaped.
70
- * You don't have access to the internet via this tool.
71
- * State is persistent across command calls and discussions with the user.
72
- * Use native Windows paths (C:\...) and $env:NAME variables; this is PowerShell, not bash.
73
- * Please avoid commands that may produce a very large amount of output.
74
- * Please run long lived commands in the background, e.g. 'Start-Job' or start a server with Start-Process.
@@ -1,3 +0,0 @@
1
- name: 极简模式 · Git Bash
2
- description: 仅提供持久 shell 的单工具编码 Agent。(Shell 使用 Git Bash)
3
- order: 3
@@ -1,262 +0,0 @@
1
- # ERA (persona-split): dsh >= 0.1.3-alpha.2 text — the persona row uses the
2
- # `prefix:`/`suffix:` keys (40792330c0 split dsh-persona single text key).
3
- # The pre-split texts live in the sibling files named in the banner below; the
4
- # plugin probes the roster AND the persona form at materialization and writes
5
- # the picked text as the preset own agent.cordis.yml.
6
- # ERA: dsh >= 0.1.2 text (renamed built-in rows, incl. the new `command-goal`).
7
- # The dsh <= 0.1.1 era text lives in agent.cordis.yml; the plugin probes the
8
- # roster at materialization and writes the picked text as the preset's own
9
- # agent.cordis.yml.
10
- # The `standard` agent preset: the full coding agent, mounted once per process.
11
- #
12
- # This file is an AGENT-PLANE composition. The roster mounts it ONCE under a
13
- # standing scope; every session naming it joins by scope parentage, so the
14
- # tools and prompt sections registered here cover each joined agent while a
15
- # session's own state stays keyed per Session/Agent inside the plugins. The
16
- # host composition (`base.cordis.yml` + `web.cordis.yml`) keeps everything a
17
- # preset must not own: the registries themselves, the sandbox and approval
18
- # stack, persistence, and the model route.
19
- #
20
- # A service row here MUST sit inside a group carrying an `isolate` realm.
21
- # Without one it publishes into the root realm, where it is process-global —
22
- # another preset publishing the same name collides, and a host reader would
23
- # resolve one preset's instance for every session; `dsh-agent-presets` rejects
24
- # that at mount. `true` means an entry-local realm: this standing mount's own
25
- # private instance, apart from every other preset's. (A shared label does NOT
26
- # pool instances — `provide()` throws on the second registration under the
27
- # same realm symbol; labels join REALMS, and are not what this file needs.)
28
-
29
- # ── identity ────────────────────────────────────────────────────────────────
30
-
31
- # The preset's own persona, shadowing the deployment default for this agent.
32
- # `{{model}}` and `{{cwd}}` resolve from the agent's own route and workspace.
33
- - id: persona
34
- name: '@deepseek-ai/dsh-persona'
35
- config:
36
- suffix: Your working directory is {{cwd}}.
37
- prefix: >-
38
- You are a coding agent powered by the {{model}} model.
39
-
40
- - id: agent-instructions
41
- name: '@deepseek-ai/dsh-agent-instructions'
42
- config:
43
- maxBytes: 65536
44
-
45
- # ── shell ───────────────────────────────────────────────────────────────────
46
-
47
- # `shell-env` stays in the HOST composition: `apps/cli/src/web.ts` injects it to
48
- # publish `DSH_WEB_URL`/`DSH_WEB_MODE`, and a host row that injects a service is
49
- # the criterion for host-plane ownership — injection resolves before any session
50
- # exists, so there is no agent to key by. Behind a preset realm those variables
51
- # never reached the model's shell at all. Both shell tools consume the host
52
- # registry from here; the host executor is the Git Bash provider (`dsh-gitbash-shell`)
53
- # host-plane too.
54
- - id: tool-bash
55
- name: '@deepseek-ai/dsh-tool-bash'
56
- # Git Bash on Windows: the host executor is dsh-gitbash-shell (see $DSH_HOME/cordis.patch.yml).
57
- disabled: false
58
-
59
- - id: tool-pwsh
60
- name: '@deepseek-ai/dsh-tool-pwsh'
61
- disabled: true
62
-
63
- # ── filesystem ──────────────────────────────────────────────────────────────
64
-
65
- # Both register into the host `tools` registry and provide nothing, so
66
- # they need no realm. The `fs` service and its policy stay in the host.
67
- - id: tool-fs
68
- name: '@deepseek-ai/dsh-tool-fs'
69
-
70
- - id: tool-fs-search
71
- name: '@deepseek-ai/dsh-tool-fs-search'
72
- config:
73
- sampleOverCapGlobResults: false
74
-
75
- # ── background jobs ────────────────────────────────────────────────────────
76
-
77
- # Only the model-facing controls. The task REGISTRY stays on the host plane:
78
- # its producers sit outside any realm this file could put it in — `tool-bash`
79
- # above resolves it with `ctx.get`, and an entry-local realm here is invisible
80
- # to every sibling row, so `run_in_background` would answer "background jobs
81
- # unavailable" while these controls sat in the catalog. The registry is keyed by
82
- # owning agent anyway, so one host instance serves every session. What a preset
83
- # chooses is whether its agent can collect and stop background work at all.
84
- - id: tool-jobs
85
- name: '@deepseek-ai/dsh-tool-jobs'
86
-
87
- # ── skills ──────────────────────────────────────────────────────────────────
88
-
89
- # The skill REGISTRY lives in the host composition and is layered per scope:
90
- # these rows register into THIS preset's layer of it, so they need no realm.
91
- # `skill-filesystem` contributes local-root discovery for agents on this preset, and
92
- # `tool-skill` gives them the catalog and loader; the merged catalog also
93
- # carries whatever the deployment registered globally (repository plugins).
94
- - id: skill-filesystem
95
- name: '@deepseek-ai/dsh-skill-filesystem'
96
-
97
- - id: tool-skill
98
- name: '@deepseek-ai/dsh-tool-skill'
99
-
100
- # ── goals ───────────────────────────────────────────────────────────────────
101
-
102
- # The goal service and session driver stay on the host plane, where the Gateway
103
- # can resolve them. The human command and model-facing tool register into this
104
- # preset's scoped layers.
105
- - id: command-goal
106
- name: '@deepseek-ai/dsh-command-goal'
107
-
108
- - id: tool-goal
109
- name: '@deepseek-ai/dsh-tool-goal'
110
-
111
- # ── plan mode ───────────────────────────────────────────────────────────────
112
-
113
- # Plan state is per-agent by nature, so an entry-local realm is not a
114
- # workaround here — it is the correct lifetime.
115
- - id: planning
116
- name: cordis:group
117
- group: true
118
- isolate:
119
- planMode: true
120
- config:
121
- - id: plan-mode
122
- name: '@deepseek-ai/dsh-plan-mode'
123
- config:
124
- section: |
125
- You are in plan mode. Stay in plan mode until exit_plan_mode succeeds or the user 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.
126
-
127
- 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.
128
-
129
- 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.
130
-
131
- 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.
132
-
133
- 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.
134
-
135
- 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.
136
-
137
- # ── compaction ──────────────────────────────────────────────────────────────
138
-
139
- # `compaction-basic` reads `toolResultPrune` through `ctx.get`, so the pruner must
140
- # share this realm rather than sit outside it.
141
- #
142
- # `tokenMeter` is deliberately NOT in this realm: the meter stays on the HOST
143
- # plane, and the rows here resolve that one instance. It takes no configuration,
144
- # keys every fold by Session, and owns the context-meter projection units the
145
- # browser reads for every session — behind a realm those units would come and go
146
- # with whichever presets happen to be mounted. What a preset chooses is whether
147
- # its agent compacts at all, which is `compaction-basic` below.
148
- - id: compaction
149
- name: cordis:group
150
- group: true
151
- isolate:
152
- compaction: true
153
- toolResultPruner: true
154
- config:
155
- - id: compaction-basic
156
- name: '@deepseek-ai/dsh-compaction-basic'
157
-
158
- - id: command-compact
159
- name: '@deepseek-ai/dsh-command-compact'
160
-
161
- - id: tool-result-pruner
162
- name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
163
- config:
164
- thresholdChars: 8192
165
- headChars: 4096
166
- tailChars: 1024
167
-
168
- # ── delegation and workflows ────────────────────────────────────────────────
169
-
170
- # The `subagents` registry and its spawn/fork backends live in the HOST
171
- # composition: the registry is a process singleton whose cross-session queries
172
- # the api-proxy serves to the browser, and a provider name may only be
173
- # registered once. This preset contributes the delegation TOOLS, which resolve
174
- # that host registry.
175
- #
176
- # `workflows` is different — nothing outside an agent reads it — so every row
177
- # that reaches it shares one entry-local realm here, and a consumer left
178
- # outside would resolve a host registry this preset does not populate.
179
- - id: delegation
180
- name: cordis:group
181
- group: true
182
- isolate:
183
- workflowEngine: true
184
- config:
185
- - id: tool-subagent-control
186
- name: '@deepseek-ai/dsh-tool-subagent-control'
187
-
188
- - id: tool-subagent-list-agents
189
- name: '@deepseek-ai/dsh-tool-subagent-control/list-agents'
190
-
191
- - id: tool-subagent
192
- name: '@deepseek-ai/dsh-tool-subagent'
193
- config:
194
- provider: spawn
195
- toolName: subagent
196
- modelSelectionSettings: true
197
- backgroundMode: continuable
198
-
199
- # Fork omits model selection so provider/model stay equal to the parent and
200
- # the inherited history remains eligible for KV Cache reuse. This preset
201
- # keeps fork continuable; parent and child inherit the same messaging tool,
202
- # while the parent id and return guidance follow the inherited history.
203
- - id: tool-subagent-fork
204
- name: '@deepseek-ai/dsh-tool-subagent'
205
- config:
206
- provider: fork
207
- toolName: subagent_fork
208
- backgroundMode: continuable
209
-
210
- # Production dsh does not install these optional providers. Install the
211
- # matching Bundle in this Profile and restart the Host, then copy this
212
- # preset and remove `disabled` from the matching tool row. Host availability
213
- # alone grants no tool.
214
- - id: tool-subagent-codex
215
- name: '@deepseek-ai/dsh-tool-subagent'
216
- disabled: true
217
- config:
218
- provider: codex
219
- toolName: subagent_codex
220
- backgroundMode: one-shot
221
- maxDepth: provider-managed
222
-
223
- - id: tool-subagent-claude-code
224
- name: '@deepseek-ai/dsh-tool-subagent'
225
- disabled: true
226
- config:
227
- provider: claude-code
228
- toolName: subagent_claude_code
229
- backgroundMode: one-shot
230
- maxDepth: provider-managed
231
-
232
- - id: workflow-worker-thread
233
- name: '@deepseek-ai/dsh-workflow-worker-thread'
234
- config:
235
- provider: spawn
236
-
237
- - id: tool-workflow
238
- name: '@deepseek-ai/dsh-tool-workflow'
239
-
240
- - id: tool-ralph
241
- name: '@deepseek-ai/dsh-tool-ralph'
242
- config:
243
- subagentProvider: spawn
244
- maxRounds: 64
245
-
246
- # ── remaining model-facing rows ─────────────────────────────────────────────
247
-
248
- - id: tool-ask-user
249
- name: '@deepseek-ai/dsh-tool-ask-user'
250
-
251
- - id: tool-todo
252
- name: '@deepseek-ai/dsh-tool-todo'
253
- config:
254
- allowParallelInProgress: true
255
-
256
- # The `web` service and its search provider stay in the host composition; only
257
- # the model-facing tool is per-session.
258
- - id: tool-web
259
- name: '@deepseek-ai/dsh-tool-web'
260
- config:
261
- fetch: true
262
- searchTimeoutMs: 60000
@@ -1,256 +0,0 @@
1
- # ERA: dsh >= 0.1.2 text (renamed built-in rows, incl. the new `command-goal`).
2
- # The dsh <= 0.1.1 era text lives in agent.cordis.yml; the plugin probes the
3
- # roster at materialization and writes the picked text as the preset's own
4
- # agent.cordis.yml.
5
- # The `standard` agent preset: the full coding agent, mounted once per process.
6
- #
7
- # This file is an AGENT-PLANE composition. The roster mounts it ONCE under a
8
- # standing scope; every session naming it joins by scope parentage, so the
9
- # tools and prompt sections registered here cover each joined agent while a
10
- # session's own state stays keyed per Session/Agent inside the plugins. The
11
- # host composition (`base.cordis.yml` + `web.cordis.yml`) keeps everything a
12
- # preset must not own: the registries themselves, the sandbox and approval
13
- # stack, persistence, and the model route.
14
- #
15
- # A service row here MUST sit inside a group carrying an `isolate` realm.
16
- # Without one it publishes into the root realm, where it is process-global —
17
- # another preset publishing the same name collides, and a host reader would
18
- # resolve one preset's instance for every session; `dsh-agent-presets` rejects
19
- # that at mount. `true` means an entry-local realm: this standing mount's own
20
- # private instance, apart from every other preset's. (A shared label does NOT
21
- # pool instances — `provide()` throws on the second registration under the
22
- # same realm symbol; labels join REALMS, and are not what this file needs.)
23
-
24
- # ── identity ────────────────────────────────────────────────────────────────
25
-
26
- # The preset's own persona, shadowing the deployment default for this agent.
27
- # `{{model}}` and `{{cwd}}` resolve from the agent's own route and workspace.
28
- - id: persona
29
- name: '@deepseek-ai/dsh-persona'
30
- config:
31
- text: >-
32
- You are a coding agent powered by the {{model}} model. Your working directory is {{cwd}}.
33
-
34
- - id: agent-instructions
35
- name: '@deepseek-ai/dsh-agent-instructions'
36
- config:
37
- maxBytes: 65536
38
-
39
- # ── shell ───────────────────────────────────────────────────────────────────
40
-
41
- # `shell-env` stays in the HOST composition: `apps/cli/src/web.ts` injects it to
42
- # publish `DSH_WEB_URL`/`DSH_WEB_MODE`, and a host row that injects a service is
43
- # the criterion for host-plane ownership — injection resolves before any session
44
- # exists, so there is no agent to key by. Behind a preset realm those variables
45
- # never reached the model's shell at all. Both shell tools consume the host
46
- # registry from here; the host executor is the Git Bash provider (`dsh-gitbash-shell`)
47
- # host-plane too.
48
- - id: tool-bash
49
- name: '@deepseek-ai/dsh-tool-bash'
50
- # Git Bash on Windows: the host executor is dsh-gitbash-shell (see $DSH_HOME/cordis.patch.yml).
51
- disabled: false
52
-
53
- - id: tool-pwsh
54
- name: '@deepseek-ai/dsh-tool-pwsh'
55
- disabled: true
56
-
57
- # ── filesystem ──────────────────────────────────────────────────────────────
58
-
59
- # Both register into the host `tools` registry and provide nothing, so
60
- # they need no realm. The `fs` service and its policy stay in the host.
61
- - id: tool-fs
62
- name: '@deepseek-ai/dsh-tool-fs'
63
-
64
- - id: tool-fs-search
65
- name: '@deepseek-ai/dsh-tool-fs-search'
66
- config:
67
- sampleOverCapGlobResults: false
68
-
69
- # ── background jobs ────────────────────────────────────────────────────────
70
-
71
- # Only the model-facing controls. The task REGISTRY stays on the host plane:
72
- # its producers sit outside any realm this file could put it in — `tool-bash`
73
- # above resolves it with `ctx.get`, and an entry-local realm here is invisible
74
- # to every sibling row, so `run_in_background` would answer "background jobs
75
- # unavailable" while these controls sat in the catalog. The registry is keyed by
76
- # owning agent anyway, so one host instance serves every session. What a preset
77
- # chooses is whether its agent can collect and stop background work at all.
78
- - id: tool-jobs
79
- name: '@deepseek-ai/dsh-tool-jobs'
80
-
81
- # ── skills ──────────────────────────────────────────────────────────────────
82
-
83
- # The skill REGISTRY lives in the host composition and is layered per scope:
84
- # these rows register into THIS preset's layer of it, so they need no realm.
85
- # `skill-filesystem` contributes local-root discovery for agents on this preset, and
86
- # `tool-skill` gives them the catalog and loader; the merged catalog also
87
- # carries whatever the deployment registered globally (repository plugins).
88
- - id: skill-filesystem
89
- name: '@deepseek-ai/dsh-skill-filesystem'
90
-
91
- - id: tool-skill
92
- name: '@deepseek-ai/dsh-tool-skill'
93
-
94
- # ── goals ───────────────────────────────────────────────────────────────────
95
-
96
- # The goal service and session driver stay on the host plane, where the Gateway
97
- # can resolve them. The human command and model-facing tool register into this
98
- # preset's scoped layers.
99
- - id: command-goal
100
- name: '@deepseek-ai/dsh-command-goal'
101
-
102
- - id: tool-goal
103
- name: '@deepseek-ai/dsh-tool-goal'
104
-
105
- # ── plan mode ───────────────────────────────────────────────────────────────
106
-
107
- # Plan state is per-agent by nature, so an entry-local realm is not a
108
- # workaround here — it is the correct lifetime.
109
- - id: planning
110
- name: cordis:group
111
- group: true
112
- isolate:
113
- planMode: true
114
- config:
115
- - id: plan-mode
116
- name: '@deepseek-ai/dsh-plan-mode'
117
- config:
118
- section: |
119
- You are in plan mode. Stay in plan mode until exit_plan_mode succeeds or the user 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.
120
-
121
- 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.
122
-
123
- 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.
124
-
125
- 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.
126
-
127
- 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.
128
-
129
- 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.
130
-
131
- # ── compaction ──────────────────────────────────────────────────────────────
132
-
133
- # `compaction-basic` reads `toolResultPrune` through `ctx.get`, so the pruner must
134
- # share this realm rather than sit outside it.
135
- #
136
- # `tokenMeter` is deliberately NOT in this realm: the meter stays on the HOST
137
- # plane, and the rows here resolve that one instance. It takes no configuration,
138
- # keys every fold by Session, and owns the context-meter projection units the
139
- # browser reads for every session — behind a realm those units would come and go
140
- # with whichever presets happen to be mounted. What a preset chooses is whether
141
- # its agent compacts at all, which is `compaction-basic` below.
142
- - id: compaction
143
- name: cordis:group
144
- group: true
145
- isolate:
146
- compaction: true
147
- toolResultPruner: true
148
- config:
149
- - id: compaction-basic
150
- name: '@deepseek-ai/dsh-compaction-basic'
151
-
152
- - id: command-compact
153
- name: '@deepseek-ai/dsh-command-compact'
154
-
155
- - id: tool-result-pruner
156
- name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
157
- config:
158
- thresholdChars: 8192
159
- headChars: 4096
160
- tailChars: 1024
161
-
162
- # ── delegation and workflows ────────────────────────────────────────────────
163
-
164
- # The `subagents` registry and its spawn/fork backends live in the HOST
165
- # composition: the registry is a process singleton whose cross-session queries
166
- # the api-proxy serves to the browser, and a provider name may only be
167
- # registered once. This preset contributes the delegation TOOLS, which resolve
168
- # that host registry.
169
- #
170
- # `workflows` is different — nothing outside an agent reads it — so every row
171
- # that reaches it shares one entry-local realm here, and a consumer left
172
- # outside would resolve a host registry this preset does not populate.
173
- - id: delegation
174
- name: cordis:group
175
- group: true
176
- isolate:
177
- workflowEngine: true
178
- config:
179
- - id: tool-subagent-control
180
- name: '@deepseek-ai/dsh-tool-subagent-control'
181
-
182
- - id: tool-subagent-list-agents
183
- name: '@deepseek-ai/dsh-tool-subagent-control/list-agents'
184
-
185
- - id: tool-subagent
186
- name: '@deepseek-ai/dsh-tool-subagent'
187
- config:
188
- provider: spawn
189
- toolName: subagent
190
- modelSelectionSettings: true
191
- backgroundMode: continuable
192
-
193
- # Fork omits model selection so provider/model stay equal to the parent and
194
- # the inherited history remains eligible for KV Cache reuse. This preset
195
- # keeps fork continuable; parent and child inherit the same messaging tool,
196
- # while the parent id and return guidance follow the inherited history.
197
- - id: tool-subagent-fork
198
- name: '@deepseek-ai/dsh-tool-subagent'
199
- config:
200
- provider: fork
201
- toolName: subagent_fork
202
- backgroundMode: continuable
203
-
204
- # Production dsh does not install these optional providers. Install the
205
- # matching Bundle in this Profile and restart the Host, then copy this
206
- # preset and remove `disabled` from the matching tool row. Host availability
207
- # alone grants no tool.
208
- - id: tool-subagent-codex
209
- name: '@deepseek-ai/dsh-tool-subagent'
210
- disabled: true
211
- config:
212
- provider: codex
213
- toolName: subagent_codex
214
- backgroundMode: one-shot
215
- maxDepth: provider-managed
216
-
217
- - id: tool-subagent-claude-code
218
- name: '@deepseek-ai/dsh-tool-subagent'
219
- disabled: true
220
- config:
221
- provider: claude-code
222
- toolName: subagent_claude_code
223
- backgroundMode: one-shot
224
- maxDepth: provider-managed
225
-
226
- - id: workflow-worker-thread
227
- name: '@deepseek-ai/dsh-workflow-worker-thread'
228
- config:
229
- provider: spawn
230
-
231
- - id: tool-workflow
232
- name: '@deepseek-ai/dsh-tool-workflow'
233
-
234
- - id: tool-ralph
235
- name: '@deepseek-ai/dsh-tool-ralph'
236
- config:
237
- subagentProvider: spawn
238
- maxRounds: 64
239
-
240
- # ── remaining model-facing rows ─────────────────────────────────────────────
241
-
242
- - id: tool-ask-user
243
- name: '@deepseek-ai/dsh-tool-ask-user'
244
-
245
- - id: tool-todo
246
- name: '@deepseek-ai/dsh-tool-todo'
247
- config:
248
- allowParallelInProgress: true
249
-
250
- # The `web` service and its search provider stay in the host composition; only
251
- # the model-facing tool is per-session.
252
- - id: tool-web
253
- name: '@deepseek-ai/dsh-tool-web'
254
- config:
255
- fetch: true
256
- searchTimeoutMs: 60000