Introduction¶
The core philosophy of DeepSeek Harness (DSH) is “everything is a plugin.” When building complex agent collaboration workflows, the interactions among the user, the main agent, and external AI often lack a standardized protocol, making state tracking difficult and workflow solidification difficult. The dsh-web-relay plugin aims to resolve this collaboration gap by solidifying tripartite interactions into executable protocols.
Plugin Positioning¶
- Name:
victormshan/dsh-web-relay - Maintainer: victormshan
- Core value: Solidify collaboration among the “user / main agent / external AI” into executable protocols, and integrate the Claude Code hybrid review chain and non-intervention continuation.
Core Features¶
This plugin implements the following core capabilities:
- Tripartite collaboration protocol v2.0: Defines the complete workflow from user direction setting, external AI planning (including machine-readable steps), main agent execution, five-level review, to closure and release.
- Step List state machine: Manages
pending/executing/review/approved/rejectedstates, and supports DAG dependency gating, atomic rollback, and restructuring. - Five-level review chain: Provides multi-level review channels from
externaltomanual, with full-process recording ofreviewedBy. - Hybrid architecture: Dispatches tasks to Claude Code via
D:\cc-tasks(Linux:~/cc-tasks), and automatically falls back to the tripartite chain on failure. - Alternatives adjudication: Supports scoring and selecting among multiple options, and records
step.decisionand trajectories. - Non-intervention continuation: Uses
sessionIdinjection and heartbeat-time driving (15min), combined with a watchdog to achieve self-healing supervision. - Capability persistence: Provides cross-session searchable capability systems such as
lessons,registry, andskills.
Installation and Activation¶
This package is not published to npm. Installation must use a Git source.
# 安装插件
dsh plugin --profile web add git+https://github.com/victormshan/dsh-web-relay.git
After installation, please restart the DSH Web service to load the plugin.
Self-Check and Validation¶
After installation, it is recommended to run a self-check to confirm that the environment is configured correctly.
- Run the self-test script:
node <profile>/node_modules/dsh-apiproxy-shim/test/selftest.mjs
- Check the plugin status:
curl.exe -s "http://127.0.0.1:3080/dsh-web-relay/status?token=<TOKEN>"
Pay attention to the `apiProxyAvailable` field in the response.
Notes¶
- Installation means execution: Installing a third-party plugin means running third-party code. Before installation, be sure to review the source code and license.
- Safety guardrails:
review:falsedoes not disable safety guardrails. The main agent’s dangerous command interception and out-of-bounds file policy are the highest-priority hard constraints at runtime. - apiProxy hard injection: The
apiProxyservice is a hard-injection dependency. - Compatibility limitation: Versions 4.9.2 and earlier are incompatible with 0.1.5+ on the new line. The new line has removed the
apiProxyservice. If the bundledshimis not installed, the plugin will remainpendingand cause the host startup assertion to fail.
Summary¶
dsh-web-relay solves the standardization problem of tripartite collaboration in the DSH ecosystem through protocolization and state-machine mechanisms. It provides full-chain support from planning and execution to review, making it suitable for scenarios that require strict process control and audit capabilities. Please refer to its GitHub repository for related documentation and source code.