前言¶
在 DeepSeek Harness(DSH)里跑桌面 profile 时,若你还单独维护一套 dsh-superagent 仓库,常见做法是手工看 launchd 任务、翻本地日志、再另开终端用控制脚本启停。对话入口也常常和「服务是否在跑、插件是否装到 superagent profile」脱节。dingmac/dsh-superagent-monitor 把上述操作收进 DSH Web GUI:侧边栏多一页 Superagent Monitor,并增加 Superagent 对话标签,作为独立 superagent 实例的控制台与桌面会话入口。
这是什么¶
该插件由维护者 dingmac 发布,分类属于 客户端。它是一个 DSH bundle:在支持 plugin-bundle 的 DSH Web GUI 上挂载监控页和 Superagent 会话标签,对接本机 standalone dsh-superagent 的 launchd 作业、管理 API、日志与控制脚本,并支持把当前 desktop profile 里选中的仪表盘插件同步到 superagent 所用 profile。社区目录页见 SkillHub 条目,源码与说明在 GitHub。
核心功能¶
下面介绍 README 中写明、且与实现定位一致的能力。
服务概览¶
插件读取 launchd 作业、本机管理 API(路径前缀为 /orchestrator/api/*),以及进程日志尾部,在页面上汇总服务状态,便于确认 superagent 是否按预期运行。
显式启停¶
Start、Stop、Restart 通过 dsh-superagent 仓库自带的 scripts/dsh-superagent 控制脚本完成,不直接向 PID 发信号。操作前应在页面上核对目标服务与 checkout 路径,避免误操作错误目录下的实例。
插件同步与状态¶
插件同步区会列出当前 DSH profile 中已安装的插件,用户勾选后通过 dsh plugin add 复制到 superagent profile。界面还会展示依赖、bundle、已安装内容及运行中的 superagent 是否已加载对应插件。可选 Auto sync:在下次轮询时,把新安装的 dashboard 插件自动复制到 superagent。
Superagent 对话标签¶
Superagent 标签提供桌面会话入口,中继到 superagent desktop source,并聚合 Feishu / GitHub 反馈(能力描述来自项目 README)。
安全边界¶
管理 API 仅接受 loopback 地址;非 loopback 的 URL 会被拒绝而不是发起请求。服务变更依赖同源显式 POST。插件只读本地服务状态与日志,不上传;仅在用户触发(或开启 auto-sync)时对 superagent profile 执行 dsh plugin add。
环境与依赖¶
使用前需满足 README 列出的条件:
- 带 plugin-bundle 支持的 DSH Web GUI。
- macOS 与
launchd(用于服务监管)。 - 独立的
dsh-superagentcheckout,默认路径~/src/dsh-superagent,且存在scripts/dsh-superagent控制脚本。 - DSH 可用的 Node.js。
安装与启用¶
官方从 GitHub 安装命令如下;安装后需重启 DSH 或重载插件,bundle 补丁会在 profile 中增加 superagent-monitor 行。
dsh plugin --profile desktop add github:dingmac/dsh-superagent-monitor
若使用本地 checkout,先将仓库放到本机目录,再用绝对路径添加(README 示例含 git clone,本文安装步骤以你本机已有源码为准):
dsh plugin --profile desktop add /absolute/path/to/dsh-superagent-monitor
同样需要在安装后重启 DSH。当前 bundle 版本为 1.4.0,许可证 MIT。
配置项¶
默认值在 normalizeConfig / cordis.patch.yml 中解析;路径或端口与默认不一致时,可在 bundle 行配置中覆盖:
| 字段 | 默认值 | 作用 |
|---|---|---|
root |
~/src/dsh-superagent |
standalone superagent 仓库路径 |
profile |
superagent |
superagent 使用的 DSH profile |
url |
http://127.0.0.1:3082 |
本机管理 API(仅 loopback) |
stateDir |
~/.dsh-superagent |
superagent 状态目录 |
launchAgentsDir |
~/Library/LaunchAgents |
launchd 作业发现路径 |
stateFile |
~/.dsh/state/superagent-monitor/state.json |
仪表盘状态文件 |
典型用法¶
- 打开 DSH Web GUI。
- 在侧边栏进入 Superagent Monitor。
- 查看服务、launchd、API 与日志各区段。
- 确认目标无误后,再使用 Start / Stop / Restart。
- 在插件同步区将需要的 dashboard 插件复制到 superagent profile。
- 打开 Superagent 标签使用桌面会话入口。
适用场景与注意¶
适合谁: 已在 macOS 上用 launchd 跑独立 dsh-superagent,并希望从 DSH Web 统一看盘、启停和插件对齐的开发者。
权限与审阅: 插件以当前 DSH 进程权限运行,可读取本机 launchd、日志与状态,并可按你的操作改写 superagent 侧插件与通过控制脚本影响服务。安装前应阅读 源码与 LICENSE,确认路径、端口与 auto-sync 行为符合你的环境。DSH 生态强调「一切皆插件」;SkillHub 等社区目录为独立站点,与 DeepSeek / 幻方无官方从属关系。
结尾¶
dsh-superagent-monitor 把 standalone superagent 的状态、控制、插件同步和桌面会话入口收到 DSH GUI 一侧,减少在终端与多个界面之间切换。更多元数据与分类见 SkillHub 插件页,实现细节与/issue 见 GitHub 仓库。