← Back to home@wangxiang0605qvq

dsh-minimal-win

DeepSeek Harness 极简增强模式 | Minimal-Win Agent Preset(Windows 下自动使用 pwsh 的极简增强预设)

Stars
0
Language
—
Created
Aug 15, 2026
Updated
Sep 8, 2026

Introduction

dsh-minimal-win — DeepSeek Harness 极简增强版本 | Minimal-Enhanced Agent Preset

DeepSeek Harness(DSH)的「极简增强版本」agent 预设:保留极简模式的两工具内核,再按需解锁一小套轻量工具,并配一套「第一人称思维链 + 渐进暴露工具 + 抵抗过拟合」的强化系统提示词。预设面向 Windows 做了适配:Windows 下自动改用 pwsh,命令始终能 spawn,不会因为找不到 bash 而失败。

Minimal-Enhanced is a DSH agent preset: the minimal two-tool core (shell + str_replace_editor) plus a small "unlock" set, driven by a fixed enhanced persona. It is Windows-ready — the persistent shell chain switches to pwsh on win32, so commands always spawn.

功能 | Features

  • 第一人称「I am doing」思维链:要求每一步内部推理都以第一人称、现在进行时开头,分段输出,每段聚焦一个子目标。
  • 渐进暴露工具,防止过拟合:首轮只用 shell 与 str_replace_editor;后续轮次按任务复杂度逐步解锁 grep / glob、web_search、todo_write、ask_user_question、skill,并要求在调用新工具前先说明目的。
  • 抵抗过拟合的元策略:遇到似曾相识的问题刻意从底层重新推导,禁止套用记忆中的模板。
  • Windows 自动使用 pwsh:win32 上禁用 bash 持久链,由 @deepseek-ai/dsh-tool-pwsh-persistent 接管命令执行;POSIX 上仍使用持久 bash 链路,平台守卫保证两套 shell 不会同时生效。
  • 完整系统提示词:persona 为 complete: true,并关闭运行时上下文快照,因此 {{cwd}} 与 {{model}} 被直接折进 persona 文本。

文件 | Files

文件说明
minimal-enhanced/preset.yml预设元数据:名称与描述
minimal-enhanced/agent.cordis.yml预设的 Cordis 插件树(persona、shell、文件系统、解锁工具集、技能)

预设结构 | Composition

agent.cordis.yml 依次挂载:

  1. identity — @deepseek-ai/dsh-persona,complete: true,includeRuntimeContext: false。
  2. shell — cordis:group 隔离 terminals:dsh-terminal + 持久 bash(POSIX)/ 持久 pwsh(win32)。
  3. filesystem — cordis:group 隔离 fs:dsh-fs-local + dsh-tool-str-replace-editor(需绝对路径)。
  4. unlock set — dsh-tool-fs-search(glob / grep)、dsh-tool-web(仅 web_search,fetch: false)、dsh-tool-todo(同时只允许一个 in-progress)、dsh-tool-ask-user。
  5. skills — dsh-skill-filesystem + dsh-tool-skill。

本预设不提供 subagent、workflow、goal、plan 等重型能力;任务确实需要时,模型会提示改用「标准模式」。

安装 | Install

1. 复制预设文件

将本仓库的 minimal-enhanced/ 目录复制到 DSH 的 agent 预设目录:

# 以本机 DSH 安装为例;路径里的 ~ 请替换为你的 DSH_HOME 或用户目录
Copy-Item -Recurse .\minimal-enhanced "$env:USERPROFILE\.dsh\.agent-presets\minimal-enhanced"

如果目标目录已存在,可以直接覆盖这两个文件。

2. 设为默认预设(可选)

在 ~/.dsh/settings.yaml 中设置:

agent-presets:
  default: minimal-enhanced

3. 重启 DSH

重启 dsh web(或对应的 profile)后,新会话默认使用「极简增强版本」。

说明 | Notes

  • 本仓库不包含任何 API Key、令牌、凭据或本地隐私路径,可以安全公开。
  • 预设通过 process.platform 判断操作系统,不依赖任何第三方服务。
  • 如果只需要临时使用,也可以在启动时通过 DSH 的 preset 参数指定 minimal-enhanced。
  • 仓库早期的 minimal-win 预设(英文「we」思考链 + safe-mode 技能)已被本预设替换,历史仍保留在 git 提交记录中。

License

MIT