@xmoon76/dsh-pi-tui 0.3.6 → 0.4.0-alpha.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,263 +0,0 @@
1
- # The `cordis` agent preset: the standard coding agent, plus the ability to
2
- # read and write the runtime it is running in.
3
- #
4
- # It exists so a person can ask an agent to author another agent. Everything in
5
- # `standard` is here unchanged; what is added is the self-referential Cordis
6
- # toolset, a skill that teaches composition authoring, and a persona that says
7
- # which of the two planes an edit belongs to.
8
- #
9
- # TRUST: `cordis_mount` evaluates model-written JavaScript against the live
10
- # runtime, and a composition this agent writes becomes a preset other sessions
11
- # mount. Treat a session on this preset as shell access — the toolset's own
12
- # documentation makes the same statement.
13
-
14
-
15
- # The preset's own persona, shadowing the deployment default for this agent.
16
- # `{{model}}` and `{{cwd}}` resolve from the agent's own route and workspace.
17
- - id: persona
18
- name: '@deepseek-ai/dsh-persona'
19
- config:
20
- text: |-
21
- You are a coding agent powered by the {{model}} model, running on the DeepSeek Harness. Your working directory is {{cwd}}.
22
-
23
- You can read and modify the harness you run on. Its composition is Cordis: every capability is a plugin row in a `cordis.yml`, and an agent preset is one such file mounted for a single session.
24
-
25
- Two planes decide where an edit belongs. The HOST composition holds the registries and anything shared across sessions — persistence, the sandbox and approval stack, the model route, the subagent registry and its backends. An AGENT PRESET holds what one session contributes to those registries: its tools, its persona, its prompt sections. A row that publishes a service belongs in the host composition, or inside an `isolate` realm if the preset genuinely owns that service and nothing outside one agent reads it.
26
-
27
- Presets you author live one directory per preset under `${DSH_HOME:-$HOME/.dsh}/.agent-presets/<id>/`; the roster reports each preset's real path, so take the one you edit from there. NEVER edit or delete the shipped preset install (the `agent-presets` directory beside the deployment's own config): it belongs to the deployment, an upgrade overwrites it, and corrupting the `cordis` preset would disable this very mode. To change what a shipped preset does, copy its composition into a new preset directory and edit the copy.
28
-
29
- Load the `editing-cordis-compositions` skill before writing or changing a composition.
30
-
31
- - id: agent-instructions
32
- name: '@deepseek-ai/dsh-agent-instructions'
33
- config:
34
- maxBytes: 65536
35
-
36
- # ── shell ───────────────────────────────────────────────────────────────────
37
-
38
- # `shell-env` stays in the HOST composition: `apps/cli/src/web.ts` injects it to
39
- # publish `DSH_WEB_URL`/`DSH_WEB_MODE`, and a host row that injects a service is
40
- # the criterion for host-plane ownership — injection resolves before any session
41
- # exists, so there is no agent to key by. Behind a preset realm those variables
42
- # never reached the model's shell at all. Both shell tools consume the host
43
- # registry from here; their executors (`bash-sandbox`/`pwsh-sandbox`) are
44
- # host-plane too.
45
- - id: tool-bash
46
- name: '@deepseek-ai/dsh-tool-bash'
47
- disabled: !!js process.platform === 'win32'
48
-
49
- - id: tool-pwsh
50
- name: '@deepseek-ai/dsh-tool-pwsh'
51
- disabled: !!js process.platform !== 'win32'
52
-
53
- # ── filesystem ──────────────────────────────────────────────────────────────
54
-
55
- # Both register into the host `tools` registry and provide nothing, so
56
- # they need no realm. The `fs` service and its policy stay in the host.
57
- - id: tool-fs
58
- name: '@deepseek-ai/dsh-tool-fs'
59
-
60
- - id: tool-fs-search
61
- name: '@deepseek-ai/dsh-tool-fs-search'
62
- config:
63
- sampleOverCapGlobResults: false
64
-
65
- # ── background jobs ────────────────────────────────────────────────────────
66
-
67
- # Only the model-facing controls. The task REGISTRY stays on the host plane:
68
- # its producers sit outside any realm this file could put it in — `tool-bash`
69
- # above resolves it with `ctx.get`, and an entry-local realm here is invisible
70
- # to every sibling row, so `run_in_background` would answer "background jobs
71
- # unavailable" while these controls sat in the catalog. The registry is keyed by
72
- # owning agent anyway, so one host instance serves every session. What a preset
73
- # chooses is whether its agent can collect and stop background work at all.
74
- - id: tool-jobs
75
- name: '@deepseek-ai/dsh-tool-jobs'
76
-
77
- # ── goals ───────────────────────────────────────────────────────────────────
78
-
79
- # Only the model-facing tool. The goal SERVICE, its session driver, and the
80
- # `/goal` command stay on the host plane: the Gateway serves the goal domain as
81
- # Remote endpoints whose receiver comes from a generated descriptor, so it
82
- # resolves `goals` on the host and an entry-local realm here would hide it. The
83
- # registry is keyed by session anyway, so one host instance serves every
84
- # session. What a preset chooses is whether its agent can call the goal tool.
85
- - id: tool-goal
86
- name: '@deepseek-ai/dsh-tool-goal'
87
-
88
- # ── plan mode ───────────────────────────────────────────────────────────────
89
-
90
- # Plan state is per-agent by nature, so an entry-local realm is not a
91
- # workaround here — it is the correct lifetime.
92
- - id: planning
93
- name: cordis:group
94
- group: true
95
- isolate:
96
- planMode: true
97
- config:
98
- - id: plan-mode
99
- name: '@deepseek-ai/dsh-plan-mode'
100
- config:
101
- section: |
102
- 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.
103
-
104
- 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.
105
-
106
- 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.
107
-
108
- 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.
109
-
110
- 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.
111
-
112
- 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.
113
-
114
- # ── compaction ──────────────────────────────────────────────────────────────
115
-
116
- # `compaction-basic` reads `toolResultPrune` through `ctx.get`, so the pruner must
117
- # share this realm rather than sit outside it.
118
- #
119
- # `tokenMeter` is deliberately NOT in this realm: the meter stays on the HOST
120
- # plane, and the rows here resolve that one instance. It takes no configuration,
121
- # keys every fold by Session, and owns the context-meter projection units the
122
- # browser reads for every session — behind a realm those units would come and go
123
- # with whichever presets happen to be mounted. What a preset chooses is whether
124
- # its agent compacts at all, which is `compaction-basic` below.
125
- - id: compaction
126
- name: cordis:group
127
- group: true
128
- isolate:
129
- compaction: true
130
- toolResultPruner: true
131
- config:
132
- - id: compaction-basic
133
- name: '@deepseek-ai/dsh-compaction-basic'
134
-
135
- - id: command-compact
136
- name: '@deepseek-ai/dsh-command-compact'
137
-
138
- - id: tool-result-pruner
139
- name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
140
- config:
141
- thresholdChars: 8192
142
- headChars: 4096
143
- tailChars: 1024
144
-
145
- # ── delegation and workflows ────────────────────────────────────────────────
146
-
147
- # The `subagents` registry and its spawn/fork backends live in the HOST
148
- # composition: the registry is a process singleton whose cross-session queries
149
- # the api-proxy serves to the browser, and a provider name may only be
150
- # registered once. This preset contributes the delegation TOOLS, which resolve
151
- # that host registry.
152
- #
153
- # `workflows` is different — nothing outside an agent reads it — so every row
154
- # that reaches it shares one entry-local realm here, and a consumer left
155
- # outside would resolve a host registry this preset does not populate.
156
- #
157
- # `tool-subagent-report` is host-plane for the same reason as the registry,
158
- # not because a preset may not want it: it registers a CONTINUABLE SETUP on
159
- # that singleton rather than a tool this agent calls, and the setup list is
160
- # not scope-aware — one copy per mounted preset means every child gets
161
- # `report` registered once per live session, which throws on the second.
162
- - id: delegation
163
- name: cordis:group
164
- group: true
165
- isolate:
166
- workflowEngine: true
167
- config:
168
- - id: tool-subagent-control
169
- name: '@deepseek-ai/dsh-tool-subagent-control'
170
-
171
- - id: tool-subagent-list-agents
172
- name: '@deepseek-ai/dsh-tool-subagent-control/list-agents'
173
-
174
- - id: tool-subagent
175
- name: '@deepseek-ai/dsh-tool-subagent'
176
- config:
177
- provider: spawn
178
- toolName: subagent
179
- backgroundMode: continuable
180
-
181
- - id: tool-subagent-fork
182
- name: '@deepseek-ai/dsh-tool-subagent'
183
- config:
184
- provider: fork
185
- toolName: subagent_fork
186
- backgroundMode: continuable
187
-
188
- # Production dsh does not install these optional providers. Install the
189
- # matching Bundle in this Profile and restart the Host, then copy this
190
- # preset and remove `disabled` from the matching tool row. Host availability
191
- # alone grants no tool.
192
- - id: tool-subagent-codex
193
- name: '@deepseek-ai/dsh-tool-subagent'
194
- disabled: true
195
- config:
196
- provider: codex
197
- toolName: subagent_codex
198
- backgroundMode: one-shot
199
- maxDepth: provider-managed
200
-
201
- - id: tool-subagent-claude-code
202
- name: '@deepseek-ai/dsh-tool-subagent'
203
- disabled: true
204
- config:
205
- provider: claude-code
206
- toolName: subagent_claude_code
207
- backgroundMode: one-shot
208
- maxDepth: provider-managed
209
-
210
- - id: workflow-worker-thread
211
- name: '@deepseek-ai/dsh-workflow-worker-thread'
212
- config:
213
- provider: spawn
214
-
215
- - id: tool-workflow
216
- name: '@deepseek-ai/dsh-tool-workflow'
217
-
218
- - id: tool-ralph
219
- name: '@deepseek-ai/dsh-tool-ralph'
220
- config:
221
- subagentProvider: spawn
222
- maxRounds: 64
223
-
224
- # ── remaining model-facing rows ─────────────────────────────────────────────
225
-
226
- - id: tool-ask-user
227
- name: '@deepseek-ai/dsh-tool-ask-user'
228
-
229
- - id: tool-todo
230
- name: '@deepseek-ai/dsh-tool-todo'
231
- config:
232
- allowParallelInProgress: true
233
-
234
- # The `web` service and its search provider stay in the host composition; only
235
- # the model-facing tool is per-session.
236
- - id: tool-web
237
- name: '@deepseek-ai/dsh-tool-web'
238
- config:
239
- fetch: false
240
- searchTimeoutMs: 60000
241
-
242
- # ── self-modification ───────────────────────────────────────────────────────
243
-
244
- # Read the live runtime, mount a temporary plugin, unmount it. The toolset is a
245
- # trust boundary, not a sandbox — see this file's header.
246
- - id: tool-cordis
247
- name: '@deepseek-ai/dsh-tool-cordis'
248
-
249
- # The composition-authoring skill travels with this preset rather than living
250
- # in the user's skill root: it documents THIS deployment's two planes, and a
251
- # preset is the unit that gets copied and edited. `baseUrl` is the preset's
252
- # own directory, so the root resolves wherever the preset is installed.
253
- # Both rows register into THIS preset's layer of the host skill registry, so
254
- # they need no realm; the agent's merged catalog also carries whatever the
255
- # deployment registered globally (repository plugins).
256
- - id: skill-filesystem
257
- name: '@deepseek-ai/dsh-skill-filesystem'
258
- config:
259
- customSkillDirs:
260
- - !!js "process.getBuiltinModule('node:url').fileURLToPath(new URL('skills/', baseUrl))"
261
-
262
- - id: tool-skill
263
- name: '@deepseek-ai/dsh-tool-skill'
@@ -1,3 +0,0 @@
1
- name: Creator
2
- description: For authoring custom agent presets: everything in Standard, plus runtime inspection, plugin experimentation, and preset authoring guidance.
3
- order: 4