dsh-quorum: A Discipline Layer Enforced by the DeepSeek Harness Mechanism

Preface

Agent Teams in DeepSeek Harness (DSH) often encounter four typical problems during collaboration: loss of permission control, blurred boundaries in discussions, costs visible only in hindsight, and reports lacking evidence. Existing solutions (such as firstmate) can only “politely request” the model to observe discipline because the terminal Harness lacks other hooks. dsh-quorum enforces these four disciplines at the mechanism level. A read-only reviewer does not “choose” not to edit files; it is incapable of editing them.

Essence

This is a plugin package, not a runtime. DSH remains the owner of sessions, model requests, tools, agent loops, rosters, inboxes, task boards, and the Web UI. This plugin package merely adds policies at the top level and reads the persistent facts already recorded by DSH.

Installation and Prerequisites

Before installation, ensure that the DSH version is within the range >=0.2.0-rc.2 <0.3.0. Since this plugin depends on DSH’s Agent Teams service, three packages must be installed in the following order: Web App, Agent Teams Profile, and finally dsh-quorum.

dsh plugin --profile <name> add -w @deepseek-ai/dsh-web-app@0.2.0-rc.2
dsh plugin --profile <name> add -w @deepseek-ai/dsh-experimental-agent-team-profile@0.2.0-rc.2
dsh plugin --profile <name> add -w dsh-quorum@0.3.3

Version Notes

  • 0.3.3: The current release version; it is also the first version released via CI with signed attestations.
  • 0.3.2: Never released to npm (release failed). Users who installed this version have the same code, so no migration is required.
  • 0.3.1: Published from a maintainer’s machine; does not include signed attestations.
  • 0.0.0-stage: A placeholder in the npm release process. If you see this version in npm view, it indicates a release window is active, and you should retry later.

Installation Speed

The first installation command is slow, primarily because @deepseek-ai/dsh-web-app needs to pull approximately 300 packages. Tests show that installing dsh-quorum in a cold configuration takes about 24.5 seconds, while upgrading from 0.3.1 to 0.3.3 takes approximately 36 seconds.

Usage and Configuration

  1. Version Locking: If you care about the actual code being executed, you must lock the version. The upstream recommends locking to a specific Git revision, as subsequent pushes to the default branch will change the code from the time of installation.
  2. Workspace Flag: The -w flag must be passed because the profile is a pnpm workspace; omitting this flag will result in an error.
  3. Dependency Check: The Agent Teams package must be installed first. Otherwise, the plugin will fail silently, outputting only a warning.
# Lock version installation
dsh plugin --profile <name> add -w 'github:141w/dsh-quorum#v0.3.3'

Configuration Overriding

Plugin entries originate from the plugin package layer, while the user layer overrides them via cordis.patch.yml. The user layer does not support manually creating entirely new plugin entries; it only supports targeted id-based overriding of existing entries.

- id: quorum
  name: dsh-quorum
  config: { ... }

Important Notes

  1. Upgrade Risk: Upgrading from 0.1.0 to 0.3.1 may corrupt sessions. This is because quorum_wait messages injected in these versions lack id and role, causing the session to become unopenable.
  2. Silent Failure: If the Agent Teams package is missing, the plugin will not crash; it will simply output a warning and remain in a pending activation state.
  3. License: This plugin is licensed under the MIT License, allowing it to run within the permission scope of the DSH process.

Conclusion

dsh-quorum enforces discipline through mechanisms, resolving the core collaboration pain points in Agent Teams development. For full documentation or source code, please visit: GitHub or the Community Directory.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye