返回目錄

dsh-gitbash-preset

編輯精選維護狀態: 活躍

liceses/dsh-gitbash-preset

DeepSeek Harness 外掛:一鍵安裝「極簡模式 (Git Bash)」agent preset —— 把 DSH 自帶極簡模式中的 bash 呼叫對映到 Git for Windows 的 bash(MSYS),讓 Windows 上的極簡模式真正可用。

前往 GitHub
$ dsh plugin --profile web add @icelily/dsh-gitbash-preset

131

星數

0

Fork

JavaScript

語言

MIT

授權條款

2026-08-15

建立於

2026-09-14

最近推送

一個 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)

安裝步驟

  1. 01

    執行 `dsh plugin --profile web add @icelily/dsh-gitbash-preset`

    $ dsh plugin --profile web add @icelily/dsh-gitbash-preset

  2. 02

    或手動把 `cordis.patch.yml` 合併進 profile 的 patch 層

  3. 03

    重新啟動 DSH——外掛程式會在啟動時自動安裝預設(已存在則為 no-op)

驗證整合成功

  • 在 Web 介面新建工作階段,選取「極簡模式 (Git Bash)」預設

03DSH 整合程度與能力邊界

DSH 整合原生執行環境

透過 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 安裝中並不存在。
2026-08-152026-08-16作者未說明

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/` 即可,不需要安裝外掛程式。

08資料與來源

  • 作者聲明github.comdb21575b52e2…

    把 DSH 自带极简模式中的 bash 调用映射到 Git for Windows 的 bash(MSYS),让 Windows 上的极简模式真正可用。

  • 作者聲明github.comdb21575b52e2…

    `cordis.patch.yml` 在 web profile 组合中插入 `dsh-gitbash-preset`,启动时安装预设文件

此頁面根據專案公開文件、儲存庫中繼資料與 DSH Plugins 的結構化解析所產生;最後核實於 2026-08-24。發現錯誤?提交更正。

🏆

最佳 DeepSeek Harness 外掛

從全目錄挑出的 12 個值得優先安裝的外掛,涵蓋各個分類。

DSH Plugins 是獨立的 DeepSeek Harness 外掛市集,與 DeepSeek 官方無關,也不代表官方背書。第三方外掛未經安全稽核,安裝前請審查原始碼。

每週取得最新的 DeepSeek Harness 外掛,絕不濫發。