DeepSeek Harness 插件

dsh-maestro-runtime

DSH runtime adapter for maestro-flow: guard, workflow context, KG sync, delegate notifications, team heartbeat, and coordinator bridge.(英文原文)

跳到安装方式

来源信息

GitHub 仓库
zhao-wuyan/dsh-maestro-runtime
最近更新
2026年8月17日
分类
自动化与任务
GitHub stars
0
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/zhao-wuyan/dsh-maestro-runtime
插件名:dsh-maestro-runtime
作者:zhao-wuyan

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器4 个文件
README.zh.md来源说明 · 只读预览
README 语言

dsh-maestro-runtime

English | 中文

仓库地址:https://github.com/zhao-wuyan/dsh-maestro-runtime

相关项目

一个 DSH (DeepSeek Harness) 宿主插件,把 Maestro-Flow 的运行时能力接入 DSH 会话。

已覆盖 P0 + P1:guard(守卫)、workflow context(工作流上下文注入)、新工作区引导、后台 KG 同步、delegate 通知、team 心跳、coordinator 桥接。

功能

  • guard

- 拦截危险的 bash / pwsh 命令(递归删除、硬 git reset、强制 push、格式化磁盘等) - 阻止模型直接写 Maestro 受保护状态(.workflow/state.json.workflow/config.json.workflow/sessions/.workflow/runs/.workflow/.maestro/**) - 执行 .workflow/config.json 的 PathGuard 边界规则 - 校验 .workflow/specs/*.md<spec-entry> 格式

  • context

- 用户输入或调用 /maestro* 技能时,注入去重后的 <maestro-context> 快照 - 包含 workflow 状态、当前 session、项目标题、specs 索引、knowhow 索引、delegate 通知

  • onboarding

- 在没有有效 Maestro workspace 的项目中调用 /maestro* 时,注入一次性的 /maestro-init/maestro "<intent>" 初始化引导 - 普通非 Maestro 任务保持静默,不打扰

  • kg

- 缺少 maestro.db 时后台执行 maestro kg init(5 分钟冷却) - 已存在时后台执行 maestro kg sync --incremental(30 秒冷却) - 直接以 node maestro.js 启动,不经过 cmd shell,不弹终端窗口

  • delegate

- 同时扫描宿主 tmpdir 和一级 dsh-* 会话临时目录中的 maestro-notify-*.jsonl - 注入未读完成通知并标记已读

  • team

- 本地 git 身份匹配已加入成员时,向 .workflow/collab/activity.jsonl 追加 60 秒去重心跳

  • coordinator

- 在 step/endturn/end 时写入 maestro-coord-<dsh_session>.json 桥接文件

环境要求

  • DSH 0.1.0-rc.6 profile(dsh web 可正常运行)
  • Node.js >= 20
  • pnpm >= 10
  • 已安装 maestro-flow CLI,并能在 PATH 中找到 maestro(KG 后台同步使用)

安装

DSH 插件通过 pnpm 安装到 profile,并通过 cordis.patch.yml 挂载。本插件可以直接从 GitHub 安装。

方式一:直接从 GitHub 安装(推荐)

本包声明了 dsh.bundle,因此 dsh plugin add 会同时完成依赖安装和组合层激活:

dsh plugin --profile web add "github:zhao-wuyan/dsh-maestro-runtime#v0.1.2"

等价的 pnpm 手动安装命令:

cd ~/.dsh/profiles/web
pnpm add "github:zhao-wuyan/dsh-maestro-runtime#v0.1.2"

无需手动编辑 cordis.patch.yml。重启 DSH 后验证组合层已生效:

dsh --profile web --dump-config | grep maestro-runtime

如需覆盖默认值,在 ~/.dsh/profiles/web/cordis.patch.yml 中加入(用户层优先):

- id: maestro-runtime
  name: 'dsh-maestro-runtime'
  config:
    guardEnabled: true
    contextEnabled: true
    maxContextChars: 8000
    kgEnabled: true
    delegateMonitorEnabled: true
    teamMonitorEnabled: true
    coordinatorEnabled: true

固定 tag 或 commit

替换 GitHub 简写中的 fragment 即可固定到指定版本:

# 稳定 tag
pnpm add "github:zhao-wuyan/dsh-maestro-runtime#v0.1.2"

# 精确 commit
pnpm add "github:zhao-wuyan/dsh-maestro-runtime#<commit-sha>"

方式二:clone 后本地 link(开发)

git clone https://github.com/zhao-wuyan/dsh-maestro-runtime.git
cd ~/.dsh/profiles/web
dsh plugin --profile web add "<绝对路径>/dsh-maestro-runtime"

checkout 同样声明了 dsh.bundle,profile 的 bundles 列表会自动更新。完成后重启 DSH。

> Windows 请使用正斜杠绝对路径,例如: > pnpm add "link:C:/Users/<you>/projects/dsh-maestro-runtime"

方式三:npm registry

如果已配置的 npm registry 中有该包:

dsh plugin --profile web add "dsh-maestro-runtime@0.1.2"

然后添加相同的挂载项并重启 DSH。

配置

字段默认值说明
guardEnabledtrue启用工具守卫
contextEnabledtrue启用 workflow 上下文注入
maxContextChars8000上下文注入大小上限
kgEnabledtrue后台执行 maestro kg init / sync
delegateMonitorEnabledtruedelegate 通知注入
teamMonitorEnabledtrueteam 心跳写入
coordinatorEnabledtruecoordinator 桥接写入

遵循的 DSH 插件发布约定

  • 包名遵循 dsh-* 命名约定
  • type: modulemainexports 指向构建入口
  • 插件入口导出 nameapply(Cordis 插件契约)
  • inject: ['tools'] 声明所需服务
  • 运行时消费的 DSH 共享模块(dsh-agentdsh-llmdsh-tools)声明为 peer dependencies,不随插件打包,避免遮蔽宿主版本
  • @deepseek-ai/cordis@^4.0.1 与 DSH 宿主 peer 版本对齐 0.1.0-rc.6
  • 通过 profile 的 cordis.patch.yml 挂载,不修改 DSH 源码
  • 导出 Schemastery Config schema,非法配置会在加载时明确失败
  • 声明 dsh.bundledsh plugin add 自动把组合层加入 dsh.profile.bundles

开发

DSH 运行时直接编辑 lib/index.js。profile 的 HMR 插件(root: ['.'])会在变更稳定后重载插件入口。

修改 package.json 依赖或 cordis.patch.yml 后,需要重启 DSH。

License

MIT