Introduction¶
DeepSeek Harness (DSH) is built on the philosophy of “everything is a plugin,” with its community ecosystem maintained by independent developers. When you need to connect a DSH agent directly to a QQ messaging stream, you face two challenges: handling the protocol layer, and bridging the host with the messages. omnichannel-bridge (formerly qq-integration / npm dsh-qq-onebot-bridge) is a plugin designed precisely for this purpose. It drives agent sessions directly from QQ messages, automatically sends agent replies back to QQ, and provides a standalone console along with recording and debugging capabilities.
Plugin Positioning¶
omnichannel-bridge is an independently bundled plugin, developed and maintained by mkiea. Its core value proposition is “one bridge, multiple platforms, any host”: it is not limited to QQ — the same integration pattern can be extended to Bilibili and other platforms in the future; the host is not limited to DSH — DSH is simply the most convenient adapter. The plugin does not implement the QQ protocol itself; instead, it integrates the OneBot v11 protocol layer, any OneBot implementation endpoint (e.g., Waylay, NapCat, LLOneBot), and DSH agent sessions, connecting all three together.
Core Capabilities¶
- OneBot v11 protocol integration: provides a reverse WebSocket server, event dispatching, action invocation, @-mention parsing, and merged forwarding, reusing upstream code and continuing to maintain it.
- Multi OneBot implementation support: as long as it speaks OneBot v11, the plugin accepts it. No binaries are bundled or distributed.
- Waylay as the default endpoint: built-in launch/stop/status-reading capabilities (
lib/waylay-launch.js+/api/waylay*+ the “Launch Waylay” button in the panel), with automatic detection of distribution layouts. - Standalone console:
http://127.0.0.1:8880/, independent of DSH; can be started in the foreground withcontrol/bin/qq-control.mjs; provides event streaming, decision chains, health checks, recording lists, runtime snapshots, host/Waylay/TTS start-stop, port release, offline replay (sandbox + dry-run), event injection, and more. - Recording and debugging: every inbound event is written to
qq-inbox.jsonl; every decision point is written toqq-trace.jsonl(including stage/ok/reason/duration/traceId); a snapshot every 2 seconds is written toqq-runtime.json(session/gates/active config/recording and injection status). - Injection and isolation: outbound messages default to dry-run mode and can be configured for real injection; written to
qq-inject.jsonl, which the console writes to and the bridge polls to read; injection failures do not affect message receiving or decision-making.
Architecture Overview¶
QQ Client ←→ OneBot Implementation (Waylay / NapCat / LLOneBot / OpenShamrock / Lagrange…)
│ Reverse WebSocket (OneBot connects to us; port 6700)
▼
omnichannel-bridge (this plugin)
│ ctx.agents.create / followup
▼
DSH Agent Session (one per group / per private-chat user)
Installation & Activation¶
For local directory installation, pnpm’s link: mechanism is used so that the profile’s node_modules/omnichannel-bridge becomes a symbolic link pointing to the plugin directory, making the repository the runtime itself — changes take effect immediately. Installation requires three steps; missing any one will cause a startup error.
1. Install Runtime Dependencies¶
cd <absolute-path-to-plugin>
npm install --omit=dev --legacy-peer-deps
--legacy-peer-deps is required: there are multiple @deepseek-ai/dsh-* version ranges in peerDependencies. npm resolves the dependency tree first and then trims peers — if the ranges don’t match, it fails with ERESOLVE directly, and --omit=peer won’t prevent this either.
2. Create a Directory Junction (so the plugin directory can see the official peers)¶
cmd /c mklink /J "<plugin-dir>\node_modules\@deepseek-ai" "%USERPROFILE%\.dsh\profiles\<profile>\node_modules\@deepseek-ai"
Fill in <profile> according to your client: use web for the CLI / Web version; use desktop for the official desktop client (DSH Desktop). The junction is mandatory; without it, you’ll get Cannot find package '@deepseek-ai/schemastery'.
3. Register the Plugin¶
dsh plugin --profile <profile> add <this-directory>
After installation, ~/.dsh/profiles/<profile>/package.json should contain "dsh": { "profile": { "bundles": ["omnichannel-bridge"] } }. Marketplace installations handle this step automatically; manual installations require you to add the bundles entry manually.
Uninstall¶
dsh plugin --profile <profile> remove omnichannel-bridge
Official Desktop (DSH Desktop) Installation¶
The desktop client uses the ~/.dsh/profiles/desktop profile, which is exclusively managed by the application — the CLI does not allow specifying this profile. The installation steps are the same as the web version, but <profile> should be replaced with desktop, and installation must be done through the desktop client’s UI (Settings → Plugins → Install, selecting a local directory or a GitHub repository URL). Configuration is likewise written to ~/.dsh/profiles/desktop/cordis.patch.yml (the config for id: omnichannel-bridge); do not write it in the repository root.
QQ Version Requirements¶
The plugin currently only supports QQ 9.9.36. Do not upgrade to 9.9.37. The 9.9.37 launcher hardcodes paths and no longer reads main from package.json, which will break injection. To verify the version:
# 1) Registry
(Get-ItemProperty "HKCU:\Software\Tencent\QQNT" -Name version).version
# 2) Version directory
Get-Content "C:\Program Files\Tencent\QQNT\versions\config.json" -Raw
Both values must match (9.9.36.53644 ↔ 9.9.36-53644). If you’re already on 9.9.37, follow the steps in the README to roll back to 9.9.36, and make sure the registry HKCU\Software\Tencent\QQNT\version is set to 9.9.36.53644.
Minimal Configuration Example¶
Configuration is written to the profile’s ~/.dsh/profiles/web/cordis.patch.yml:
- id: omnichannel-bridge
config:
cwd: 'C:\Users\you\qq_chat'
dataDir: 'C:\Users\you\qq_chat'
cwd is the agent’s working directory, where the model executes commands.
Cautions¶
- Only one instance per machine is allowed to host the QQ bridge: both the web host and the desktop client can install this plugin, but they compete for the same OneBot port (default 6700) — only one can bind successfully; the other will retry every 15 seconds. Do not try to run two instances simultaneously by changing the port; they share the same
cwdand data files, and concurrent read/write will cause data overwrites or duplicate message sends. - The plugin runs with the permissions of the current dsh process. Review the source code and license before installing.
- Do not install the plugin via
git+https://…: pnpm will pin the version to a specific commit, and local changes will be overwritten. - The plugin requires Node.js ≥ 24.9.0, and the DSH version is 0.2.2-rc.1 (constrained by
engines.node).
Use Cases¶
- Users who need a DSH agent to directly receive and reply to QQ messages.
- Scenarios requiring offline replay, structured traces, and snapshot-based debugging.
- Scenarios requiring a console to manage multiple hosts and endpoints with dry-run injection support.
Ecosystem Context¶
The DSH philosophy is “everything is a plugin.” The community catalog is an independent site with no official affiliation to DeepSeek or High-Flyer. This plugin is maintained by a community developer; source code and documentation are available on GitHub.
References¶
- Plugin catalog: https://www.skillhub.cn/plugins/mkiea/omnichannel-bridge
- GitHub: https://github.com/mkiea/omnichannel-bridge