STARDUSTLC666/dsh-minimal-ptc
最小提示词 x 完整PTC工具,用于DeepSeek Harness——与Project2 we/let's轨迹对齐(最小99/96)。
项目介绍Project Overview
dsh-minimal-ptc 是一个极简提示词插件,为 DSH 提供“极简 PTC 模式”。核心能力是仅用一句系统提示词,完整保留 PTC 工具链,并支持 Windows 上的 Git Bash 与持久 PowerShell。适合偏好简洁指令、追求 RL 对齐的编码场景。注意:需在 dsh@0.1.1-rc.2 上验证使用。
dsh-minimal-ptc is a minimal-prompt plugin that adds a "Minimal PTC mode" to DSH. Its core capability is a single system prompt while retaining the full PTC toolchain, plus Git Bash and persistent PowerShell support on Windows. Use it when you prefer concise instructions aligned with RL training. Note: verified on dsh@0.1.1-rc.2 only.
请帮我了解并安装插件:【dsh-minimal-ptc】【https://github.com/STARDUSTLC666/dsh-minimal-ptc】
把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.
或使用命令行安装(适合开发者)Or use CLI install (for developers)
命令行安装CLI Install
dsh plugin --profile web add github:STARDUSTLC666/dsh-minimal-ptc
把 STARDUSTLC666/dsh-minimal-ptc 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-minimal-ptc
极简提示词 × PTC 全能力 —— 一个更"干净"的编码 Agent。 安装即获得新的 Agent 模式:极简 PTC 模式;Windows 自动启用 Git Bash 与持久 PowerShell(对齐 dsh-v0.1.1-rc.1)。
卖点
- 对齐 RL 训练:系统提示词只有一句
You are a helpful software engineer assistant., 贴近 RL 微调时的简洁指令分布,没有长提示词带来的格式偏置与上下文噪音, 让模型按训练时的节奏干活。 - 工具完整:完整继承 PTC 模式的全部工具 —— Code Mode SDK 多步编排、 文件读写与检索、Shell、Skills、计划、目标、子代理、工作流,一个不少。
- We / Let's 思维链:Code Mode SDK 把"想"和"做"装进一个 TypeScript 程序,
多步操作先编排、再一次执行。这与 DeepSeek 官方跑分环境(Project2 V4.1b)中
Minimal 高分轨迹一致:99/96 的两跑以
we/let's为主,而不是 Standard/PTC 常见的let me/I长块。 - Windows 保持 bash:预设内置 Git Bash executor(自动探测 GIT_BASH → Program Files\Git → LOCALAPPDATA\Git → PATH),
bash工具不再在 Windows 上被禁用。 - Windows 持久 PowerShell:对齐
dsh-v0.1.1-rc.1的 minimal 预设,pwsh使用持久 PTY 会话,cwd、变量、函数跨调用保留。
兼容性
在 @deepseek-ai/dsh@0.1.1-rc.2 上验证(2026-08-26)。遵循 cordis 组合包补丁模型(cordis.patch.yml + dsh.bundle.patch),运行时不 import 任何 @deepseek-ai/* 内部模块。
安装
把本包加入 web profile(
package.json):"dependencies": { "dsh-minimal-ptc": "^0.4.0" }, "dsh": { "profile": { "bundles": [..., "dsh-minimal-ptc"] } }本地开发也可以用 link:
"dsh-minimal-ptc": "link:E://deepseek//dsh-minimal-ptc"。在 profile 目录执行
pnpm install。重启 web profile 进程:宿主行会把内置预设物化到
$DSH_HOME/.agent-presets/ptc-minimal。新建会话时选择 极简 PTC 模式。
卸载
dsh plugin --profile web remove dsh-minimal-ptc
卸载后重启 Web 服务。如需彻底清理,可再手动删除自己 profile cordis.patch.yml 中覆盖的插件行。
Windows Git Bash 配置
预设内置的 Git Bash executor 可在 agent.cordis.yml 的 gitbash-executor 行覆盖:
| 配置 | 默认 | 说明 |
|---|---|---|
shellPath |
自动探测 | 固定 Git Bash 路径(如 C:\\Program Files\\Git\\bin\\bash.exe) |
timeoutMs |
120000 | 单次命令超时(毫秒) |
maxTimeoutMs |
600000 | 请求可要求的最大超时 |
maxOutputBytes |
64000 | 单次输出上限 |
maxSpillBytes |
67108864 | 输出溢出落盘上限 |
graceMs |
3000 | 超时后的宽限时间 |
自动探测顺序:GIT_BASH → Program Files\\Git → Program Files (x86)\\Git → LOCALAPPDATA\\Programs\\Git → PATH。
目录结构
dsh-minimal-ptc/
├── cordis.patch.yml # 插入宿主行(物化预设)
├── lib/index.js # 宿主插件:物化 ptc-minimal 预设到用户预设根目录
└── presets/ptc-minimal/ # 内置 Agent 模式(极简提示词 + PTC 全能力)
├── agent.cordis.yml
├── gitbash-executor.mjs # Windows Git Bash 探测与执行器(零依赖)
└── preset.yml
说明
- 物化策略:目标目录不存在 → 写入全部文件并留版本标记;版本标记低于当前 版本 → 刷新;目录存在但无标记(用户自建)→ 不覆盖。
- 升级插件:改
version并同步lib/index.js里的VERSION常量即可刷新 用户根目录里的预设文件。
许可证
MIT
nexu-io/open-design
freestylefly/awesome-gpt-image-2
anywhere-labs/dsh-desktop
walkinglabs/learn-harness-engineering
awesome-dsh-plugin/awesome-dsh-plugin
MemTensor/MemOS