插件目录 / Knowledge / dsh-maestro-runtime
dsh-maestro-runtime
已验证 · 实测可装 zhao-wuyan
功能简介
DSH host plugin for maestro-flow: guard, context, KG sync, delegate/team/coordinator runtime
可用 — 实测通过,早期项目
DSH host plugin for maestro-flow: guard, context, KG sync, delegate/team/coordinator runtime 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-maestro-runtime
Repository: https://github.com/zhao-wuyan/dsh-maestro-runtime
Related projects:
DSH (DeepSeek Harness) host plugin that adapts the Maestro-Flow runtime surface to DSH sessions.
P0 + P1 coverage: guard, workflow context injection, new-workspace onboarding, background KG sync, delegate notifications, team heartbeat, and coordinator bridge.
Features
- guard
- blocks dangerous
bash/pwshcommands (recursive delete, hard git reset, forced push, disk format, ...) - blocks direct model writes to protected Maestro state (
.workflow/state.json,.workflow/config.json,.workflow/sessions/**,.workflow/runs/**,.workflow/.maestro/**) - enforces
.workflow/config.jsonPathGuard boundaries - validates
.workflow/specs/*.md<spec-entry>format
- blocks dangerous
- context
- injects a deduplicated
<maestro-context>snapshot on user prompts and/maestro*skill invocations - includes workflow state, active session, project title, specs index, knowhow index, delegate notifications
- injects a deduplicated
- onboarding
- when a
/maestro*skill is invoked in a project without a valid Maestro workspace, injects one-time/maestro-init//maestro "<intent>"guidance - stays silent for ordinary non-Maestro prompts
- when a
- kg
- background
maestro kg initwhenmaestro.dbis missing (5 min cooldown) - background
maestro kg sync --incrementalwhen it exists (30 s cooldown) - direct
node maestro.jsspawn, no cmd shell, no console window
- background
- delegate
- scans host tmpdir and first-level
dsh-*session temp dirs formaestro-notify-*.jsonl - injects unread completion notifications and marks them read
- scans host tmpdir and first-level
- team
- appends a 60 s deduplicated heartbeat to
.workflow/collab/activity.jsonlwhen the local git identity matches a joined member
- appends a 60 s deduplicated heartbeat to
- coordinator
- writes
maestro-coord-<dsh_session>.jsonbridge files onstep/endandturn/end
- writes
Requirements
- DSH
0.1.0-rc.6profile (dsh webworks) - Node.js >= 20
- pnpm >= 10
maestro-flowCLI installed and available asmaestro(used by KG background sync)
Install
DSH plugins are installed into a profile with pnpm and mounted with acordis.patch.yml entry. This plugin can be installed directly from GitHub.
Method 1: install directly from GitHub (recommended)
This package declares dsh.bundle, so dsh plugin add installs the
dependency and activates its bundle layer automatically:
dsh plugin --profile web add "github:zhao-wuyan/dsh-maestro-runtime#v0.1.2"
Equivalent manual pnpm command:
cd ~/.dsh/profiles/web
pnpm add "github:zhao-wuyan/dsh-maestro-runtime#v0.1.2"
No manual cordis.patch.yml edit is required. Restart DSH and verify the
bundle layer is active:
dsh --profile web --dump-config | grep maestro-runtime
To override a default, add this entry to~/.dsh/profiles/web/cordis.patch.yml (user layer wins):
- id: maestro-runtime
name: 'dsh-maestro-runtime'
config:
guardEnabled: true
contextEnabled: true
maxContextChars: 8000
kgEnabled: true
delegateMonitorEnabled: true
teamMonitorEnabled: true
coordinatorEnabled: true
Pin a tag or commit
Replace the fragment in the GitHub shorthand to pin the exact source:
# stable tag
pnpm add "github:zhao-wuyan/dsh-maestro-runtime#v0.1.2"
# exact commit
pnpm add "github:zhao-wuyan/dsh-maestro-runtime#<commit-sha>"
Method 2: clone and link locally (development)
git clone https://github.com/zhao-wuyan/dsh-maestro-runtime.git
cd ~/.dsh/profiles/web
dsh plugin --profile web add "<absolute-path-to>/dsh-maestro-runtime"
Because the checkout also declares dsh.bundle, the profile bundles list is
updated automatically. Restart DSH afterwards.
On Windows use a forward-slash absolute path, for example
pnpm add "link:C:/Users/<you>/projects/dsh-maestro-runtime".
Method 3: npm registry
If the package is available in your configured npm registry:
dsh plugin --profile web add "[email protected]"
Then add the same mount entry and restart DSH.
Configuration
| Field | Default | Description |
|---|---|---|
guardEnabled |
true |
Enable tool guard |
contextEnabled |
true |
Enable workflow context injection |
maxContextChars |
8000 |
Context injection byte budget |
kgEnabled |
true |
Background maestro kg init / sync |
delegateMonitorEnabled |
true |
Delegate notification injection |
teamMonitorEnabled |
true |
Team heartbeat writes |
coordinatorEnabled |
true |
Coordinator bridge writes |
DSH plugin publishing conventions followed
- package name uses the
dsh-*convention type: module,mainandexportspoint to the built entry- plugin entry exports
nameandapply(Cordis plugin contract) inject: ['tools']declares the required service- shared DSH modules consumed at runtime (
dsh-agent,dsh-llm,dsh-tools) are peer dependencies, not bundled dependencies, so the host installation keeps a single version @deepseek-ai/cordis@^4.0.1and DSH host peers are aligned with0.1.0-rc.6- mount happens through profile
cordis.patch.yml; no DSH source modification - exports a Schemastery
Configschema so invalid config fails loudly at load - declares
dsh.bundlesodsh plugin addactivates the layer automatically
Development
Edit lib/index.js while DSH is running. The profile HMR plugin (root: ['.']) reloads the plugin entry after the change settles.
After changing package.json dependencies or cordis.patch.yml, restart DSH.
License
MIT
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-maestro-runtime」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:zhao-wuyan/dsh-maestro-runtime Headless(CLI)profile:
dsh plugin --profile headless add github:zhao-wuyan/dsh-maestro-runtime 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。