@lmzhen/dsh-evolution-agent-preset 0.1.0-rc.52 → 0.1.0-rc.54

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 (2) hide show
  1. package/agent.cordis.yml +9 -251
  2. package/package.json +4 -4
package/agent.cordis.yml CHANGED
@@ -1,92 +1,14 @@
1
- # The `standard` agent preset: the full coding agent, mounted once per process.
1
+ # Evolution agent layer — DELTA ONLY.
2
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.
3
+ # This file is the incremental part of the Evolution preset, NOT a full
4
+ # composition. `install-layered.mjs` (agent/layered/oneclick modes) generates
5
+ # the installed preset at `$DSH_HOME/.agent-presets/evolution/agent.cordis.yml`
6
+ # by concatenating the RUNTIME platform's `standard` preset composition with
7
+ # this delta (rc.53): the standard rows come from the dsh being installed
8
+ # against, so the preset follows whatever platform version the user actually
9
+ # has — rc, release, or any future line — instead of vendoring one baseline's
10
+ # rows forever.
10
11
  #
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
- # ── evolution agent layer ───────────────────────────────────────────────────
90
12
  # The host bundle provides memory/skill services; this preset only exposes
91
13
  # the model-facing entry points and the native skill-catalog bridge.
92
14
  - id: tool-memory
@@ -104,167 +26,3 @@
104
26
 
105
27
  - id: evolution-skill-catalog
106
28
  name: '@lmzhen/dsh-evolution-skill-catalog'
