dsh-minimal-ptc 0.4.1 → 0.4.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.
package/README.en.md CHANGED
@@ -1,15 +1,21 @@
1
1
  # dsh-minimal-ptc
2
2
 
3
+ ![npm](https://img.shields.io/npm/v/dsh-minimal-ptc) ![downloads](https://img.shields.io/npm/dm/dsh-minimal-ptc) ![license](https://img.shields.io/github/license/STARDUSTLC666/dsh-minimal-ptc) ![stars](https://img.shields.io/github/stars/STARDUSTLC666/dsh-minimal-ptc?style=social)
4
+
3
5
  > Minimal prompt x full PTC capabilities — a cleaner coding agent.
4
- > Installing gives you a new agent mode: **Minimal PTC**, with Git Bash and persistent PowerShell on Windows, aligned with `dsh-v0.1.1-rc.1`.
6
+ > Installing gives you a new agent mode: **Minimal PTC**, with Git Bash and persistent PowerShell on Windows, aligned with `dsh-v0.1.2-alpha.4`.
5
7
 
6
8
  ## Highlights
7
9
 
8
10
  - **RL-aligned**: the whole system prompt is one sentence — `You are a helpful software engineer assistant.` — close to the compact instruction distribution used during RL fine-tuning, without long-prompt format bias or context noise.
9
- - **Complete toolset**: inherits the full PTC toolset — Code Mode SDK multi-step orchestration, files and search, Shell, Skills, plan mode, goals, subagents, and workflows.
10
- - **We / Let's reasoning**: the Code Mode SDK packs thinking and doing into one TypeScript program, orchestrating multi-step operations before executing them once. This matches the high-scoring Minimal trajectory in DeepSeek's official Project2 V4.1b runs (99/96), where reasoning is dominated by `we` / `let's` instead of the standard-like `let me` / `I` blocks seen at 91/92.
11
+ - **Complete PTC surface**: provides `run_code` SDK orchestration, files and search, Shell, Skills, plan mode, goals, subagents, Ralph, and web search/fetch; the general-purpose workflow tool stays hidden as in alpha.4.
12
+ - **We / Let's reasoning**: the PTC SDK packs thinking and doing into one TypeScript program, orchestrating multi-step operations before executing them once. This matches the high-scoring Minimal trajectory in DeepSeek's official Project2 V4.1b runs (99/96), where reasoning is dominated by `we` / `let's` instead of the standard-like `let me` / `I` blocks seen at 91/92.
11
13
  - **Git Bash on Windows**: ships a preset-local Git Bash executor (GIT_BASH -> Program Files\Git -> LOCALAPPDATA\Git -> PATH). The bash tool is no longer disabled on Windows.
12
- - **Persistent PowerShell on Windows**: mirrors the `dsh-v0.1.1-rc.1` minimal preset; `pwsh` runs as a persistent PTY session, so cwd, variables, and functions survive across calls.
14
+ - **Persistent PowerShell on Windows**: mirrors the `dsh-v0.1.2-alpha.4` minimal preset; `pwsh` runs as a persistent PTY session, so cwd, variables, and functions survive across calls.
15
+
16
+ ## Compatibility
17
+
18
+ Verified against source-run `@deepseek-ai/dsh@0.1.2-alpha.4` on 2026-09-02. Built for the cordis patch-bundle plugin model (`cordis.patch.yml` + `dsh.bundle.patch`). No runtime imports of `@deepseek-ai/*` internals.
13
19
 
14
20
  ## Installation
15
21
 
@@ -28,10 +34,19 @@
28
34
 
29
35
  4. Select **Minimal PTC** when starting a new session.
30
36
 
37
+ ## Uninstall
38
+
39
+ ```bash
40
+ dsh plugin --profile web remove dsh-minimal-ptc
41
+ ```
42
+
43
+ Then restart the web service. To clean up fully, also remove the plugin entry from your profile `cordis.patch.yml` if you overrode it.
44
+
45
+
31
46
  ## Capabilities
32
47
 
33
- - Web search is enabled via `tool-web`; arbitrary page fetch is disabled by default (`fetch: false`).
34
- - Subagents are enabled: `subagent`, `subagent_fork`, `subagent_control`, workflows, and Ralph.
48
+ - Web search and page fetch are enabled via `tool-web` (`fetch: true`).
49
+ - Subagents and Ralph are enabled; the general-purpose workflow tool remains hidden in PTC mode.
35
50
  - `subagent_codex` and `subagent_claude_code` providers are disabled by default; remove their `disabled: true` lines to expose them.
36
51
 
37
52
  ## Windows Git Bash configuration
package/README.md CHANGED
@@ -1,21 +1,27 @@
1
1
  # dsh-minimal-ptc
2
2
 
3
+ ![npm](https://img.shields.io/npm/v/dsh-minimal-ptc) ![downloads](https://img.shields.io/npm/dm/dsh-minimal-ptc) ![license](https://img.shields.io/github/license/STARDUSTLC666/dsh-minimal-ptc) ![stars](https://img.shields.io/github/stars/STARDUSTLC666/dsh-minimal-ptc?style=social)
4
+
3
5
  > 极简提示词 × PTC 全能力 —— 一个更"干净"的编码 Agent。
4
- > 安装即获得新的 Agent 模式:**极简 PTC 模式**;Windows 自动启用 Git Bash 与持久 PowerShell(对齐 dsh-v0.1.1-rc.1)。
6
+ > 安装即获得新的 Agent 模式:**极简 PTC 模式**;Windows 自动启用 Git Bash 与持久 PowerShell(对齐 dsh-v0.1.2-alpha.4)。
5
7
 
6
8
  ## 卖点
7
9
 
8
10
  - **对齐 RL 训练**:系统提示词只有一句 `You are a helpful software engineer assistant.`,
9
11
  贴近 RL 微调时的简洁指令分布,没有长提示词带来的格式偏置与上下文噪音,
10
12
  让模型按训练时的节奏干活。
11
- - **工具完整**:完整继承 PTC 模式的全部工具 —— Code Mode SDK 多步编排、
12
- 文件读写与检索、Shell、Skills、计划、目标、子代理、工作流,一个不少。
13
- - **We / Let's 思维链**:Code Mode SDK 把"想"和"做"装进一个 TypeScript 程序,
13
+ - **PTC 工具面完整**:提供 `run_code` SDK 多步编排、文件读写与检索、Shell、
14
+ Skills、计划、目标、子代理、Ralph 与网页搜索/抓取;按 alpha.4 默认隐藏通用 workflow 工具。
15
+ - **We / Let's 思维链**:PTC SDK 把"想"和"做"装进一个 TypeScript 程序,
14
16
  多步操作先编排、再一次执行。这与 DeepSeek 官方跑分环境(Project2 V4.1b)中
15
17
  Minimal 高分轨迹一致:99/96 的两跑以 `we` / `let's` 为主,而不是
16
18
  Standard/PTC 常见的 `let me` / `I` 长块。
17
19
  - **Windows 保持 bash**:预设内置 Git Bash executor(自动探测 GIT_BASH → Program Files\Git → LOCALAPPDATA\Git → PATH),`bash` 工具不再在 Windows 上被禁用。
18
- - **Windows 持久 PowerShell**:对齐 `dsh-v0.1.1-rc.1` 的 minimal 预设,`pwsh` 使用持久 PTY 会话,cwd、变量、函数跨调用保留。
20
+ - **Windows 持久 PowerShell**:对齐 `dsh-v0.1.2-alpha.4` 的 minimal 预设,`pwsh` 使用持久 PTY 会话,cwd、变量、函数跨调用保留。
21
+
22
+ ## 兼容性
23
+
24
+ 在 `@deepseek-ai/dsh@0.1.2-alpha.4` 源码模式下验证(2026-09-02)。遵循 cordis 组合包补丁模型(`cordis.patch.yml` + `dsh.bundle.patch`),运行时不 import 任何 `@deepseek-ai/*` 内部模块。
19
25
 
20
26
  ## 安装
21
27
 
@@ -35,6 +41,15 @@
35
41
 
36
42
  4. 新建会话时选择 **极简 PTC 模式**。
37
43
 
44
+ ## 卸载
45
+
46
+ ```bash
47
+ dsh plugin --profile web remove dsh-minimal-ptc
48
+ ```
49
+
50
+ 卸载后重启 Web 服务。如需彻底清理,可再手动删除自己 profile `cordis.patch.yml` 中覆盖的插件行。
51
+
52
+
38
53
  ## Windows Git Bash 配置
39
54
 
40
55
  预设内置的 Git Bash executor 可在 `agent.cordis.yml` 的 `gitbash-executor` 行覆盖:
package/lib/index.js CHANGED
@@ -16,7 +16,7 @@ import { fileURLToPath } from 'node:url'
16
16
 
17
17
  export const name = 'ptc-minimal-preset'
18
18
 
19
- const VERSION = '0.4.1'
19
+ const VERSION = '0.4.3'
20
20
  const PRESET_ID = 'ptc-minimal'
21
21
  const MARKER = '.dsh-ptc-minimal.version'
22
22
 
package/package.json CHANGED
@@ -1,58 +1,57 @@
1
- {
2
- "name": "dsh-minimal-ptc",
3
- "version": "0.4.1",
4
- "description": "Minimal prompt x full PTC tools for DeepSeek Harness - aligned with the Project2 we/let's trajectory (Minimal 99/96).",
5
- "type": "module",
6
- "main": "lib/index.js",
7
- "exports": {
8
- ".": {
9
- "default": "./lib/index.js"
10
- },
11
- "./cordis.patch.yml": "./cordis.patch.yml",
12
- "./package.json": "./package.json"
13
- },
14
- "files": [
15
- "lib",
16
- "presets",
17
- "cordis.patch.yml",
18
- "README.md",
19
- "README.en.md",
20
- "LICENSE"
21
- ],
22
- "dsh": {
23
- "bundle": {
24
- "patch": "./cordis.patch.yml"
25
- }
26
- },
27
- "keywords": [
28
- "dsh",
29
- "deepseek-harness",
30
- "plugin",
31
- "agent-preset",
32
- "code-mode",
33
- "dsh-plugin",
34
- "deepseek",
35
- "llm-agent",
36
- "minimal",
37
- "ptc",
38
- "we-lets",
39
- "chain-of-thought"
40
- ],
41
- "license": "MIT",
42
- "author": "stardustlc",
43
- "repository": {
44
- "type": "git",
45
- "url": "git+https://github.com/STARDUSTLC666/dsh-minimal-ptc.git"
46
- },
47
- "bugs": {
48
- "url": "https://github.com/STARDUSTLC666/dsh-minimal-ptc/issues"
49
- },
50
- "homepage": "https://github.com/STARDUSTLC666/dsh-minimal-ptc#readme",
51
- "engines": {
52
- "node": ">=22"
53
- },
54
- "scripts": {
55
- "test": "node --test"
56
- },
57
- "packageManager": "pnpm@11.7.0"
58
- }
1
+ {
2
+ "name": "dsh-minimal-ptc",
3
+ "version": "0.4.3",
4
+ "description": "Minimal prompt x full PTC tools for DeepSeek Harness - aligned with the Project2 we/let's trajectory (Minimal 99/96).",
5
+ "type": "module",
6
+ "main": "lib/index.js",
7
+ "exports": {
8
+ ".": {
9
+ "default": "./lib/index.js"
10
+ },
11
+ "./cordis.patch.yml": "./cordis.patch.yml",
12
+ "./package.json": "./package.json"
13
+ },
14
+ "files": [
15
+ "lib",
16
+ "presets",
17
+ "cordis.patch.yml",
18
+ "README.md",
19
+ "README.en.md",
20
+ "LICENSE"
21
+ ],
22
+ "dsh": {
23
+ "bundle": {
24
+ "patch": "./cordis.patch.yml"
25
+ }
26
+ },
27
+ "keywords": [
28
+ "dsh",
29
+ "deepseek-harness",
30
+ "plugin",
31
+ "agent-preset",
32
+ "dsh-plugin",
33
+ "deepseek",
34
+ "llm-agent",
35
+ "minimal",
36
+ "ptc",
37
+ "we-lets",
38
+ "chain-of-thought"
39
+ ],
40
+ "license": "MIT",
41
+ "author": "stardustlc",
42
+ "repository": {
43
+ "type": "git",
44
+ "url": "git+https://github.com/STARDUSTLC666/dsh-minimal-ptc.git"
45
+ },
46
+ "bugs": {
47
+ "url": "https://github.com/STARDUSTLC666/dsh-minimal-ptc/issues"
48
+ },
49
+ "homepage": "https://github.com/STARDUSTLC666/dsh-minimal-ptc#readme",
50
+ "engines": {
51
+ "node": ">=22"
52
+ },
53
+ "scripts": {
54
+ "test": "node --test"
55
+ },
56
+ "packageManager": "pnpm@11.7.0"
57
+ }
@@ -1,14 +1,14 @@
1
- # The `ptc-minimal` agent preset: the `code` (PTC 模式) capabilities with the
1
+ # The `ptc-minimal` agent preset: the `ptc` (PTC 模式) capabilities with the
2
2
  # `minimal` (极简模式) prompt.
3
3
  #
4
- # Everything in `code` is here unchanged — full standard capabilities plus the
5
- # Code Mode tool presentation (`tool-presentation` with `mode: code`), where the
4
+ # Everything in `ptc` is here unchanged — full standard capabilities plus the
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
8
  # a fixed one-line persona marked `complete: true` with
9
9
  # `includeRuntimeContext: false`, so global identity, Web orientation, tool
10
10
  # guidance, and later assembly listeners cannot add prompt text, and runtime
11
- # context snapshots are suppressed. The `agent-instructions` row from `code` is
11
+ # context snapshots are suppressed. 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
  #
@@ -244,6 +244,9 @@
244
244
 
245
245
  - id: tool-workflow
246
246
  name: '@deepseek-ai/dsh-tool-workflow'
247
+ # Keep the engine above for `ralph`, but do not publish a second
248
+ # model-authored orchestration surface beside `run_code` in PTC mode.
249
+ disabled: true
247
250
 
248
251
  - id: tool-ralph
249
252
  name: '@deepseek-ai/dsh-tool-ralph'
@@ -266,15 +269,15 @@
266
269
  - id: tool-web
267
270
  name: '@deepseek-ai/dsh-tool-web'
268
271
  config:
269
- fetch: false
272
+ fetch: true
270
273
  searchTimeoutMs: 60000
271
274
 
272
275
  # ── presentation ────────────────────────────────────────────────────────────
273
276
 
274
- # Code Mode for this agent alone. The row waits for the host's `codeRuntime`
277
+ # PTC for this agent alone. The row waits for the host's `codeRuntime`
275
278
  # rather than assuming it: a deployment that composes no TypeScript runtime
276
279
  # fails this preset at mount, naming this id, instead of at the first request.
277
280
  - id: tool-presentation
278
281
  name: '@deepseek-ai/dsh-agent-tool-presentation'
279
282
  config:
280
- mode: code
283
+ mode: ptc
@@ -1,2 +1,2 @@
1
1
  name: 极简 PTC 模式
2
- description: 提示词与极简模式一致(一句固定人格,无运行时上下文与附加指令),保留 PTC 模式的全部能力:Code Mode SDK 多步工具编排,以及文件、Shell、检索、Skills、计划、目标、子代理和工作流。Windows 上 Shell 为持久 PowerShell + Git Bash,并对齐 dsh-v0.1.1-rc.1 子代理配置。
2
+ description: 提示词与极简模式一致(一句固定人格,无运行时上下文与附加指令),保留 PTC 模式的全部能力:PTC SDK 多步工具编排,以及文件、Shell、检索、Skills、计划、目标、子代理和工作流。Windows 上 Shell 为持久 PowerShell + Git Bash,并对齐 dsh-v0.1.2-alpha.2 子代理配置。