@deepseek-ai/dsh 0.1.1-rc.2 → 0.1.2-alpha.3

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