一個 DSH 外掛程式,透過 Git for Windows(MSYS)接管極簡模式的 bash,提供冪等安裝與沙箱感知閘控,讓 Windows 上的極簡模式可用。
DSH 整合
原生執行環境
作者聲明
安全稽核
未稽核
最後核實
2026-08-24
授權條款
MIT
01它能幫你完成什麼?
把極簡模式的 bash 轉到 Git for Windows(MSYS),讓 DSH 極簡模式在 Windows 上能用
一個可安裝的 agent 預設,透過 git bash 執行指令,並帶沙箱感知閘控
在 Windows 上使用 DeepSeek Harness(dsh)、需要極簡模式 bash 工具的使用者
02如何將外掛接入 DeepSeek Harness?
先決條件
- 已安裝 Git for Windows(提供 bash / MSYS)
- 使用 web profile 的 DeepSeek Harness(dsh)
安裝步驟
- 01
執行 `dsh plugin --profile web add @icelily/dsh-gitbash-preset`
$ dsh plugin --profile web add @icelily/dsh-gitbash-preset
- 02
或手動把 `cordis.patch.yml` 合併進 profile 的 patch 層
- 03
重新啟動 DSH——外掛程式會在啟動時自動安裝預設(已存在則為 no-op)
驗證整合成功
- 在 Web 介面新建工作階段,選取「極簡模式 (Git Bash)」預設
03DSH 整合程度與能力邊界
透過 cordis.patch.yml 交付的 DSH agent 預設;把極簡模式的 bash 呼叫對應到 Git for Windows 的 bash(MSYS)
冪等安裝預設
web profile 下的 DSH 啟動→把打包的預設複製到 `${DSH_HOME:-~/.dsh}/.agent-presets/minimal-gitbash/`;已存在則跳過,`force: true` 才覆寫
在使用者 DSH_HOME 預設根下寫入預設檔案自動偵測 bash
DSH 宿主環境→`GIT_BASH` 環境變數 → 常見安裝目錄 → PATH 中的 `bash.exe` → 兜底的 `bash`
沙箱感知閘控
bash 的 run / start 請求→僅在 `danger-full-access`(或無沙箱的部署)下執行;否則拋出帶指引的錯誤
未開啟完全存取原則時指令會被攔截
04適合誰?何時不該用?
適合
- 在 Windows 上使用 DeepSeek Harness(dsh)、需要極簡模式 bash 工具的使用者
不適合
- 為 Windows 設計。DSH 極簡模式在 win32 上原本無法使用:PTY 後端不被支援,且 PATH 中預設沒有 bash。
- bash 僅在完全存取沙箱原則下執行;受限原則時模型必須用 `sandbox_permissions: "danger-full-access"` 加理由單次升級。
- 依賴 Git for Windows(MSYS bash)。若沒有,bash 解析會兜底到裸 `bash`,而預設的 Windows 安裝中並不存在。
05相容性、維護與安全提醒
- 為 Windows 設計。DSH 極簡模式在 win32 上原本無法使用:PTY 後端不被支援,且 PATH 中預設沒有 bash。
- bash 僅在完全存取沙箱原則下執行;受限原則時模型必須用 `sandbox_permissions: "danger-full-access"` 加理由單次升級。
- 依賴 Git for Windows(MSYS bash)。若沒有,bash 解析會兜底到裸 `bash`,而預設的 Windows 安裝中並不存在。
MIT · 無最新釋出(latest_release: null)
06常見問題
為什麼 DSH 極簡模式在 Windows 上會失敗?
兩層原因:持久 bash 依賴的 PTY 後端在 win32 上被 `@deepseek-ai/dsh-subprocess-local` 直接拒絕(`terminal inspection is unsupported on platform win32`),而 `@deepseek-ai/dsh-bash-local` 又硬編碼從 PATH 找 `bash`,Windows 預設沒有。
怎麼安裝 dsh-gitbash-preset?
執行 `dsh plugin --profile web add @icelily/dsh-gitbash-preset`,或手動把 `cordis.patch.yml` 合併進你的 profile patch 層。重新啟動 DSH 後外掛程式會在啟動時自動安裝預設(已存在則為 no-op)。
為什麼 bash 只在完全存取沙箱下才允許?
MSYS 無法在 Windows 受限令牌沙箱內啟動(無法建立 signal pipe),所以執行器只在 `danger-full-access`(或無沙箱部署)下執行;否則拋出明確的升級指引,而不是繞過沙箱。
它是怎麼找到 Git for Windows 的 bash 的?
依序檢查 `GIT_BASH` 環境變數、常見安裝目錄(ProgramFiles / ProgramFiles(x86) / LOCALAPPDATA)、PATH 中的 `bash.exe`,最後兜底到裸 `bash`——不需要硬編碼路徑。
不安裝外掛程式能直接用預設嗎?
可以——直接把 `agent-presets/minimal-gitbash/` 目錄複製到 `~/.dsh/.agent-presets/` 即可,不需要安裝外掛程式。
07相關的 DSH 工作流程
dsh-routing-suite
作者 yjh051108
DeepSeek Harness(dsh)路由套件:先裝執行時注入器,再載入任務感知的推理模式路由預設(已實測 P1-P23)。
brooks-lint
作者 hyhmrright
基於 12 本經典工程書籍的 AI 程式碼評審工具,提供腐化風險診斷、書籍引用、嚴重度標籤及 6 種分析模式。
dsh-plugin-shop
作者 livxue
DeepSeek Harness 最全面的外掛市場,每日更新、全網採集、釋出前稽核。
dsh-our-free-model
作者 zouyuxuan122
在 dsh 裡裝上這個外掛即可,無需登入、註冊或填 API Key,就能使用包括 Muse Spark 1.3、MiMo V2.6 在內的前沿模型——完全免費,不限量。 All you do is install this plugin in dsh: no login, no sign-up, no API key — the frontier models are just there, Muse Spark 1.3 and MiMo V2.6 among them. Completely free, with no usage cap.
08資料與來源
把 DSH 自带极简模式中的 bash 调用映射到 Git for Windows 的 bash(MSYS),让 Windows 上的极简模式真正可用。
`cordis.patch.yml` 在 web profile 组合中插入 `dsh-gitbash-preset`,启动时安装预设文件
此頁面根據專案公開文件、儲存庫中繼資料與 DSH Plugins 的結構化解析所產生;最後核實於 2026-08-24。發現錯誤?提交更正。
最佳 DeepSeek Harness 外掛
從全目錄挑出的 12 個值得優先安裝的外掛,涵蓋各個分類。
