dsh-minimal-ptc 0.4.1 → 0.4.2
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 +18 -5
- package/README.md +18 -5
- package/lib/index.js +1 -1
- package/package.json +1 -2
- package/presets/ptc-minimal/agent.cordis.yml +6 -6
- package/presets/ptc-minimal/preset.yml +1 -1
package/README.en.md
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
# dsh-minimal-ptc
|
|
2
2
|
|
|
3
3
|
> 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.
|
|
4
|
+
> Installing gives you a new agent mode: **Minimal PTC**, with Git Bash and persistent PowerShell on Windows, aligned with `dsh-v0.1.2-alpha.2`.
|
|
5
5
|
|
|
6
6
|
## Highlights
|
|
7
7
|
|
|
8
8
|
- **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 —
|
|
10
|
-
- **We / Let's reasoning**: the
|
|
9
|
+
- **Complete toolset**: inherits the full PTC toolset — PTC SDK multi-step orchestration, files and search, Shell, Skills, plan mode, goals, subagents, and workflows.
|
|
10
|
+
- **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
11
|
- **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.
|
|
12
|
+
- **Persistent PowerShell on Windows**: mirrors the `dsh-v0.1.2-alpha.2` minimal preset; `pwsh` runs as a persistent PTY session, so cwd, variables, and functions survive across calls.
|
|
13
|
+
|
|
14
|
+
## Compatibility
|
|
15
|
+
|
|
16
|
+
Verified against `@deepseek-ai/dsh@0.1.2-alpha.2` on 2026-08-31. Built for the cordis patch-bundle plugin model (`cordis.patch.yml` + `dsh.bundle.patch`). No runtime imports of `@deepseek-ai/*` internals.
|
|
13
17
|
|
|
14
18
|
## Installation
|
|
15
19
|
|
|
@@ -28,6 +32,15 @@
|
|
|
28
32
|
|
|
29
33
|
4. Select **Minimal PTC** when starting a new session.
|
|
30
34
|
|
|
35
|
+
## Uninstall
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
dsh plugin --profile web remove dsh-minimal-ptc
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Then restart the web service. To clean up fully, also remove the plugin entry from your profile `cordis.patch.yml` if you overrode it.
|
|
42
|
+
|
|
43
|
+
|
|
31
44
|
## Capabilities
|
|
32
45
|
|
|
33
46
|
- Web search is enabled via `tool-web`; arbitrary page fetch is disabled by default (`fetch: false`).
|
|
@@ -58,4 +71,4 @@ Detection order: `GIT_BASH` -> `Program Files\\Git` -> `Program Files (x86)\\Git
|
|
|
58
71
|
|
|
59
72
|
## License
|
|
60
73
|
|
|
61
|
-
MIT
|
|
74
|
+
MIT
|
package/README.md
CHANGED
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
# dsh-minimal-ptc
|
|
2
2
|
|
|
3
3
|
> 极简提示词 × PTC 全能力 —— 一个更"干净"的编码 Agent。
|
|
4
|
-
> 安装即获得新的 Agent 模式:**极简 PTC 模式**;Windows 自动启用 Git Bash 与持久 PowerShell(对齐 dsh-v0.1.
|
|
4
|
+
> 安装即获得新的 Agent 模式:**极简 PTC 模式**;Windows 自动启用 Git Bash 与持久 PowerShell(对齐 dsh-v0.1.2-alpha.2)。
|
|
5
5
|
|
|
6
6
|
## 卖点
|
|
7
7
|
|
|
8
8
|
- **对齐 RL 训练**:系统提示词只有一句 `You are a helpful software engineer assistant.`,
|
|
9
9
|
贴近 RL 微调时的简洁指令分布,没有长提示词带来的格式偏置与上下文噪音,
|
|
10
10
|
让模型按训练时的节奏干活。
|
|
11
|
-
- **工具完整**:完整继承 PTC 模式的全部工具 ——
|
|
11
|
+
- **工具完整**:完整继承 PTC 模式的全部工具 —— PTC SDK 多步编排、
|
|
12
12
|
文件读写与检索、Shell、Skills、计划、目标、子代理、工作流,一个不少。
|
|
13
|
-
- **We / Let's 思维链**:
|
|
13
|
+
- **We / Let's 思维链**:PTC SDK 把"想"和"做"装进一个 TypeScript 程序,
|
|
14
14
|
多步操作先编排、再一次执行。这与 DeepSeek 官方跑分环境(Project2 V4.1b)中
|
|
15
15
|
Minimal 高分轨迹一致:99/96 的两跑以 `we` / `let's` 为主,而不是
|
|
16
16
|
Standard/PTC 常见的 `let me` / `I` 长块。
|
|
17
17
|
- **Windows 保持 bash**:预设内置 Git Bash executor(自动探测 GIT_BASH → Program Files\Git → LOCALAPPDATA\Git → PATH),`bash` 工具不再在 Windows 上被禁用。
|
|
18
|
-
- **Windows 持久 PowerShell**:对齐 `dsh-v0.1.
|
|
18
|
+
- **Windows 持久 PowerShell**:对齐 `dsh-v0.1.2-alpha.2` 的 minimal 预设,`pwsh` 使用持久 PTY 会话,cwd、变量、函数跨调用保留。
|
|
19
|
+
|
|
20
|
+
## 兼容性
|
|
21
|
+
|
|
22
|
+
在 `@deepseek-ai/dsh@0.1.2-alpha.2` 上验证(2026-08-31)。遵循 cordis 组合包补丁模型(`cordis.patch.yml` + `dsh.bundle.patch`),运行时不 import 任何 `@deepseek-ai/*` 内部模块。
|
|
19
23
|
|
|
20
24
|
## 安装
|
|
21
25
|
|
|
@@ -35,6 +39,15 @@
|
|
|
35
39
|
|
|
36
40
|
4. 新建会话时选择 **极简 PTC 模式**。
|
|
37
41
|
|
|
42
|
+
## 卸载
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
dsh plugin --profile web remove dsh-minimal-ptc
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
卸载后重启 Web 服务。如需彻底清理,可再手动删除自己 profile `cordis.patch.yml` 中覆盖的插件行。
|
|
49
|
+
|
|
50
|
+
|
|
38
51
|
## Windows Git Bash 配置
|
|
39
52
|
|
|
40
53
|
预设内置的 Git Bash executor 可在 `agent.cordis.yml` 的 `gitbash-executor` 行覆盖:
|
|
@@ -71,4 +84,4 @@ dsh-minimal-ptc/
|
|
|
71
84
|
|
|
72
85
|
## 许可证
|
|
73
86
|
|
|
74
|
-
MIT
|
|
87
|
+
MIT
|
package/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-minimal-ptc",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "Minimal prompt x full PTC tools for DeepSeek Harness - aligned with the Project2 we/let's trajectory (Minimal 99/96).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
"deepseek-harness",
|
|
30
30
|
"plugin",
|
|
31
31
|
"agent-preset",
|
|
32
|
-
"code-mode",
|
|
33
32
|
"dsh-plugin",
|
|
34
33
|
"deepseek",
|
|
35
34
|
"llm-agent",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
# The `ptc-minimal` agent preset: the `
|
|
1
|
+
# The `ptc-minimal` agent preset: the `ptc` (PTC 模式) capabilities with the
|
|
2
2
|
# `minimal` (极简模式) prompt.
|
|
3
3
|
#
|
|
4
|
-
# Everything in `
|
|
5
|
-
#
|
|
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 `
|
|
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
|
#
|
|
@@ -271,10 +271,10 @@
|
|
|
271
271
|
|
|
272
272
|
# ── presentation ────────────────────────────────────────────────────────────
|
|
273
273
|
|
|
274
|
-
#
|
|
274
|
+
# PTC for this agent alone. The row waits for the host's `codeRuntime`
|
|
275
275
|
# rather than assuming it: a deployment that composes no TypeScript runtime
|
|
276
276
|
# fails this preset at mount, naming this id, instead of at the first request.
|
|
277
277
|
- id: tool-presentation
|
|
278
278
|
name: '@deepseek-ai/dsh-agent-tool-presentation'
|
|
279
279
|
config:
|
|
280
|
-
mode:
|
|
280
|
+
mode: ptc
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
name: 极简 PTC 模式
|
|
2
|
-
description: 提示词与极简模式一致(一句固定人格,无运行时上下文与附加指令),保留 PTC 模式的全部能力:
|
|
2
|
+
description: 提示词与极简模式一致(一句固定人格,无运行时上下文与附加指令),保留 PTC 模式的全部能力:PTC SDK 多步工具编排,以及文件、Shell、检索、Skills、计划、目标、子代理和工作流。Windows 上 Shell 为持久 PowerShell + Git Bash,并对齐 dsh-v0.1.2-alpha.2 子代理配置。
|