dsh-minimal-ptc 0.5.4 → 0.5.6

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/CHANGELOG.md CHANGED
@@ -4,6 +4,18 @@
4
4
 
5
5
  [历史英文记录](docs/CHANGELOG.en.md)
6
6
 
7
+ ## 0.5.6 (2026-10-17)
8
+
9
+ - 修复固定完整提示词覆盖 PTC 工具清单与执行说明的问题:保留极简人格,调用宿主官方 SDK 生成器,模型能看到当前可调用工具的参数和返回类型。
10
+ - 按宿主执行模式切换默认函数体与持久 REPL 指引;工具启停后重新生成,不捆绑额外核心运行时,也不增加模型调用。
11
+ - 完整提示词不对工具说明中的花括号进行变量插值,继续关闭工作区与可选运行时上下文。验证范围见 [本次记录](docs/validation-0.5.6.md)。
12
+
13
+ ## 0.5.5 (2026-10-15)
14
+
15
+ - 修复 DSH 0.2.1-alpha.3 移除子代理 `toolFilter` 后预设挂载失败;子代理仍由官方定时工具拒绝使用提醒,主代理保持定时能力。
16
+ - 提供可直接复制使用的官方 Node 持久执行覆盖补丁与中英文指引,需 DSH 0.2.1-alpha.3 及以上;默认仍为每次独立执行。
17
+ - 明确持久模式的返回值、变量重声明和状态清理行为;读图、自动压缩与 `/compact` 保留官方宿主实现。
18
+
7
19
  ## 0.5.4 (2026-10-05)
8
20
 
9
21
  - 修复新版 DSH 并行启动时,定时服务就绪较晚导致整套极简 PTC 预设“加载失败”的问题。现在等待服务激活,再通过宿主加载官方定时工具;旧版宿主不会导入缺失的模块。
package/README.en.md CHANGED
@@ -8,9 +8,12 @@ Combine the official minimal prompt with PTC orchestration, plugin tools and Win
8
8
 
