在 DeepSeek Harness (DSH) 的生态中,agent 的表现很大程度上取决于提示词设计和工具编排。现有的配置往往包含冗长的系统指令,容易引入格式偏置和上下文噪音。同时,在 Windows 环境下,终端工具的兼容性和会话持久化常成为瓶颈。dsh-minimal-ptc 插件旨在解决这些问题,提供一个对齐 RL 训练风格、工具面完整且在 Windows 上表现更稳定的编码 agent 模式。
Plugin Positioning¶
This plugin is maintained by STARDUSTLC666 and provides a Minimal PTC mode. It simplifies the system prompt to the standard instruction distribution used during RL fine-tuning, and completes PTC’s tool-calling capabilities.
Core Features¶
-
RL Training Alignment
The system prompt keeps only the core instructions, reducing format bias and context noise introduced by long text, so the model operates in the same cadence as during training. -
Complete PTC Tool Surface
Supports multi-step orchestration, file read/write and retrieval, Shell, Skills, plan, goals, sub-agents, Ralph, and web search/scraping; generic workflow tools are hidden by default per alpha.4. -
We / Let’s Chain-of-Thought
Uses a logic of orchestrating multi-step operations before execution (we/let's), which is consistent with high-scoring Minimal trajectories in the official DeepSeek benchmark environment (Project2 V4.1b). -
Windows Tool Optimization
- Git Bash: Built-in Git Bash executor with automatic path detection, enabling the
bashtool on Windows. - Persistent PowerShell: Uses a persistent PTY session to preserve
cwd, variables, and functions across invocations.
- Git Bash: Built-in Git Bash executor with automatic path detection, enabling the
Installation and Activation¶
- Add the dependency and bundle configuration to
package.jsonin the profile directory:
"dependencies": { "dsh-minimal-ptc": "^0.4.0" },
"dsh": { "profile": { "bundles": [..., "dsh-minimal-ptc"] } }
For local development, a link can also be used: `"dsh-minimal-ptc": "link:E://deepseek//dsh-minimal-ptc"`.
-
Run
pnpm installin the profile directory. -
Restart the Web profile process. The host process materializes the built-in presets to
$DSH_HOME/.agent-presets/ptc-minimal. -
When creating a new session, select Minimal PTC mode.
Configuration and Usage¶
Configuration can be overridden in the gitbash-executor section of agent.cordis.yml. The default parameters are as follows:
| Configuration | Default | Description |
|---|---|---|
shellPath |
Auto-detect | Pin a Git Bash path; detection order: GIT_BASH → Program Files\Git → Program Files (x86)\Git → LOCALAPPDATA\Programs\Git → PATH |
timeoutMs |
120000 | Timeout for a single command (milliseconds) |
maxTimeoutMs |
600000 | Maximum timeout that a request can specify |
maxOutputBytes |
64000 | Maximum output size for a single invocation |
maxSpillBytes |
67108864 | Maximum size for output spill-to-disk |
graceMs |
3000 | Grace period after timeout |
Notes¶
- Node version requirement: Consistent with Harness 0.1.5-rc.1; requires 22.x ≥ 22.19, or Node ≥ 24.
- Verification status: Verified on official
@deepseek-ai/dsh@0.1.5-rc.1and Node 24.16.0, with 18 components co-loaded with Modlens; tool schema, skill registration, and offline read-only invocation checks passed. - Materialization policy: If the target directory does not exist, all files are written with a version marker; if the version marker is lower than the current version, it is refreshed; if the directory exists but has no marker (user-created), it is not overwritten.
- External services: Actual business operations for external services must be validated separately according to each component configuration.
Summary¶
This plugin is suitable for agent developers who want a closer alignment with RL fine-tuning behavior and more complete tool calling on Windows. Source code and license are available via the links below.