Governance Multi-Agent Harness
September 2, 2026 · View on GitHub
An optional DeepSeek Harness Plugin and Profile Bundle for governed multi-agent development.
定位:透过 CLI 控制不同的 Coding Agent(Codex、Claude Code 等),把其他 Coding Agent 的功能带入本系统,以 CMS 规则协助管理;Agent 之间的上下文信息通过文件传递。章程见 AGENTS.md。
This repository publishes the Governance Plugin independently for discovery and reuse. It coordinates the existing Codex and Claude Code Providers through ctx.subagents, and uses @deepseek-ai/dsh-subagent-dsh-sdk when a DeepSeek Harness child runtime is needed.
Features
- deterministic task routing with out-of-band human approval (the model cannot approve its own routes);
- Codex, Claude Code, and DeepSeek Harness registry and diagnostics;
- delegation, reporting, and independent acceptance tools;
- governance Session Events for replayable audit facts;
- routing Skill and file-oriented handoff guidance;
- optional Bundle integration without changing Base Bundle defaults.
Tool and skill reference: Docs/TOOLS.md — 功能、使用方法、目标 per tool, plus the standard route → approve → delegate → report → accept lifecycle.
Use with DeepSeek Harness
The canonical workspace integration is maintained in DeepSeek Harness. Install the published Governance Bundle in a profile, then install the Codex and Claude Code Provider Bundles when those providers are required.
The DeepSeek child runtime is configured through the existing subagent-dsh-sdk Provider. Configure its command and profile for the target deployment; the example in packages/bundle/agent-governance/cordis.patch.yml is development-oriented.
Workspace integration (junction linking)
This repository is the single source of truth for the plugin. A harness workspace consumes it through NTFS directory junctions, so edits here are immediately live in the workspace:
# inside the harness workspace root
New-Item -ItemType Junction -Path packages/skill/agent-governance -Value <this-repo>/packages/skill/agent-governance
New-Item -ItemType Junction -Path packages/bundle/agent-governance -Value <this-repo>/packages/bundle/agent-governance
Keep the junction paths out of the workspace's git index (.git/info/exclude) because git tracks the content, not the link. Package tests run inside the harness workspace's linked-packages vitest project, which keeps the junction file ids inside the workspace root so tsconfig discovery and the @deepseek-ai/dsh-* paths facade resolve normally:
pnpm vitest run --project linked-packages
A governance profile mounts the Base Bundle plus the Governance Bundle (~/.dsh/profiles/governance/package.json); the Windows launcher lists it once that directory exists.
Layout
packages/skill/agent-governance: Governance Plugin, Skill assets, runtime, tools, and tests.packages/bundle/agent-governance: optional Profile Bundle and patch layer.
This is a source distribution of the DSH packages. Build and publish it from the DeepSeek Harness workspace so workspace dependencies and generated artifacts remain aligned.
Releasing
Bump both package versions together (packages/skill/agent-governance and packages/bundle/agent-governance) and record the change in CHANGELOG.md. Build inside a harness workspace so the workspace toolchain emits each package's lib/ artifacts and resolves the workspace:^ specifiers, then run npm publish from each built package directory. Published consumers resolve the harness dependencies from npm; in-tree verification uses the junction setup described above.
License
MIT