@treeseed/dsh-chapters 0.1.15 → 0.1.17

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/lib/preset.js ADDED
@@ -0,0 +1,282 @@
1
+ /**
2
+ * The `chapters` agent preset: its composition, and the ONLY sanctioned way this
3
+ * plugin makes a preset EXIST on a host that composes presets from declaration
4
+ * rows (>= 0.1.7-alpha.1; "Nothing reads $DSH_HOME/.agent-presets any more").
5
+ *
6
+ * WHY THIS FILE IS CODE AND NOT A SHIPPED PATCH LAYER
7
+ * ---------------------------------------------------
8
+ * The host's idiom is a `@deepseek-ai/dsh-agent-preset` row carried by a bundle
9
+ * patch layer, listed in `package.json` `dsh.bundle.patch`. Shipping that row as
10
+ * a SECOND layer means `dsh.bundle.patch` becomes an ARRAY, and both halves of
11
+ * that are fatal on a pre-0.1.7 host — measured on the pinned e2e closure
12
+ * (0.1.5-rc.1), not reasoned about:
13
+ *
14
+ * - array `patch`: `TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must
15
+ * be of type string. Received an instance of Array` at
16
+ * `dsh-app-boot/lib/index.js:853` (`join(packageDir, declared)`) — the host
17
+ * never boots.
18
+ * - the row itself, in ANY layer a legacy host reads:
19
+ * `dsh: plugin tree failed to load: ... failed to import loader entry
20
+ * preset-chapters (@deepseek-ai/dsh-agent-preset): Cannot find package` — a
21
+ * legacy host's plugin tree aborts the boot on one unresolvable row.
22
+ * - gating it with `disabled: !!js get('agentPresets')?.register === undefined`
23
+ * does not work either: the Loader evaluates `disabled` BEFORE services are
24
+ * mounted, so the expression is truthy on a 0.2.x host too and the row never
25
+ * registers (measured: `preset-v2 … failed to import`, roster without it).
26
+ *
27
+ * Registering through `ctx.get('agentPresets').register(definition)` is the same
28
+ * call the host's own declaration-row plugin makes
29
+ * (`dsh-agent-preset/lib/index.js`: `[Service.init]` → `this.ctx.agentPresets.register(this.config)`),
30
+ * made from a row that resolves on EVERY host: this package. The tradeoff is
31
+ * honest and stated in docs/contract.md: the composition is not visible in a
32
+ * patch-layer dump, so the roster (not a file) is the evidence — which is the
33
+ * rule this module enforces anyway.
34
+ *
35
+ * WHY ROWS ARE PRUNED AGAINST THE INSTALLED HOST
36
+ * ----------------------------------------------
37
+ * The host's standard plugin list is not stable across the versions this package
38
+ * must serve. Measured against published `@deepseek-ai/dsh-web-app` presets:
39
+ * 0.2.0-rc.1/rc.2 lack `dsh-time-context` and `dsh-tool-schedule`;
40
+ * `dsh-tool-schedule` is not published at 0.2.0-rc.x AT ALL (first real version
41
+ * 0.2.1-alpha.1), and `dsh-plugin-market` exists only at 0.2.1-alpha.4. One
42
+ * unresolvable row does not degrade: `mountPreset` throws on any failed row, the
43
+ * registry stores it as `record.broken`, and `retain()` then refuses with
44
+ * `agent-preset/invalid` — every session choosing `chapters` stops composing,
45
+ * while its durable log sits there intact. So a row whose package does not
46
+ * resolve is DROPPED here and reported, instead of taking the preset down.
47
+ *
48
+ * @module dsh-chapters/src/preset
49
+ */
50
+ /** The plan-mode prompt section, verbatim from the host's own standard preset.
51
+ * Reword it with the host and the drift test says so; it is prompt bytes every
52
+ * chapters session pays, so it is not ours to invent. */
53
+ const PLAN_MODE_SECTION = `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.
54
+
55
+ 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.
56
+
57
+ 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.
58
+
59
+ 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.
60
+
61
+ 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.
62
+
63
+ 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.
64
+ `;
65
+ /**
66
+ * The PLOT: discipline. Two facts are load-bearing in this string and a test pins
67
+ * both by BEHAVIOUR, not by text equality:
68
+ * - no `{{cwd}}`: `dsh-agent-loop` registers `provider`/`model`/`cwd` up to
69
+ * 0.2.0-rc.2 and only `provider`/`model` from 0.2.1-alpha.2, and an
70
+ * unregistered reference THROWS at prompt assembly (`dsh-system-prompt`
71
+ * `interpolate`), killing every turn of every chapters session. The working
72
+ * directory already reaches the model from `dsh-working-directory` (host plane).
73
+ * - the wording `src/engine-core.ts`'s PLOT_TEMPLATE_ECHO matches, so a model
74
+ * quoting our own instruction back is not inherited as a "plot".
75
+ */
76
+ const PLOT_SUFFIX = "When a task spans multiple turns, end each reply with one line beginning 'PLOT:' (max 60 words — objective, current hypothesis, immediate next step). A checkpoint carries this plot forward; if it looks stale, revise it on your next plot line.";
77
+ /**
78
+ * WHY THE DELEGATION ROWS CARRY NO `toolFilter`, although the host's own alpha.1/alpha.2
79
+ * list denied `schedule_*` there.
80
+ *
81
+ * Measured on a real 0.2.1-alpha.4 boot: `tool-subagent` does NOT strip an unknown key —
82
+ * it rejects the removed one outright, and the WHOLE preset goes broken:
83
+ * `tool-subagent: toolFilter is no longer supported; configure persona and tool plugins
84
+ * in an Agent Preset and select it with agentPreset (spawn only)`
85
+ * while the same composition on 0.2.0-rc.2 (which still accepts `toolFilter`) mounts. So a
86
+ * key that one supported host accepts and the next one THROWS on is worse than dropping it:
87
+ * the deny list protected nothing on rc.2 (no schedule tools exist there at all) and would
88
+ * break every chapters session on the alpha. The general rule this incident writes down:
89
+ * carry only config keys EVERY supported host accepts, and let the roster line — not a
90
+ * file on disk — be the evidence that the composition is usable.
91
+ */
92
+ /**
93
+ * The chapters preset: the host's standard coding-agent composition with EXACTLY
94
+ * four deltas, each one a product decision of ours.
95
+ *
96
+ * 1. `compaction-basic` → `@treeseed/dsh-chapters/engine` (thresholdRatio 0.9):
97
+ * the zero-inference `summarize()` — chapters from the log, no model tokens.
98
+ * 2. `tool-result-pruner.thresholdChars` 8192 → 1000000, deliberately dormant:
99
+ * chapters defer oversized results at ARCHIVE time (verbatim bodies +
100
+ * artifact references), never in-surface, where a prune is a prefix cliff on
101
+ * local hardware.
102
+ * 3. the persona gains the PLOT: suffix (plot carriage through in-place
103
+ * checkpoints) and keeps no `{{cwd}}` (see PLOT_SUFFIX).
104
+ * 4. `tool-ralph` mounted ENABLED — the bounded goal loop the continuation
105
+ * children run. The host ships it disabled; enabling it here is ours.
106
+ *
107
+ * @param platform the platform the shell-gated rows are decided against; a
108
+ * parameter so the rows are testable on any machine.
109
+ */
110
+ export function chaptersPresetRows(platform = process.platform, thresholdRatio = 0.9) {
111
+ return [
112
+ {
113
+ id: 'persona',
114
+ name: '@deepseek-ai/dsh-persona',
115
+ config: { prefix: 'You are a coding agent powered by the {{model}} model.', suffix: PLOT_SUFFIX },
116
+ },
117
+ { id: 'agent-instructions', name: '@deepseek-ai/dsh-agent-instructions', config: { maxBytes: 65536 } },
118
+ { id: 'time-context', name: '@deepseek-ai/dsh-time-context' },
119
+ { id: 'tool-bash', name: '@deepseek-ai/dsh-tool-bash', disabled: platform === 'win32' },
120
+ { id: 'tool-pwsh', name: '@deepseek-ai/dsh-tool-pwsh', disabled: platform !== 'win32' },
121
+ { id: 'tool-fs', name: '@deepseek-ai/dsh-tool-fs' },
122
+ { id: 'tool-fs-search', name: '@deepseek-ai/dsh-tool-fs-search', config: { sampleOverCapGlobResults: false } },
123
+ { id: 'tool-jobs', name: '@deepseek-ai/dsh-tool-jobs' },
124
+ { id: 'tool-schedule', name: '@deepseek-ai/dsh-tool-schedule' },
125
+ { id: 'skill-filesystem', name: '@deepseek-ai/dsh-skill-filesystem' },
126
+ { id: 'tool-skill', name: '@deepseek-ai/dsh-tool-skill' },
127
+ { id: 'command-goal', name: '@deepseek-ai/dsh-command-goal' },
128
+ { id: 'tool-goal', name: '@deepseek-ai/dsh-tool-goal' },
129
+ {
130
+ id: 'planning',
131
+ name: 'cordis:group',
132
+ group: true,
133
+ isolate: { planMode: true },
134
+ config: [{ id: 'plan-mode', name: '@deepseek-ai/dsh-plan-mode', config: { section: PLAN_MODE_SECTION } }],
135
+ },
136
+ {
137
+ id: 'compaction',
138
+ name: 'cordis:group',
139
+ group: true,
140
+ isolate: { compaction: true, toolResultPruner: true },
141
+ config: [
142
+ { id: 'chapters-engine', name: '@treeseed/dsh-chapters/engine', config: { thresholdRatio } },
143
+ { id: 'command-compact', name: '@deepseek-ai/dsh-command-compact' },
144
+ // Delta 2: dormant by choice, not by accident. Keep the key set exactly
145
+ // {thresholdChars, headChars, tailChars} — this plugin rejects unknown keys.
146
+ { id: 'tool-result-pruner', name: '@deepseek-ai/dsh-compaction-tool-result-pruner', config: { thresholdChars: 1000000, headChars: 4096, tailChars: 1024 } },
147
+ ],
148
+ },
149
+ {
150
+ id: 'delegation',
151
+ name: 'cordis:group',
152
+ group: true,
153
+ isolate: { workflowEngine: true },
154
+ config: [
155
+ { id: 'tool-subagent-control', name: '@deepseek-ai/dsh-tool-subagent-control' },
156
+ { id: 'tool-subagent-list-agents', name: '@deepseek-ai/dsh-tool-subagent-control/list-agents' },
157
+ {
158
+ id: 'tool-subagent',
159
+ name: '@deepseek-ai/dsh-tool-subagent',
160
+ config: { provider: 'spawn', toolName: 'subagent', modelSelectionSettings: true, backgroundMode: 'continuable' },
161
+ },
162
+ {
163
+ id: 'tool-subagent-fork',
164
+ name: '@deepseek-ai/dsh-tool-subagent',
165
+ config: { provider: 'fork', toolName: 'subagent_fork', backgroundMode: 'continuable' },
166
+ },
167
+ {
168
+ id: 'workflow-ptc',
169
+ name: '@deepseek-ai/dsh-workflow-ptc',
170
+ config: { provider: 'spawn' },
171
+ },
172
+ { id: 'tool-workflow', name: '@deepseek-ai/dsh-tool-workflow' },
173
+ // Delta 4: enabled, where the host standard list mounts it disabled.
174
+ { id: 'tool-ralph', name: '@deepseek-ai/dsh-tool-ralph', config: { subagentProvider: 'spawn', maxRounds: 64 } },
175
+ ],
176
+ },
177
+ { id: 'tool-ask-user', name: '@deepseek-ai/dsh-tool-ask-user' },
178
+ { id: 'tool-todo', name: '@deepseek-ai/dsh-tool-todo', config: { allowParallelInProgress: true } },
179
+ { id: 'tool-web', name: '@deepseek-ai/dsh-tool-web', config: { fetch: true, searchTimeoutMs: 60000 } },
180
+ { id: 'present', name: '@deepseek-ai/dsh-tool-present' },
181
+ // Disabled by host policy; the row stays so a profile `override` can switch it.
182
+ { id: 'tool-plugin-manager', name: '@deepseek-ai/dsh-plugin-manager/tools', disabled: true },
183
+ ];
184
+ }
185
+ /** The preset identity. `config.id` is DURABLE STATE: every continuation child's
186
+ * log records it as `agent-preset/selected`, so renaming it orphans those
187
+ * sessions (`agent-preset/not-found` on open). */
188
+ export const CHAPTERS_PRESET_ID = 'chapters';
189
+ export function chaptersPresetDefinition(platform = process.platform, thresholdRatio = 0.9) {
190
+ return {
191
+ id: CHAPTERS_PRESET_ID,
192
+ name: 'Chapters',
193
+ description: 'Full coding agent; context relief via zero-inference chapter compaction.',
194
+ order: 0,
195
+ plugins: chaptersPresetRows(platform, thresholdRatio),
196
+ };
197
+ }
198
+ /** Whether a row names something a resolver must answer for. `cordis:` rows are
199
+ * pseudo-modules the Loader always provides; our own package is by definition
200
+ * present (its realm row is the point of the preset). */
201
+ function needsProbe(row) {
202
+ return !row.name.startsWith('cordis:') && !row.name.startsWith('@treeseed/dsh-chapters');
203
+ }
204
+ /** A row whose own module cannot be imported would activate as failed, and one
205
+ * failed row makes the WHOLE preset broken (`mountPreset` throws) — so it is
206
+ * dropped, with the reason, instead of taking every chapters session down.
207
+ *
208
+ * The probe is asked with the row's FULL specifier, so a package that exists but
209
+ * no longer exports the subpath (`.../tools`, `.../list-agents`) is caught too —
210
+ * those are the renames that eat presets.
211
+ *
212
+ * @param rows the composition, groups included.
213
+ * @param resolvable asked with each row's module specifier. MUST NOT throw.
214
+ */
215
+ export function pruneResolvableRows(rows, resolvable) {
216
+ const dropped = [];
217
+ const keep = (row) => {
218
+ if (!needsProbe(row))
219
+ return true;
220
+ if (resolvable(row.name))
221
+ return true;
222
+ dropped.push(`${row.id} (${row.name})`);
223
+ return false;
224
+ };
225
+ const visit = (list) => list.flatMap((row) => {
226
+ if (row.group !== true || !Array.isArray(row.config))
227
+ return keep(row) ? [row] : [];
228
+ const children = row.config.filter(keep);
229
+ if (children.length === 0) {
230
+ dropped.push(`${row.id} (group emptied)`);
231
+ return [];
232
+ }
233
+ return [{ ...row, config: children }];
234
+ });
235
+ return { kept: visit(rows), dropped };
236
+ }
237
+ /** Find one preset in an inventory response, tolerating a missing or odd shape. */
238
+ export function inventoryEntry(raw, presetId) {
239
+ return Array.isArray(raw) ? raw.find((entry) => entry?.id === presetId) : undefined;
240
+ }
241
+ /** Enabled rows of one preset that are not active. A row `pending` a host service can
242
+ * still activate later, so this is reported apart from `broken`, never as a refusal. */
243
+ export function unusableRows(entry) {
244
+ if (!Array.isArray(entry?.rows))
245
+ return [];
246
+ return entry.rows
247
+ .filter((row) => row.enabled !== false && typeof row.fiberState === 'string' && row.fiberState !== 'active')
248
+ .map((row) => `${row.entryId ?? '?'} (${row.moduleName ?? '?'}) ${row.fiberState}`);
249
+ }
250
+ /**
251
+ * Make the `chapters` preset exist on a host that composes presets from
252
+ * declaration rows, and say what happened.
253
+ *
254
+ * @param presets the host's `agentPresets` service, or undefined on a host that
255
+ * has no preset registry at all (then the legacy directory copy is the
256
+ * delivery, and this returns 'unsupported').
257
+ * @param dispose owner for the disposer the registry hands back — registering
258
+ * without it would leave a standing preset mount after unmount.
259
+ */
260
+ export async function registerChaptersPreset(presets, opts) {
261
+ const definition = chaptersPresetDefinition(opts.platform, opts.thresholdRatio ?? 0.9);
262
+ if (typeof presets?.register !== 'function')
263
+ return { outcome: { state: 'unsupported' }, definition };
264
+ const { kept, dropped } = pruneResolvableRows(definition.plugins, opts.resolvable);
265
+ const pruned = { ...definition, plugins: kept };
266
+ try {
267
+ const disposer = await presets.register(pruned);
268
+ opts.dispose(disposer);
269
+ }
270
+ catch (error) {
271
+ const reason = String(error?.message ?? error);
272
+ // A duplicate is not our failure: someone declared `chapters` in a patch
273
+ // layer (the documented 0.2.x remedy before this shipped). Their row wins;
274
+ // ours must not throw, or this plugin's own row fails to activate and the
275
+ // tools disappear with it.
276
+ if (/duplicate agent preset/i.test(reason))
277
+ return { outcome: { state: 'already-declared' }, definition: pruned };
278
+ return { outcome: { state: 'failed', reason }, definition: pruned };
279
+ }
280
+ return { outcome: dropped.length > 0 ? { state: 'pruned', dropped } : { state: 'registered' }, definition: pruned };
281
+ }
282
+ //# sourceMappingURL=preset.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset.js","sourceRoot":"","sources":["../src/preset.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AAuBH;;yDAEyD;AACzD,MAAM,iBAAiB,GAAG;;;;;;;;;;;CAWzB,CAAA;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,GAAG,oPAAoP,CAAA;AAExQ;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,kBAAkB,CAAC,WAA4B,OAAO,CAAC,QAAQ,EAAE,cAAc,GAAG,GAAG;IACnG,OAAO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AE,EAAE,UAAU,EAAE,CAAA;IACrG,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,mBAAmB,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,CAAA;IAClF,MAAM,MAAM,GAAG,EAAE,GAAG,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;IAC/C,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;QAC/C,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;IACxB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,MAAM,GAAG,MAAM,CAAE,KAAe,EAAE,OAAO,IAAI,KAAK,CAAC,CAAA;QACzD,yEAAyE;QACzE,2EAA2E;QAC3E,0EAA0E;QAC1E,2BAA2B;QAC3B,IAAI,yBAAyB,CAAC,IAAI,CAAC,MAAM,CAAC;YAAE,OAAO,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,kBAAkB,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,CAAA;QACjH,OAAO,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,CAAA;IACrE,CAAC;IACD,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,CAAA;AACrH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treeseed/dsh-chapters",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
4
4
  "description": "dsh plugin: verbatim chapter archive + zero-token index for small-context models",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -13,7 +13,6 @@
