dsh-gitbash-preset
DeepSeek Harness plugin: installs the 'minimal-gitbash' agent preset — the Windows variant of the shipped minimal preset that routes the bash tool through Git for Windows bash (MSYS), with automatic shell discovery and sandbox-aware gating.
一句话定位
DeepSeek Harness plugin: installs the 'minimal-gitbash' agent preset — the Windows variant of the shipped minimal preset that routes the bash tool through Git for Windows bash (MSYS), with automatic shell discovery and sandbox-aware gating.
安装方式
在 DSH 的 web profile 中执行下面的命令;装完刷新页面即可。
$ dsh plugin --profile web add @icelily/dsh-gitbash-preset@0.1.2
兼容的 DSH 版本
未声明
作者与热度
liceses · ★ 128 · 更新于 2026-10-07
关于这个插件
dsh-gitbash-preset · 让 Windows 上的极简模式用上 Git Bash English: A DeepSeek Harness plugin that installs a "minimal (Git Bash)" agent preset, so on Windows the minimal mode's command tool runs Git for Windows bash instead of PowerShell.
DSH 的极简模式在 Windows 上不会给你 bash —— 官方按平台分叉,win32 那一支挂的是持久 PowerShell。 这个插件交付一个预设变体「极简模式 (Git Bash)」:persona 与 str_replace_editor 跟官方极简模式逐字一致, 只把命令工具换成 bash,每次调用真正跑在 Git for Windows 的 bash(MSYS) 上。
一句话:Windows 上想要一个写 bash 的极简模式,装它。 [!IMPORTANT] 先看版本边界再动手。 本插件用的是 DSH 早期的「用户预设目录」机制;在本次勘察所用的 DSH 0.1.7-rc.2 上,官方已把预设换成 bundle 声明行,那个目录已不再被读取。 详情与出处见 已知限制 → DSH 版本边界。旧版本上是否可用,未在本机验证。
*本机实拍:插件装上了、组件「运行中」,但这一页上没有出现可选的预设卡片 —— 这正是上面那条版本边界的现场表现。* 目录 它改变了什么
DSH 自带的极简模式是按平台分叉的(源码出处:@deepseek-ai/dsh-web-app 的 presets/minimal.patch.yml,同一套分叉也在 dsh-sdk-minimal/cordis.patch.yml 里):
也就是说:Windows 上的极简模式没坏,只是命令工具是 PowerShell。 本插件给的就是另一种选法。 「每次调用新 shell」不是偷懒:Windows 上官方把持久 bash 整条支路关掉了(上面那两行 disabled), 而本插件的执行器是直接 spawn 一个 bash -c(见 工作原理)—— 这是替代设计,不是等价实现。 快速开始
前置条件:Windows;装了 Git for Windows;DSH 的 Node ≥ 20。
装完 重启 DSH(插件行在启动时装配,重启时才会把预设文件写进用户预设根)。 注意包名:安装命令必须用包名 @icelily/dsh-gitbash-preset, 不能写仓库名 dsh-gitbash-preset —— 后者在 npm 上不是这个包,会装失败。
然后:新建会话 → 选「极简模式 (Git Bash)」→ 把会话沙箱切到「完全访问」, 之后所有 bash 调用直接走 Git Bash。想留在 workspace-write 也可以,让模型在第一次调用失败后 按提示用 sandbox_permissions: "danger-full-access" + justification 单次升级(走正常审批流程)。 ⚠️ 先读 已知限制。 本插件依赖的用户预设目录在当前 DSH 上已不再被读取, 装完可能选不到这个预设(出处与核对方式)。 装完之后你得到什么
预设文件被复制到 ${DSH_HOME:-~/.dsh}/.agent-presets/minimal-gitbash/(lib/index.js:32-37), 一共三个文件加一份测试。下面是仓库里真实的内容(不是示意)。
agent-presets/minimal-gitbash/preset.yml —— 预设的显示信息: order: 6 排在官方四个预设之后(standard 标准模式=1 / ptc PTC 模式=2 / minimal 极简模式=3 / cordis 创造模式=4;顺序取自 @deepseek-ai/dsh-web-app 的 presets/*.patch.yml)。