Preface¶
In DeepSeek Harness (DSH), there are two common routes for building an assistant that “lives in the group”: using a bot identity via the QQ official Bot API, or using a personal account via an OneBot protocol implementation. The former offers a clear compliance path but does not support personal accounts and its group capabilities are constrained by platform interfaces. The latter can cover group chat operations, long-term memory, approval workflows, and backend maintenance, but requires you to shoulder the stability of the protocol implementation and account risk control yourself.
Below is an introduction to the community plugin dsh-channel-qq (Maintainer: Aegink, Category: Client). It integrates into dsh as a cordis Service and communicates with the protocol implementation via OneBot v11 by default (the README states that the default protocol implementation is SnowLuma, though NapCat remains a fallback option). It brings group chat and private chat messages into the same agent pipeline, and includes a tool surface, long-term memory, proactive behavior, and an admin dashboard.
What is this¶
dsh-channel-qq is a QQ channel plugin for DSH: it uses OneBot v11 for message sending and receiving, and provides tool invocation, memory retrieval, event-driven proactive behavior, and a local admin dashboard within the host. The project is MIT licensed and is unofficial, with no affiliation to Tencent/QQ. The protocol implementation is an unofficial implementation; account risk control, disconnections, and requirements for re-verification are marked in the README as normal occurrences.
Division of labor compared to other QQ integrations in the ecosystem (excerpted from the README comparison table):
| Solution | Integration | Suitable for |
|---|---|---|
| Official dsh-qqbot | QQ Bot API v2 | Official bot identity, QR code login, streaming replies; does not support personal accounts |
| dsh-im | Multi-IM channels | Connecting multiple platforms with one plugin; broad but shallow |
| dsh-channel-qq | OneBot v11 (SnowLuma) | Personal QQ account + full group capabilities: Long-term memory, knowledge base, proactive behavior, approvals, skill packs, group operations |
For selection: use the official plugin for official identity and streaming; use dsh-im to connect multiple platforms at once; use this project for long-term group operations with a personal account.
Core Features¶
The following capabilities are derived from the repository README, categorized by module.
Messages & Group Chat Strategies¶
- Group chat / private chat, images, voice, files, quoted replies, CQ-codes (poke); supports automatic sentence splitting for sending.
- Group Chat Admission: Before entering the agent, it determines “whether to speak”; messages without @ mentions do not enter the queue, reducing context and model calls.
- Optional interaction prompts (off by default): Display “typing…” in private chat; react with emojis to trigger messages in groups.
- Optional merged forwarding (off by default): Long lists / logs / summaries can be sent as chat history cards, falling back to sending item-by-item on failure.
Tool Surface¶
- Approximately 90 fine-grained tools; consolidated into 17 action groups under
tools.v2(e.g.,qq_message,qq_lookup).
Long-term Memory¶
- Process: Diary → Structured records → Retrieval; nine nightly tasks (chunking / extraction / reflection / forgetting / summarization / vector rebuilding).
- Automatically injects 3–8 pieces of evidence (≤600 words) per turn;
qq_memory_searchallows deep recall of original text blocks (with file line numbers). - Optional vector retrieval: Local embed service (
deploy/embed-server/), falls back to keywords if not enabled.
Proactive Behavior & Skills¶
- Proactive Behavior: Event-book driven patrol, morning reports, proactive private messages; schedules are data-configured rather than hardcoded.
- Skills: Agent Skills directory packages on disk (
SKILL.md), with visibility scopes defined by room (all / private chat only / specific groups / specific rooms / admins only); the model discovers them automatically, or they can be triggered via/name; the dashboard supports add/delete/modify and importing from URL or paste (initially landing in a pending review area).
Admin Dashboard & Security¶
- Admin Dashboard: 27 pages, hot-reloading configuration, auditing, session reconstruction, model provider management. Listens only on
127.0.0.1by default; the README requires access via SSH tunnel; password is read from environment variables (see SECURITY.md). - Send-side Probe:
/api/healthzdetermines if messages can be sent via aget_statusround-trip without generating a message; only accepts local requests. - Music Library Accounts: Scan QR codes on the dashboard “Music” page to log into NetEase Cloud / Kugou; can self-check login status and search songs.
- Approval Gateway: High-risk commands are graded L0–L3 + one-time tokens; admins reply “Approve” via QQ private chat to execute (
Pending / Request / Approve / Reject, bypassing the model).
Access Gating (Enabled by Default)¶
Stranger private chats and messages from unapproved groups only reply with “Waiting for master’s approval” by default and do not enter the agent; they are released after approval on the dashboard “Security” page. Can also switch to whitelist or fully open mode (open is not recommended for public networks).
Group policy access.groupPolicy supports member (allow if already in group, recommended), pairing (default, unapproved groups need to apply), allowlist. Admins can use commands like 待批访问 (pending access), 放行 <QQ> (allow 放行群 <群号> (allow group 拒绝访问 (deny access) in private chat (the README has a complete table).
Other Optional Capabilities (Mostly Off by Default)¶
Quote book (chatlog), persona profiles (qq_person_note), channel health alerts, turn metrics, etc.; when switches are off, the README requires behavior to be byte-for-byte identical to the old version.
Installation & Enablement¶
Environment requirements: Node.js 22+, a dsh host, an OneBot v11 protocol implementation.
Build and verify in the plugin source directory:
npm install
npm run build # Generates dashboard frontend + compiles TypeScript
npm run verify # Types + tests + layering + size checks; proceed only if all green
Mounting method: Edit host config <dshHome>/profiles/<profile>/cordis.patch.yml, add the service item (replace field names and example values according to your protocol implementation and workspace):
- id: channel-qq
config:
connection: { mode: forward, url: ws://127.0.0.1:3001 }
accessToken: <OneBot access token>
selfId: <Bot QQ number>
admins: [<Admin QQ numbers>]
primaryGroup: <Primary group number>
workspacePath: /path/to/agent-workspace
For deployment, release, rollback, and troubleshooting, see the repository docs/deployment.md. For three-layer config overrides and environment variables, see docs/configuration.md.
The captured materials did not provide a one-line install command like dsh plugin add; the build + cordis.patch.yml mounting in the README is the standard.
Typical Usage & Documentation Entries¶
- Protocol Implementation: Start OneBot v11 according to SnowLuma (or rollback NapCat) documentation, ensuring the WebSocket address and
accessTokenmatch theconnectionabove. - First Private Chat / New Group: Under the default
pairingmode, release access via the dashboard “Security” page or admin private chat commands. - In-Group Conversation: Pay attention to
requireMentionand per-group overrides; messages without @ will not enter the agent queue. - Memory & Vectors: For semantic retrieval, deploy
deploy/embed-server/and configure according to docs/memory.md. - Ops Self-Check: Request
/api/healthzlocally to confirm the sending chain; configure Music, Approval, and Proactive Behavior on the respective dashboard pages.
For architecture and message journey, see docs/architecture.md.
Use Cases & Notes¶
Suitable for: Those who already have a DSH host and want to run a full agent (tools, memory, proactive messages, approvals, skill packs, group operations) using a personal QQ account in groups/private chats, and are willing to maintain an OneBot protocol implementation.
Not suitable for: Those who must use QQ official Bot identity or official streaming API—should choose dsh-qqbot; those who only want a thin multi-platform integration—should choose dsh-im.
Security & Compliance:
- The plugin runs with the current dsh process permissions; please read the source code and the MIT license before installation, and comply with QQ user agreements and local laws.
- The admin dashboard is a remote control plane; do not expose it on the public network; do not arbitrarily set access gating to
open. - Account risks brought by unofficial protocol implementations are borne by the deployer.
Conclusion¶
dsh-channel-qq connects QQ messages on OneBot v11 to DSH, and stacks tool surfaces, long-term memory, proactive behavior, approvals, and a 27-page admin dashboard within a single plugin. Its positioning is “Personal Account + Group Operations,” not an official Bot or a thin multi-platform integration.
- Community Directory Page: https://www.skillhub.cn/plugins/Aegink/dsh-channel-qq
- Source Code & README: https://github.com/Aegink/dsh-channel-qq
The DSH ecosystem emphasizes “Everything is a plugin”; community directories like SkillHub are independent sites with no official affiliation to DeepSeek / High-Flyer. The facts in this article are derived from the aforementioned repository README and captured materials, with the version based on the repository’s current package.json (e.g., 0.1.0).