前言¶
在 DeepSeek Harness(DSH)裏開發智能體時,會話、工作區、權限模式、設置和插件市場往往只能在桌面 GUI 裏點選完成。智能體若只能改工作區文件、跑 shell,就很難把「用戶在界面上會看到什麼」和「智能體實際改了什麼」對齊:會話沒歸檔、工作區沒建好、市場源沒加上,界面上仍是一副舊狀態。
dsh-gui-bridge 由 NorthBlizzard 維護,歸類爲客戶端插件。它向智能體暴露一組工具,每個工具調用與瀏覽器相同的 Host 服務,因此創建或修改的內容會持久化並在 GUI 中呈現。下面介紹插件定位、工具能力、安裝方式、配置項與使用邊界。
這是什麼¶
一句話:Agent tools that drive DeepSeek Harness GUI operations: sessions, workspaces, permission mode, settings, and the plugin market.
維護者 NorthBlizzard,倉庫 dsh-gui-bridge,社區目錄頁 skillhub.cn/plugins/NorthBlizzard/dsh-gui-bridge。當前 package.json 版本爲 1.1.0,許可證 MIT,要求 DSH 引擎 >=0.2.2-rc.3 <0.3.0。
核心功能¶
插件註冊五個工具,默認 session_id 爲當前調用會話。
| 工具 | 支持的動作 |
|---|---|
dsh_gui_session |
list, create, state, rename, fork, archive, unarchive, pin, unpin, prompt, cancel |
dsh_gui_workspace |
list, create, rename, delete, reorder, move_session |
dsh_gui_mode |
list, set |
dsh_gui_settings |
describe, update, replace, mutate |
dsh_gui_market |
catalog, indexes, add_source, search, detail, installed, enable, disable |
dsh_gui_settings 在 describe 中列出命名空間鍵;傳入 namespace 時返回該命名空間的 schema 與取值。dsh_gui_market 的 catalog 列出本安裝可用的 bundle(含尚未安裝的官方包),並給出可交給 plugin_manager 的 install_spec;indexes、search、detail 面向在 Settings > Plugins 中配置的遠程市場索引。
安裝與啓用¶
社區目錄與 GitHub 並列存在,與 DeepSeek / 幻方無官方從屬關係;安裝前建議在倉庫中核對源碼與 MIT 許可證。插件以當前 dsh 進程權限運行。
方式一:從市場索引安裝
- 打開 Plugins,啓用實驗性 Custom plugin indexes bundle。
- 打開 Discover → Add index source,粘貼:
https://raw.githubusercontent.com/NorthBlizzard/dsh-gui-bridge/main/market/index.json
- 選擇
GUI bridge,確認源並安裝。
方式二:直接安裝倉庫
dsh plugin --profile desktop add "git+https://github.com/NorthBlizzard/dsh-gui-bridge.git"
README 說明:在 profile 支持 live apply 時無需重啓。插件運行後,智能體也可自行註冊同一索引:
dsh_gui_market action: add_source
index_url: https://raw.githubusercontent.com/NorthBlizzard/dsh-gui-bridge/main/market/index.json
配置項¶
在插件行的 cordis.patch.yml 中可設置:
| 鍵 | 默認值 | 作用 |
|---|---|---|
maxItems |
50 |
列表與 catalog 查詢的行數上限,最大 200 |
sessionPrompt |
true |
是否允許 dsh_gui_session 的 prompt 向會話投遞消息 |
marketToggle |
true |
是否允許 dsh_gui_market 的 enable、disable |
modeWidening |
"deny" |
爲 "allow" 時,dsh_gui_mode 的 set 可提高會話沙箱等級或去掉審批提示 |
language |
"en" |
dsh_gui_market 的 detail 默認語言 |
典型用法¶
先做索引或本地安裝,再在對話中讓智能體調用工具。常見流程示例:
- 用
dsh_gui_workspace的list/create整理工作區,再用move_session把會話歸位。 - 用
dsh_gui_session的state、rename、archive管理當前或其它會話(顯式傳session_id時)。 - 用
dsh_gui_market的catalog查看可安裝 bundle 及install_spec,需要時配合 README 中的add_source增加市場源;實際裝包仍走帶審批的plugin_manager。 - 用
dsh_gui_settings的describe查清命名空間後,再用update/replace/mutate寫用戶層設置(與 Settings 頁面同一層,不返回密鑰值)。
適用場景與注意¶
適合需要在智能體側自動化 GUI 側會話與工作區、只讀或有限修改權限模式、查詢或切換插件市場狀態、改非密鑰設置的 DSH 桌面用戶。不適合指望本插件完成 Plan 模式切換或插件包的安裝/更新/卸載:dsh_gui_mode 的 set 可自由收緊權限,但在 modeWidening 爲 "deny" 時拒絕放寬;Plan 模式未橋接,composer 的 /plan 仍是切換方式;包管理請用 plugin_manager。關閉插件會移除五個工具,已改動的狀態保留不動。
結尾¶
dsh-gui-bridge 把 Harness GUI 的 Host 能力收斂爲五個工具,使智能體改動與界面展示一致。進一步說明見 GitHub README 與 SkillHub 目錄頁。