9
9
  [![npm](https://img.shields.io/npm/v/dsh-minimal-ptc)](https://www.npmjs.com/package/dsh-minimal-ptc) [![downloads](https://raw.githubusercontent.com/STARDUSTLC666/dsh-suite/npm-downloads/assets/dsh-minimal-ptc-downloads.svg)](https://www.npmjs.com/package/dsh-minimal-ptc)
10
10
 
11
+ Feedback and contributions are welcome: report [issues](https://github.com/STARDUSTLC666/dsh-minimal-ptc/issues) or submit [pull requests](https://github.com/STARDUSTLC666/dsh-minimal-ptc/pulls).
12
+
11
13
  ## What it does
12
14
 
13
15
  - Use the official run_code entry for multi-step tool calls.
16
+ - Keep the minimal identity and generate the official SDK for the current tools and runtime mode.
14
17
  - Keep files, search, skills, plans, goals and subagent tools.
15
18
  - Offer Git Bash and the official persistent PowerShell on Windows.
16
19
 
package/README.md CHANGED
@@ -8,9 +8,12 @@
8
8
 
9
9
  [![npm](https://img.shields.io/npm/v/dsh-minimal-ptc)](https://www.npmjs.com/package/dsh-minimal-ptc) [![downloads](https://raw.githubusercontent.com/STARDUSTLC666/dsh-suite/npm-downloads/assets/dsh-minimal-ptc-downloads.svg)](https://www.npmjs.com/package/dsh-minimal-ptc)
10
10
 
11
+ 欢迎使用,遇到问题或有改进建议,请提交 [issues](https://github.com/STARDUSTLC666/dsh-minimal-ptc/issues) 和 [PR](https://github.com/STARDUSTLC666/dsh-minimal-ptc/pulls)。
12
+
11
13
  ## 功能
12
14
 
13
15
  - 以官方 run_code 入口编排多步工具调用。
16
+ - 保留极简人格,按当前工具和执行模式生成官方 SDK 说明。
14
17
  - 保留文件、检索、技能、计划、目标和子代理能力。
15
18
  - Windows 提供 Git Bash 与官方持久 PowerShell。
16
19
 
package/docs/USAGE.en.md CHANGED
@@ -6,11 +6,11 @@
6
6
 
7
7
  The primary minimal PTC agent can use official scheduling tools. Spawn/fork subagents follow official restrictions against creating, listing, updating or deleting schedules. Minimal mode still omits runtime context, time prompts and AGENTS instructions.
8
8
 
9
- Scheduling tools wait for the host's `schedule` service to activate, avoiding preset failures during parallel startup. Older hosts skip the official scheduling module and retain their existing PTC capabilities; do not install duplicate DSH core packages.
9
+ Scheduling tools wait for the host's `schedule` service to activate, avoiding preset failures during parallel startup. Older hosts skip the scheduling module and retain existing PTC capabilities; do not install duplicate core packages. The retired subagent `toolFilter` field is no longer passed. Official scheduling tools reject delegated callers at execution time.
10
10
 
11
11
  ## Install and use
12
12
 
13
- Version 0.5.x requires **Harness 0.1.7 or later**. The current official comparison baseline is **0.2.0-rc.2**. Use `dsh-minimal-ptc@0.4.7` on Harness 0.1.5/0.1.6.
13
+ Version 0.5.x requires **Harness 0.1.7 or later**. The current comparison uses official **0.2.1-alpha.5** source. Use `dsh-minimal-ptc@0.4.7` on Harness 0.1.5/0.1.6.
14
14
 
15
15
  ```bash
16
16
  dsh plugin --profile web add dsh-minimal-ptc
@@ -22,7 +22,9 @@ For example: “Run this project’s tests, find the failures and fix them.” E
22
22
 
23
23
  ## Official presets and extensions
24
24
 
25
- The core prompt matches the official Minimal preset. PTC presentation and the `run_code` entry follow the official PTC preset, registered through the host's declarative preset service. Compare [Minimal](https://github.com/deepseek-ai/deepseek-harness/blob/639ed015397290b3745d163aafe02ffee4aa3f84/packages/bundle/web-app/presets/minimal.patch.yml) and [PTC](https://github.com/deepseek-ai/deepseek-harness/blob/639ed015397290b3745d163aafe02ffee4aa3f84/packages/bundle/web-app/presets/ptc.patch.yml).
25
+ The identity keeps the official Minimal sentence and adds the SDK needed to execute PTC programs. The host's official generator renders the currently visible tools, argument types and return types for the active execution mode. Per-call programs can use `return` and `console.log`; persistent programs use the host's REPL instructions. Compare [Minimal](https://github.com/deepseek-ai/deepseek-harness/blob/dsh-v0.2.1-alpha.5/packages/bundle/web-app/presets/minimal.patch.yml) and [PTC](https://github.com/deepseek-ai/deepseek-harness/blob/dsh-v0.2.1-alpha.5/packages/bundle/web-app/presets/ptc.patch.yml).
26
+
27
+ Version 0.5.6 fixes the old complete persona dropping the SDK. The minimal identity and required SDK now form the complete prompt, while unrelated workspace and optional runtime guidance stay excluded. SDK size grows with the enabled tools, so this is larger than the plain one-line Minimal prompt.
26
28
 
27
29
  The following extensions make its defaults differ from the stock PTC preset:
28
30
 
@@ -33,6 +35,20 @@ The following extensions make its defaults differ from the stock PTC preset:
33
35
 
34
36
  The host provides tool implementations. The plugin does not bundle a second core runtime or override host approval policy. See [validation records](VALIDATION.md) for the scope of the comparison.
35
37
 
38
+ ## Optional: retain intermediate Node state
39
+
40
+ DSH 0.2.1-alpha.3 adds the official `persistent-in-memory` Node execution mode. The default remains `per-call`; this plugin does not automatically change the shared provider.
41
+
42
+ Copy the bundled `presets/ptc-minimal/persistent-node.patch.yml` to a convenient location and run `dsh --profile web --patch <path>`. Alternatively, save this override as a local YAML file:
43
+
44
+ ```yaml
45
+ - id: ptc-runtime
46
+ config:
47
+ executionMode: persistent-in-memory
48
+ ```
49
+
50
+ This configures the host's shared Node provider while retaining independent state for each Agent. Return a final JSON expression rather than top-level `return`. Repeating a `let`/`const` declaration fails; assign to an existing variable or choose a new name. Restarting, switching modes or terminating the runtime clears its state; save important results to files. Image reading, automatic compaction and `/compact` use the host's official implementations.
51
+
36
52
  ## Windows terminals
37
53
 
38
54
  A standard Git for Windows installation is detected automatically. For a custom location, set `GIT_BASH` to the full path of `bash.exe` before starting DSH. PowerShell sessions preserve their current directory, variables and functions.
package/docs/USAGE.md CHANGED
@@ -6,11 +6,11 @@
6
6
 
7
7
  极简 PTC 的主代理现在可使用官方定时任务;spawn / fork 子代理保持官方限制,不可创建、列举、更新或删除任务。极简模式仍不注入运行时上下文、时间提示或 AGENTS 指令。
8
8
 
9
- 定时工具等待宿主的 `schedule` 服务激活后启用,避免启动顺序导致模式加载失败。旧版宿主会跳过官方定时模块,继续使用原有 PTC 能力;无需另外安装 DSH 核心包。
9
+ 定时工具等待宿主的 `schedule` 服务激活后启用,避免启动顺序导致模式加载失败。旧版宿主会跳过官方定时模块,继续使用原有 PTC 能力;无需另外安装 DSH 核心包。新版已移除子代理 `toolFilter` 参数,本插件不再传入该字段;官方定时工具会在执行入口拒绝委派子代理使用提醒。
10
10
 
11
11
  ## 安装和使用
12
12
 
13
- 0.5.x 需要 **Harness 0.1.7 及以上**,当前官方核对基线为 **0.2.0-rc.2**。仍使用 Harness 0.1.5/0.1.6 时,请安装 `dsh-minimal-ptc@0.4.7`。
13
+ 0.5.x 需要 **Harness 0.1.7 及以上**,当前对照 **0.2.1-alpha.5** 的官方源码。仍使用 Harness 0.1.5/0.1.6 时,请安装 `dsh-minimal-ptc@0.4.7`。
14
14
 
15
15
  ```bash
16
16
  dsh plugin --profile web add dsh-minimal-ptc
@@ -22,7 +22,11 @@ dsh plugin --profile web add dsh-minimal-ptc
22
22
 
23
23
  ## 官方预设与扩展
24
24
 
25
- 核心提示词与官方 Minimal 一致,PTC 工具展示与 `run_code` 入口沿用官方 PTC,通过官方声明式预设服务注册。对照源码:[Minimal](https://github.com/deepseek-ai/deepseek-harness/blob/639ed015397290b3745d163aafe02ffee4aa3f84/packages/bundle/web-app/presets/minimal.patch.yml)、[PTC](https://github.com/deepseek-ai/deepseek-harness/blob/639ed015397290b3745d163aafe02ffee4aa3f84/packages/bundle/web-app/presets/ptc.patch.yml)。
25
+ 人格保留官方 Minimal 的一句身份说明,另附 PTC 执行必需的工具 SDK;通过官方声明式预设服务注册。SDK 从宿主按当前可见工具和执行模式动态生成,包含工具参数和返回类型。默认执行可使用 `return` / `console.log`;持久执行采用宿主的 REPL 指引。对照源码:[Minimal](https://github.com/deepseek-ai/deepseek-harness/blob/dsh-v0.2.1-alpha.5/packages/bundle/web-app/presets/minimal.patch.yml)、[PTC](https://github.com/deepseek-ai/deepseek-harness/blob/dsh-v0.2.1-alpha.5/packages/bundle/web-app/presets/ptc.patch.yml)。
26
+
27
+ 0.5.6 修复了旧的固定完整提示词会覆盖 SDK 的问题。极简人格与必需的 SDK 一起组成完整提示词,其他工作区和运行时指引仍不自动追加。
28
+
29
+ SDK 大小随启用的工具数量增长,因此会比纯粹一句话的 Minimal 占用更多上下文。保留所需的插件即可缩小工具清单。
26
30
 
27
31
  本插件保留以下扩展,因此与官方 PTC 的默认开关并非完全相同:
28
32
 
@@ -33,6 +37,20 @@ dsh plugin --profile web add dsh-minimal-ptc
33
37
 
34
38
  工具实现由宿主提供,插件不捆绑另一份核心运行时,也不覆盖宿主审批规则。核对范围见[验证记录](VALIDATION.md)。
35
39
 
40
+ ## 可选:保留 Node 中间变量
41
+
42
+ DSH 0.2.1-alpha.3 起,官方 Node 执行器可在同一 Agent 的多次 `run_code` 之间保留变量、函数和已导入模块。默认仍是每次独立执行;本插件不会自动切换宿主的执行模式。
43
+
44
+ 需要时,将包内 `presets/ptc-minimal/persistent-node.patch.yml` 复制到方便的位置,执行 `dsh --profile web --patch <该文件路径>`。也可以把以下覆盖配置保存为本机 YAML 文件后使用:
45
+
46
+ ```yaml
47
+ - id: ptc-runtime
48
+ config:
49
+ executionMode: persistent-in-memory
50
+ ```
51
+
52
+ 此开关作用于宿主共享的 Node provider,每个 Agent 各自保存状态。持久模式用最后一个 JSON 表达式返回结果,不能在顶层使用 `return`;重复声明同名 `let` / `const` 会报错,可改为赋值或使用新变量名。重启、切换执行模式或执行器被终止后状态会清空,重要结果仍应保存到文件。读图、自动压缩和 `/compact` 沿用宿主提供的官方实现。
53
+
36
54
  ## Windows 终端
37
55
 
38
56
  安装常规版 Git for Windows 后会自动找到 Git Bash。若安装在自定义位置,可设置 `GIT_BASH` 为 `bash.exe` 的完整路径,再启动 DSH。PowerShell 会话会保留当前目录、变量和函数。
@@ -2,6 +2,10 @@
2
2
 
3
3
  本页整理原 README 的历史验证说明,保留当时的版本、日期与范围。自动测试、启动检查、浏览器操作和真实服务验收分别记录,不能相互替代。更详细的版本验收文件仍保留在仓库中。
4
4
 
5
+ ## 2026-10-17:0.5.6 工具 SDK 修复
6
+
7
+ 真实宿主复现旧版只有身份句、没有工具 SDK 的问题。新版保留极简身份与必需的官方 SDK,按作用域和运行格式生成;默认和持久模式的真实桥接执行通过。25 项本地测试通过、1 项 Windows 平台跳过,详见 [本次记录](validation-0.5.6.md)。模型自主选工具与原生桌面仍未测。
8
+
5
9
  ## 2026-10-05:0.5.4 启动与可见操作
6
10
 
7
11
  - Windows 自动测试:22 通过、1 按环境跳过。覆盖旧宿主不导入定时模块、服务延迟到达及模块失败的回报。
@@ -0,0 +1,23 @@
1
+ # 0.5.6 验证记录
2
+
3
+ 2026-10-17,Windows / Node 24.16.0,官方 DSH 0.2.1-alpha.5。
4
+
5
+ ## 修复的问题
6
+
7
+ 从公开 npm 安装 0.5.5 后,真实 Agent 的模型入口为 `run_code`,但完整提示词只有极简身份句,缺少可调用工具 SDK。直接注册、挂载预设及脚本知道工具名时的执行均可通过,因此只检查工具数量不能证明模型能使用它们。
8
+
9
+ 0.5.6 将极简身份句和宿主实时生成的 PTC SDK 合并为完整提示词。通过宿主 Loader 读取官方生成器,以当前作用域的公开工具清单和输出契约生成参数、返回值与执行说明;没有调用宿主私有方法,也没有复制另一份核心依赖。仍不附加工作区指令和可选运行时上下文。
10
+
11
+ SDK 占用的上下文随工具清单增长;修复后的提示词不再只有一句话。SDK 中的文字不进行模板变量插值。
12
+
13
+ ## 已验证
14
+
15
+ - 本地 26 项测试:25 通过,1 项 POSIX 执行测试在 Windows 跳过。新增用例覆盖动态工具启停、作用域、运行格式、输出类型、模板字面量、缺少契约和资源清理。
16
+ - 公开旧版基线:模型提示词缺少 SDK,验收明确失败;合成脚本已知工具名时仍能执行并返回 42,说明“能执行”和“模型看得到声明”是两项证据。
17
+ - 修复后真实 DSH Agent 的模型入口仍只有 `run_code`;提示词含当前工具 SDK,能看见合成工具声明。
18
+ - 默认函数体执行:TypeScript 类型标注、嵌套工具调用、`console.log` 与 `return` 均成功,返回值为 42;下一次执行不保留前一次局部变量。
19
+ - 可选持久模式:实际调用得到 41 → 42;不同 owner 的变量隔离,释放后清空;SDK 没有误写成函数体的 `return` 指引。
20
+ - alpha.4 的默认与持久执行复测通过,沿用该宿主原有的 SDK 文案;alpha.5 使用新版按执行格式区分的指引。
21
+ - 发布前从本地 tarball 经官方 CLI 独立安装,默认与持久桥接均通过;实际网页可在模式菜单中选择极简 PTC,无页面或控制台错误。
22
+
23
+ 上述实际执行使用隔离的合成会话和 Full 权限,未更改用户会话或系统权限。没有调用真实模型,不能据此宣称模型自主选工具已经验收;原生桌面窗口也未操作。源码回归、CI、最终 npm 包与安装验收分别核对。
package/lib/index.js CHANGED
@@ -60,7 +60,7 @@ function materialize(logger, modernRuntime) {
60
60
  return
61
61
  }
62
62
 
63
- for (const file of ['agent.cordis.yml', 'preset.yml', 'gitbash-executor.mjs', 'schedule-tools.mjs']) {
63
+ for (const file of ['agent.cordis.yml', 'preset.yml', 'gitbash-executor.mjs', 'schedule-tools.mjs', 'ptc-persona.mjs']) {
64
64
  let content = readFileSync(join(presetSourceDir, file), 'utf8')
65
65
  if (modernRuntime && file === 'agent.cordis.yml') {
66
66
  content = content.replaceAll('workflow-worker-thread', 'workflow-ptc')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-minimal-ptc",
3
- "version": "0.5.4",
3
+ "version": "0.5.6",
4
4
  "description": "把官方极简提示词与 PTC 编排组合起来,提供完整插件工具和 Windows 终端适配。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -11,7 +11,9 @@
11
11
  "./cordis.patch.yml": "./cordis.patch.yml",
12
12
  "./package.json": "./package.json",
13
13
  "./gitbash-executor": "./presets/ptc-minimal/gitbash-executor.mjs",
14
- "./schedule-tools": "./presets/ptc-minimal/schedule-tools.mjs"
14
+ "./schedule-tools": "./presets/ptc-minimal/schedule-tools.mjs",
15
+ "./ptc-persona": "./presets/ptc-minimal/ptc-persona.mjs",
16
+ "./persistent-node.patch.yml": "./presets/ptc-minimal/persistent-node.patch.yml"
15
17
  },
16
18
  "files": [
17
19
  "lib",
@@ -5,10 +5,10 @@
5
5
  # PTC tool presentation (`tool-presentation` with `mode: ptc`), where the
6
6
  # model composes a TypeScript program against a generated SDK and `run_code`
7
7
  # executes it. What differs is the persona row, taken verbatim from `minimal`:
8
- # a fixed one-line persona marked `complete: true` with
9
- # `includeRuntimeContext: false`, so global identity, Web orientation, tool
10
- # guidance, and later assembly listeners cannot add prompt text, and runtime
11
- # context snapshots are suppressed. The `agent-instructions` row from `ptc` is
8
+ # a fixed one-line identity plus the Host-generated PTC SDK, marked complete
9
+ # with `includeRuntimeContext: false`. Other identity and workspace guidance
10
+ # cannot add prompt text, and runtime context snapshots are suppressed.
11
+ # The `agent-instructions` row from `ptc` is
12
12
  # dropped for the same reason — its workspace instruction baselines would add
13
13
  # user-role text the minimal prompt policy excludes.
14
14
  #
@@ -18,10 +18,9 @@
18
18
 
19
19
  # ── identity ────────────────────────────────────────────────────────────────
20
20
 
21
- # The persona is the complete system prompt (minimal-mode prompt policy).
22
- # dsh 0.1.3 renamed the persona config field `text` to `prefix` (required).
21
+ # The complete prompt keeps the minimal identity and the callable tool SDK.
23
22
  - id: persona
24
- name: '@deepseek-ai/dsh-persona'
23
+ name: ./ptc-persona.mjs
25
24
  config:
26
25
  prefix: You are a helpful software engineer assistant.
27
26
  complete: true
@@ -217,12 +216,6 @@
217
216
  toolName: subagent
218
217
  modelSelectionSettings: true
219
218
  backgroundMode: continuable
220
- toolFilter:
221
- deny:
222
- - schedule_create
223
- - schedule_delete
224
- - schedule_list
225
- - schedule_update
226
219
 
227
220
  - id: tool-subagent-fork
228
221
  name: '@deepseek-ai/dsh-tool-subagent'
@@ -230,12 +223,6 @@
230
223
  provider: fork
231
224
  toolName: subagent_fork
232
225
  backgroundMode: continuable
233
- toolFilter:
234
- deny:
235
- - schedule_create
236
- - schedule_delete
237
- - schedule_list
238
- - schedule_update
239
226
 
240
227
  # Product providers are host-plane singletons. Remove `disabled` from
241
228
  # either ordinary tool row to expose that product to agents on this preset.
@@ -0,0 +1,6 @@
1
+ # Optional host-provider configuration for DSH 0.2.1-alpha.3 and newer.
2
+ # Apply with `dsh --profile web --patch <this-file>`; the default remains per-call.
3
+ # This configures the shared Node provider. Each Agent's retained state is isolated.
4
+ - id: ptc-runtime
5
+ config:
6
+ executionMode: persistent-in-memory
@@ -1,2 +1,2 @@
1
1
  name: 极简 PTC 模式
2
- description: 一句固定人格,无运行时上下文与附加指令,保留官方 PTC 的文件、Shell、检索、Skills、计划、目标、定时任务、子代理和工作流能力。Windows 提供持久 PowerShell 与 Git Bash;定时任务仅主代理可用。兼容 Harness 0.1.5 至 0.2.1-alpha.1。
2
+ description: 官方极简人格与动态 PTC 工具说明,不附加工作区和运行时上下文。保留文件、Shell、检索、Skills、计划、目标、定时任务及子代理;Windows 支持 Git Bash 和持久 PowerShell。兼容版本与验证范围见插件说明。
@@ -0,0 +1,32 @@
1
+ // Keep the minimal identity while rendering the callable SDK through the Host.
2
+ // A static complete persona discards tools:sdk, leaving only run_code visible
3
+ // without the declarations its programs need. Do not bundle another core copy.
4
+ export const name = 'ptc-minimal-persona'
5
+ export const inject = ['systemPrompt', 'tools', 'loader']
6
+
7
+ export async function apply(ctx, config = {}) {
8
+ const host = await ctx.loader.import('@deepseek-ai/dsh-tools')
9
+ const prefix = config.prefix ?? 'You are a helpful software engineer assistant.'
10
+ if (typeof prefix !== 'string') throw new Error('dsh-minimal-ptc: persona prefix must be a string')
11
+ ctx.effect(() => ctx.systemPrompt.section({
12
+ name: 'deployment:persona-prefix',
13
+ order: ctx.systemPrompt.getSectionOrder('DEPLOYMENT_PERSONA_PREFIX'),
14
+ complete: true,
15
+ interpolate: false,
16
+ text: ({ scope }) => {
17
+ const runtime = ctx.get('ptcRuntime') ?? ctx.get('codeRuntime')
18
+ const language = runtime?.language ?? 'typescript'
19
+ const render = language === 'typescript' ? host.renderToolsSdk
20
+ : language === 'python' ? host.renderToolsSdkPy : undefined
21
+ if (typeof render !== 'function') throw new Error(`dsh-minimal-ptc: no Host SDK renderer for ${language}`)
22
+ const schemas = ctx.tools.schemas(scope).filter(tool => tool.name !== 'run_code').map(tool => {
23
+ const definition = ctx.tools.get(tool.name, scope)
24
+ if (definition?.output?.schema === undefined) throw new Error(`dsh-minimal-ptc: missing output schema for ${tool.name}`)
25
+ return { name: tool.name, description: tool.description, parameters: tool.parameters, output: definition.output.schema }
26
+ })
27
+ const sdk = render(schemas, runtime?.programFormat ?? 'function-body')
28
+ return `${prefix}\n\nOnly run_code may be called directly. Call the tools declared below from inside its program.\n\n${sdk}`
29
+ },
30
+ }), 'minimal persona with Host PTC SDK')
31
+ if (!(config.includeRuntimeContext ?? false)) ctx.systemPrompt.suppressRuntimeContext()
32
+ }
@@ -15,10 +15,10 @@
15
15
  # PTC tool presentation (`tool-presentation` with `mode: ptc`), where the
16
16
  # model composes a TypeScript program against a generated SDK and `run_code`
17
17
  # executes it. What differs is the persona row, taken verbatim from `minimal`:
18
- # a fixed one-line persona marked `complete: true` with
19
- # `includeRuntimeContext: false`, so global identity, Web orientation, tool
20
- # guidance, and later assembly listeners cannot add prompt text, and runtime
21
- # context snapshots are suppressed. The `agent-instructions` row from `ptc` is
18
+ # a fixed one-line identity plus the Host-generated PTC SDK, marked complete
19
+ # with `includeRuntimeContext: false`. Other identity and workspace guidance
20
+ # cannot add prompt text, and runtime context snapshots are suppressed.
21
+ # The `agent-instructions` row from `ptc` is
22
22
  # dropped for the same reason — its workspace instruction baselines would add
23
23
  # user-role text the minimal prompt policy excludes.
24
24
  #
@@ -28,10 +28,9 @@
28
28
 
29
29
  # ── identity ────────────────────────────────────────────────────────────────
30
30
 
31
- # The persona is the complete system prompt (minimal-mode prompt policy).
32
- # dsh 0.1.3 renamed the persona config field `text` to `prefix` (required).
31
+ # The complete prompt keeps the minimal identity and the callable tool SDK.
33
32
  - id: persona
34
- name: '@deepseek-ai/dsh-persona'
33
+ name: dsh-minimal-ptc/ptc-persona
35
34
  config:
36
35
  prefix: You are a helpful software engineer assistant.
37
36
  complete: true
@@ -229,12 +228,6 @@
229
228
  toolName: subagent
230
229
  modelSelectionSettings: true
231
230
  backgroundMode: continuable
232
- toolFilter:
233
- deny:
234
- - schedule_create
235
- - schedule_delete
236
- - schedule_list
237
- - schedule_update
238
231
 
239
232
  - id: tool-subagent-fork
240
233
  name: '@deepseek-ai/dsh-tool-subagent'
@@ -242,12 +235,6 @@
242
235
  provider: fork
243
236
  toolName: subagent_fork
244
237
  backgroundMode: continuable
245
- toolFilter:
246
- deny:
247
- - schedule_create
248
- - schedule_delete
249
- - schedule_list
250
- - schedule_update
251
238
 
252
239
  # Product providers are host-plane singletons. Remove `disabled` from
253
240
  # either ordinary tool row to expose that product to agents on this preset.