13
13
  "./cordis.patch.yml": "./cordis.patch.yml",
14
14
  "./package.json": "./package.json",
15
15
  "./engine": "./lib/engine.js",
16
- "./presets/*": "./presets/*",
17
16
  "./tools": "./lib/tools.js",
18
17
  "./store": "./lib/store.js",
19
18
  "./registry": "./lib/registry.js",
@@ -21,7 +20,6 @@
21
20
  },
22
21
  "files": [
23
22
  "lib",
24
- "presets",
25
23
  "cordis.patch.yml",
26
24
  "docs",
27
25
  "README.md"
@@ -1,272 +0,0 @@
1
- # dsh-chapters preset: the standard coding agent with chapter-form compaction.
2
- # Copied from @deepseek-ai/dsh-agent-presets/presets/standard/agent.cordis.yml
3
- # (host 0.1.5-rc.1 / rc.2 sub-packages) and modified in exactly one place:
4
- # the compaction group's engine row. Re-anchor this copy after any DSH upgrade:
5
- # diff <(sed -n '/^# /!p' <installed>/standard/agent.cordis.yml) presets/chapters/agent.cordis.yml
6
- # The command-compact row is the host's; its curated error text degrades to a
7
- # generic failure when our engine's ManualCompactionError (plugin module copy)
8
- # fails its instanceof check (measured r12) — our own command lands with Stage 4.
9
- # The `standard` agent preset: the full coding agent, mounted once per process.
10
- #
11
- # This file is an AGENT-PLANE composition. The roster mounts it ONCE under a
12
- # standing scope; every session naming it joins by scope parentage, so the
13
- # tools and prompt sections registered here cover each joined agent while a
14
- # session's own state stays keyed per Session/Agent inside the plugins. The
15
- # host composition (`base.cordis.yml` + `web.cordis.yml`) keeps everything a
16
- # preset must not own: the registries themselves, the sandbox and approval
17
- # stack, persistence, and the model route.
18
- #
19
- # A service row here MUST sit inside a group carrying an `isolate` realm.
20
- # Without one it publishes into the root realm, where it is process-global —
21
- # another preset publishing the same name collides, and a host reader would
22
- # resolve one preset's instance for every session; `dsh-agent-presets` rejects
23
- # that at mount. `true` means an entry-local realm: this standing mount's own
24
- # private instance, apart from every other preset's. (A shared label does NOT
25
- # pool instances — `provide()` throws on the second registration under the
26
- # same realm symbol; labels join REALMS, and are not what this file needs.)
27
-
28
- # ── identity ────────────────────────────────────────────────────────────────
29
-
30
- # The preset's own persona, shadowing the deployment default for this agent.
31
- # `{{model}}` and `{{cwd}}` resolve from the agent's own route and workspace.
32
- - id: persona
33
- name: '@deepseek-ai/dsh-persona'
34
- config:
35
- suffix: "Your working directory is {{cwd}}. When a task spans multiple turns, end each reply with one line beginning 'PLOT:' (max 60 words — objective, current hypothesis, immediate next step). A checkpoint carries this plot forward; if it looks stale, revise it on your next plot line."
36
- prefix: >-
37
- You are a coding agent powered by the {{model}} model.
38
-
39
- - id: agent-instructions
40
- name: '@deepseek-ai/dsh-agent-instructions'
41
- config:
42
- maxBytes: 65536
43
-
44
- # ── shell ───────────────────────────────────────────────────────────────────
45
-
46
- # `shell-env` stays in the HOST composition: `apps/cli/src/web.ts` injects it to
47
- # publish `DSH_WEB_URL`/`DSH_WEB_MODE`, and a host row that injects a service is
48
- # the criterion for host-plane ownership — injection resolves before any session
49
- # exists, so there is no agent to key by. Behind a preset realm those variables
50
- # never reached the model's shell at all. Both shell tools consume the host
51
- # registry from here; their executors (`bash-sandbox`/`pwsh-sandbox`) are
52
- # host-plane too.
53
- - id: tool-bash
54
- name: '@deepseek-ai/dsh-tool-bash'
55
- disabled: !!js process.platform === 'win32'
56
-
57
- - id: tool-pwsh
58
- name: '@deepseek-ai/dsh-tool-pwsh'
59
- disabled: !!js process.platform !== 'win32'
60
-
61
- # ── filesystem ──────────────────────────────────────────────────────────────
62
-
63
- # Both register into the host `tools` registry and provide nothing, so
64
- # they need no realm. The `fs` service and its policy stay in the host.
65
- - id: tool-fs
66
- name: '@deepseek-ai/dsh-tool-fs'
67
-
68
- - id: tool-fs-search
69
- name: '@deepseek-ai/dsh-tool-fs-search'
70
- config:
71
- sampleOverCapGlobResults: false
72
-
73
- # ── background jobs ────────────────────────────────────────────────────────
74
-
75
- # Only the model-facing controls. The task REGISTRY stays on the host plane:
76
- # its producers sit outside any realm this file could put it in — `tool-bash`
77
- # above resolves it with `ctx.get`, and an entry-local realm here is invisible
78
- # to every sibling row, so `run_in_background` would answer "background jobs
79
- # unavailable" while these controls sat in the catalog. The registry is keyed by
80
- # owning agent anyway, so one host instance serves every session. What a preset
81
- # chooses is whether its agent can collect and stop background work at all.
82
- - id: tool-jobs
83
- name: '@deepseek-ai/dsh-tool-jobs'
84
-
85
- # ── skills ──────────────────────────────────────────────────────────────────
86
-
87
- # The skill REGISTRY lives in the host composition and is layered per scope:
88
- # these rows register into THIS preset's layer of it, so they need no realm.
89
- # `skill-filesystem` contributes local-root discovery for agents on this preset, and
90
- # `tool-skill` gives them the catalog and loader; the merged catalog also
91
- # carries whatever the deployment registered globally (repository plugins).
92
- - id: skill-filesystem
93
- name: '@deepseek-ai/dsh-skill-filesystem'
94
-
95
- - id: tool-skill
96
- name: '@deepseek-ai/dsh-tool-skill'
97
-
98
- # ── goals ───────────────────────────────────────────────────────────────────
99
-
100
- # The goal service and session driver stay on the host plane, where the Gateway
101
- # can resolve them. The human command and model-facing tool register into this
102
- # preset's scoped layers.
103
- - id: command-goal
104
- name: '@deepseek-ai/dsh-command-goal'
105
-
106
- - id: tool-goal
107
- name: '@deepseek-ai/dsh-tool-goal'
108
-
109
- # ── plan mode ───────────────────────────────────────────────────────────────
110
-
111
- # Plan state is per-agent by nature, so an entry-local realm is not a
112
- # workaround here — it is the correct lifetime.
113
- - id: planning
114
- name: cordis:group
115
- group: true
116
- isolate:
117
- planMode: true
118
- config:
119
- - id: plan-mode
120
- name: '@deepseek-ai/dsh-plan-mode'
121
- config:
122
- section: |
123
- 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.
124
-
125
- 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.
126
-
127
- 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.
128
-
129
- 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.
130
-
131
- 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.
132
-
133
- 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.
134
-
135
- # ── compaction ──────────────────────────────────────────────────────────────
136
-
137
- # `compaction-basic` reads `toolResultPrune` through `ctx.get`, so the pruner must
138
- # share this realm rather than sit outside it.
139
- #
140
- # `tokenMeter` is deliberately NOT in this realm: the meter stays on the HOST
141
- # plane, and the rows here resolve that one instance. It takes no configuration,
142
- # keys every fold by Session, and owns the context-meter projection units the
143
- # browser reads for every session — behind a realm those units would come and go
144
- # with whichever presets happen to be mounted. What a preset chooses is whether
145
- # its agent compacts at all, which is `compaction-basic` below.
146
- - id: compaction
147
- name: cordis:group
148
- group: true
149
- isolate:
150
- compaction: true
151
- toolResultPruner: true
152
- config:
153
- - id: chapters-engine
154
- name: '@treeseed/dsh-chapters/engine'
155
- config:
156
- thresholdRatio: 0.9
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: 1000000 # ~1MB results: effectively never; see rationale below
165
- # DELIBERATELY DORMANT for the Chapters preset (forensics 2026-09-17): the default
166
- # 8,192-char threshold pruned the user's own Chapters sessions 11x (~35K chars), and on
167
- # a llama.cpp slot every prune is a prefix cliff -- one silent full re-prefill of the
168
- # tail at local pp speed -- plus the model then chases the stubs with ranged re-reads
169
- # (19/29 of that session's reads). Chapters defers oversized results at ARCHIVE time
170
- # instead (verbatim chapter bodies + artifact references), which costs the surface
171
- # nothing between compactions. The row stays mounted, threshold pushed to ~1M chars,
172
- # as last-resort overflow insurance and to keep pruneSession's citation behavior
173
- # uniform across presets; re-enable deliberately for token-rich cloud presets.
174
-
175
- # ── delegation and workflows ────────────────────────────────────────────────
176
-
177
- # The `subagents` registry and its spawn/fork backends live in the HOST
178
- # composition: the registry is a process singleton whose cross-session queries
179
- # the api-proxy serves to the browser, and a provider name may only be
180
- # registered once. This preset contributes the delegation TOOLS, which resolve
181
- # that host registry.
182
- #
183
- # `workflows` is different — nothing outside an agent reads it — so every row
184
- # that reaches it shares one entry-local realm here, and a consumer left
185
- # outside would resolve a host registry this preset does not populate.
186
- - id: delegation
187
- name: cordis:group
188
- group: true
189
- isolate:
190
- workflowEngine: true
191
- config:
192
- - id: tool-subagent-control
193
- name: '@deepseek-ai/dsh-tool-subagent-control'
194
-
195
- - id: tool-subagent-list-agents
196
- name: '@deepseek-ai/dsh-tool-subagent-control/list-agents'
197
-
198
- - id: tool-subagent
199
- name: '@deepseek-ai/dsh-tool-subagent'
200
- config:
201
- provider: spawn
202
- toolName: subagent
203
- modelSelectionSettings: true
204
- backgroundMode: continuable
205
-
206
- # Fork omits model selection so provider/model stay equal to the parent and
207
- # the inherited history remains eligible for KV Cache reuse. This preset
208
- # keeps fork continuable; parent and child inherit the same messaging tool,
209
- # while the parent id and return guidance follow the inherited history.
210
- - id: tool-subagent-fork
211
- name: '@deepseek-ai/dsh-tool-subagent'
212
- config:
213
- provider: fork
214
- toolName: subagent_fork
215
- backgroundMode: continuable
216
-
217
- # Production dsh does not install these optional providers. Install the
218
- # matching Bundle in this Profile and restart the Host, then copy this
219
- # preset and remove `disabled` from the matching tool row. Host availability
220
- # alone grants no tool.
221
- - id: tool-subagent-codex
222
- name: '@deepseek-ai/dsh-tool-subagent'
223
- disabled: true
224
- config:
225
- provider: codex
226
- toolName: subagent_codex
227
- backgroundMode: one-shot
228
- maxDepth: provider-managed
229
-
230
- - id: tool-subagent-claude-code
231
- name: '@deepseek-ai/dsh-tool-subagent'
232
- disabled: true
233
- config:
234
- provider: claude-code
235
- toolName: subagent_claude_code
236
- backgroundMode: one-shot
237
- maxDepth: provider-managed
238
-
239
- - id: workflow-worker-thread
240
- name: '@deepseek-ai/dsh-workflow-worker-thread'
241
- config:
242
- provider: spawn
243
-
244
- - id: tool-workflow
245
- name: '@deepseek-ai/dsh-tool-workflow'
246
-
247
- - id: tool-ralph
248
- name: '@deepseek-ai/dsh-tool-ralph'
249
- config:
250
- subagentProvider: spawn
251
- maxRounds: 64
252
-
253
- # ── remaining model-facing rows ─────────────────────────────────────────────
254
-
255
- - id: tool-ask-user
256
- name: '@deepseek-ai/dsh-tool-ask-user'
257
-
258
- - id: tool-todo
259
- name: '@deepseek-ai/dsh-tool-todo'
260
- config:
261
- allowParallelInProgress: true
262
-
263
- # The `web` service and its search provider stay in the host composition; only
264
- # the model-facing tool is per-session.
265
- - id: tool-web
266
- name: '@deepseek-ai/dsh-tool-web'
267
- config:
268
- fetch: true
269
- searchTimeoutMs: 60000
270
-
271
- - id: present
272
- name: '@deepseek-ai/dsh-tool-present'
@@ -1,3 +0,0 @@
1
- name: Chapters
2
- description: Full coding agent; context relief via zero-inference chapter compaction.
3
- order: 0
@@ -1,11 +0,0 @@
1
- - id: compaction
2
- name: cordis:group
3
- group: true
4
- isolate:
5
- compaction: true
6
- toolResultPruner: true
7
- config:
8
- - id: chapters-engine
9
- name: dsh-chapters/engine
10
- config:
11
- auto: false
@@ -1,3 +0,0 @@
1
- name: Probe Roots
2
- description: Package-shipped preset resolving via agentPresets config.roots.
3
- order: 96