前言¶
在 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 目录页。