107
-
108
- # ── goals ───────────────────────────────────────────────────────────────────
109
-
110
- # Only the model-facing tool. The goal SERVICE, its session driver, and the
111
- # `/goal` command stay on the host plane: the Gateway serves the goal domain as
112
- # Remote endpoints whose receiver comes from a generated descriptor, so it
113
- # resolves `goals` on the host and an entry-local realm here would hide it. The
114
- # registry is keyed by session anyway, so one host instance serves every
115
- # session. What a preset chooses is whether its agent can call the goal tool.
116
- - id: tool-goal
117
- name: '@deepseek-ai/dsh-tool-goal'
118
-
119
- # ── plan mode ───────────────────────────────────────────────────────────────
120
-
121
- # Plan state is per-agent by nature, so an entry-local realm is not a
122
- # workaround here — it is the correct lifetime.
123
- - id: planning
124
- name: cordis:group
125
- group: true
126
- isolate:
127
- planMode: true
128
- config:
129
- - id: plan-mode
130
- name: '@deepseek-ai/dsh-plan-mode'
131
- config:
132
- section: |
133
- 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.
134
-
135
- 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.
136
-
137
- 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.
138
-
139
- 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.
140
-
141
- 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.
142
-
143
- 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.
144
-
145
- # ── compaction ──────────────────────────────────────────────────────────────
146
-
147
- # `compaction-basic` reads `toolResultPrune` through `ctx.get`, so the pruner must
148
- # share this realm rather than sit outside it.
149
- #
150
- # `tokenMeter` is deliberately NOT in this realm: the meter stays on the HOST
151
- # plane, and the rows here resolve that one instance. It takes no configuration,
152
- # keys every fold by Session, and owns the context-meter projection units the
153
- # browser reads for every session — behind a realm those units would come and go
154
- # with whichever presets happen to be mounted. What a preset chooses is whether
155
- # its agent compacts at all, which is `compaction-basic` below.
156
- - id: compaction
157
- name: cordis:group
158
- group: true
159
- isolate:
160
- compaction: true
161
- toolResultPruner: true
162
- config:
163
- - id: compaction-basic
164
- name: '@deepseek-ai/dsh-compaction-basic'
165
-
166
- - id: command-compact
167
- name: '@deepseek-ai/dsh-command-compact'
168
-
169
- - id: tool-result-pruner
170
- name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
171
- config:
172
- thresholdChars: 8192
173
- headChars: 4096
174
- tailChars: 1024
175
-
176
- # ── delegation and workflows ────────────────────────────────────────────────
177
-
178
- # The `subagents` registry and its spawn/fork backends live in the HOST
179
- # composition: the registry is a process singleton whose cross-session queries
180
- # the api-proxy serves to the browser, and a provider name may only be
181
- # registered once. This preset contributes the delegation TOOLS, which resolve
182
- # that host registry.
183
- #
184
- # `workflows` is different — nothing outside an agent reads it — so every row
185
- # that reaches it shares one entry-local realm here, and a consumer left
186
- # outside would resolve a host registry this preset does not populate.
187
- #
188
- # `tool-subagent-report` is host-plane for the same reason as the registry,
189
- # not because a preset may not want it: it registers a CONTINUABLE SETUP on
190
- # that singleton rather than a tool this agent calls, and the setup list is
191
- # not scope-aware — one copy per mounted preset means every child gets
192
- # `report` registered once per live session, which throws on the second.
193
- - id: delegation
194
- name: cordis:group
195
- group: true
196
- isolate:
197
- workflowEngine: true
198
- config:
199
- - id: tool-subagent-control
200
- name: '@deepseek-ai/dsh-tool-subagent-control'
201
-
202
- - id: tool-subagent-list-agents
203
- name: '@deepseek-ai/dsh-tool-subagent-control/list-agents'
204
-
205
- - id: tool-subagent
206
- name: '@deepseek-ai/dsh-tool-subagent'
207
- config:
208
- provider: spawn
209
- toolName: subagent
210
- backgroundMode: continuable
211
-
212
- - id: tool-subagent-fork
213
- name: '@deepseek-ai/dsh-tool-subagent'
214
- config:
215
- provider: fork
216
- toolName: subagent_fork
217
- backgroundMode: continuable
218
-
219
- # Product providers are host-plane singletons. Copy this preset, then
220
- # remove `disabled` from either ordinary tool row to expose that product
221
- # only to agents composed from the copy.
222
- - id: tool-subagent-codex
223
- name: '@deepseek-ai/dsh-tool-subagent'
224
- disabled: true
225
- config:
226
- provider: codex
227
- toolName: subagent_codex
228
- enableRunInBackground: false
229
- maxDepth: provider-managed
230
-
231
- - id: tool-subagent-claude-code
232
- name: '@deepseek-ai/dsh-tool-subagent'
233
- disabled: true
234
- config:
235
- provider: claude-code
236
- toolName: subagent_claude_code
237
- enableRunInBackground: false
238
- maxDepth: provider-managed
239
-
240
- - id: workflow-worker-thread
241
- name: '@deepseek-ai/dsh-workflow-worker-thread'
242
- config:
243
- provider: spawn
244
-
245
- - id: tool-workflow
246
- name: '@deepseek-ai/dsh-tool-workflow'
247
-
248
- - id: tool-ralph
249
- name: '@deepseek-ai/dsh-tool-ralph'
250
- config:
251
- subagentProvider: spawn
252
- maxRounds: 64
253
-
254
- # ── remaining model-facing rows ─────────────────────────────────────────────
255
-
256
- - id: tool-ask-user
257
- name: '@deepseek-ai/dsh-tool-ask-user'
258
-
259
- - id: tool-todo
260
- name: '@deepseek-ai/dsh-tool-todo'
261
- config:
262
- allowParallelInProgress: true
263
-
264
- # The `web` service and its search provider stay in the host composition; only
265
- # the model-facing tool is per-session.
266
- - id: tool-web
267
- name: '@deepseek-ai/dsh-tool-web'
268
- config:
269
- fetch: false
270
- searchTimeoutMs: 60000
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-evolution-agent-preset",
3
3
  "description": "Agent preset exposing memory and skill evolution tools to a session (community build)",
4
- "version": "0.1.0-rc.52",
4
+ "version": "0.1.0-rc.54",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -23,9 +23,9 @@
23
23
  "license": "MIT",
24
24
  "dependencies": {
25
25
  "@deepseek-ai/dsh-tool-session-query": "^0.1.0-rc.6",
26
- "@lmzhen/dsh-tool-memory": "^0.1.0-rc.52",
27
- "@lmzhen/dsh-tool-skill-manage": "^0.1.0-rc.52",
28
- "@lmzhen/dsh-evolution-skill-catalog": "^0.1.0-rc.52"
26
+ "@lmzhen/dsh-tool-memory": "^0.1.0-rc.54",
27
+ "@lmzhen/dsh-tool-skill-manage": "^0.1.0-rc.54",
28
+ "@lmzhen/dsh-evolution-skill-catalog": "^0.1.0-rc.54"
29
29
  },
30
30
  "exports": {
31
31
  "./invariant": {