DeepSeek Harness 插件

dsh-win-minimal

Windows minimal agent preset for DeepSeek Harness: a one-line fixed persona, gitbash + str_replace_editor + web_search, no runtime context, no compaction. Installs the preset into the user's(英文原文)

跳到安装方式

来源信息

GitHub 仓库
NIU-001-LIU/dsh-win-minimal
最近更新
2026年8月20日
分类
自动化与任务
GitHub stars
0
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/NIU-001-LIU/dsh-win-minimal
插件名:dsh-win-minimal
作者:NIU-001-LIU

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

dsh-win-minimal

<div align="center">

让 Windows 上的 DeepSeek Harness 也有真正的极简模式。

一句话 persona · 零运行时上下文 · 三工具 · 自动压缩 · 固定最短前缀

![npm](https://www.npmjs.com/package/dsh-win-minimal) ![license](LICENSE) ![platform]() ![topic]() ![dshfind](https://dshfind.com/zh/plugins/jueburenshu123/dsh-win-minimal)

</div>

---

它是什么

一个 agent preset:装上后,新建会话时多出一个「极简模式(Windows)」选项。

┌─────────────────────────────────────────────┐
│  整个 system prompt:                        │
│                                             │
│  You are a helpful software engineer        │
│  assistant.                                 │
│                                             │
│  (就这一句,没有别的)                        │
└─────────────────────────────────────────────┘

工具只有三个:

工具能力
gitbash全局注册的 Git for Windows bash(一次一命令)
str_replace_editor文件编辑
web_search联网搜索(跟随宿主已配置的搜索 provider)

为什么需要它

DSH 官方自带 minimal preset,但它依赖持久 bash 终端——其就绪检测需要 PTY 进程检查,Windows 上不可用。因此 DSH Desktop 在 Windows 上干脆把 minimal 整个隐藏了。

本 preset 是官方 minimal 的 Windows 等价物:

官方 minimaldsh-win-minimal
persona一句固定提示词 + complete✅ 相同
运行时上下文关闭✅ 相同
上下文压缩✅ 有(自动压缩 + /compact)
文件编辑str_replace_editor✅ 相同
shell持久 bash(PTY)一次性 gitbash(Windows 无解,等价替代)

因为 prompt 前缀完全固定且最短,长会话的 KV cache 命中率最高——这是官方 minimal 的设计意图,本 preset 在 Windows 上把它还给你。

快速开始

方式一:插件安装

# CLI / web profile
dsh plugin --profile web add dsh-win-minimal

# DSH Desktop
dsh plugin --profile desktop add dsh-win-minimal

--profile 换成你实际使用的 profile 名即可。)

安装后在哪看到它 ⚠️

不在「插件」设置里(它不是一个 UI 插件)。它在两处:

1. 新建会话时的 preset 下拉选择器(聊天输入框上方)——每次会话选它用 2. 设置 → Agent(智能体)→ Agent Preset 面板——预设列表里能看到并可设为默认值

自查文件是否物化成功:

ls "$DSH_HOME/.agent-presets/win-minimal/"                  # Linux / macOS
dir "%USERPROFILE%\.dsh\.agent-presets\win-minimal"          # Windows(未设 DSH_HOME 时)

文件在而两处都没有 → 完全重启 DSH 再看。仍无则提 issue,附上目录清单。

插件会把 preset 文件物化到 $DSH_HOME/.agent-presets/win-minimal/

方式二:手动安装(不装插件也行)

preset 就是两个数据文件。把本仓库 preset/ 目录复制过去即可:

$DSH_HOME/.agent-presets/win-minimal/agent.cordis.yml
$DSH_HOME/.agent-presets/win-minimal/preset.yml

自定义

preset 是声明式组装,改完新会话立即生效:

  • 改 persona:编辑 agent.cordis.yml 里 persona 行的 text
  • 加减工具:直接增删组装行(比如去掉 tool-web 或加回 todo)
  • 删掉:删除 win-minimal/ 目录
  • WSL:配合 dsh-wsl-workspace 自动生成 wsl-win-minimal 变体

设计取舍

  • bash 非持久:Windows 跑不了官方 minimal 的持久 PTY,用一次性 gitbash 等价替代(前提:装有 dsh-tool-gitbash 等全局 gitbash 工具)
  • 幂等物化:插件只写一次,绝不覆盖你手工改过的文件
  • 零风险安装:host-only、无客户端 bundle、零硬注入——写文件失败只告警,不可能拖垮启动

License

[MIT](LICENSE)

开发

npm test          # 结构校验(preset 文件 + 安装器,零依赖)
node --check index.js