Introduction¶
When running agents with DSH, message entry points are often still desktop clients, scripts, or self-hosted Web applications. If daily communication is concentrated in QQ private chats, you have to switch back and forth between the “QQ window” and the “DSH session,” or write a layer of OneBot forwarding yourself. Below is dsh-fish-message (called “Fish Message” / “鱼讯” in settings) provided by maintainer INFIcer: it connects QQ private chats with specific sessions inside DSH, supports text, images, voice, and ordinary files, and supports offline resending and pending retries when DSH or QQ is temporarily unavailable.
What is it¶
dsh-fish-message is a QQ private chat channel plugin for DSH (current version in package.json is 0.2.3, MIT license). It does not replace the QQ login service but interfaces with locally logged-in OneBot 11 implementations like NapCat, synchronizing messages bidirectionally with DSH sessions; optional dependencies include other DSH plugins like “Local AI” and “Memory” to extend text-to-speech, image recognition, and memory comparison. If not installed, the core sending and receiving still works.
- Directory page: https://www.skillhub.cn/plugins/INFIcer/dsh-fish-message
- Source code: https://github.com/INFIcer/dsh-fish-message
Core Features¶
Private Chat Bridging and Media Types¶
- Only interoperates between QQ private chats and DSH sessions (group chats are not supported yet, see README “Known Issues”).
- Supports sending and receiving text, images, voice files, and ordinary files; can send emojis by name or tag, and manage the emoji library in settings.
- When DSH is not running or QQ is temporarily offline: inbound messages are resent in chronological order after recovery; inbound content that cannot be sent temporarily is first written to disk and retried in order after recovery.
Reply Tags and Multi-segment Sending¶
By default, only the [QQ]…[/QQ] blocks in the model’s reply are sent to QQ, with the rest remaining in DSH; this limit can be disabled in “Message Processing”. Multiple [QQ] blocks correspond to multiple QQ messages, and text between blocks will not be concatenated into adjacent blocks.
Incoming Image Gallery and Emoji Library¶
Inbound images are registered by content fingerprint (sha256); on the first appearance, usually only the original image is registered without recognition, and description is cached and recognized again according to settings upon subsequent appearances; after that, the description is used directly for the same image. The emoji library and incoming image gallery directories are separated. The image gallery will automatically evict the longest-unseen images when the number limit or storage limit is reached, while the emoji library, as a collection, will not be automatically deleted. Agents can use fish_image_get and fish_image_note to retrieve the original image or modify the description.
Memory Extension (Optional)¶
After installing and enabling the “Memory” plugin, you can enable “Memory Extension” in settings to compare inbound images, voice, memory gallery, and voiceprint libraries, attaching the results to the message body; it skips on timeout or unavailability, not affecting sending and receiving.
Edit Window and Sending Rhythm¶
On the inbound side, the “Edit Window” can be used to merge multiple messages within a short time and then proceed with the session, and cooperate with WebSocket to handle recalls; on the outbound side, sending intervals and appending intervals based on character count can be used to simulate typing one by one. Pending messages are also written to disk before waiting to send, reducing the risk of loss due to DSH restarts.
Installation and Enablement¶
Prerequisites¶
- DSH is installed and working normally on the host machine.
- A QQ login service (e.g., NapCat) has been installed and the desired QQ account has been logged in.
- Node.js 20 or higher (as
engines.nodeinpackage.jsonis>=20).
Installing the Plugin¶
Execute in the plugin source code directory (commands taken from the official README):
pnpm install
dsh plugin --profile desktop add .
Then confirm “Fish Message” is enabled in the DSH plugin configuration. If you have used other QQ bridge plugins before, please disable them first to avoid the same message being processed twice.
After installation or update, it will load on the next DSH startup; after starting, open “Settings → Fish Message”. If you are currently in a DSH session, reloading the plugin by DSH will end the session, so it is advisable to operate in a separate terminal.
Typical Usage¶
Connecting QQ and Binding Sessions¶
Fill in the QQ login service HTTP address in “Connection Settings”; fill in the access token when authentication is enabled. When the connection is normal, “Online” is displayed at the top of the page. To identify friend recalls, enable the WebSocket forward service on the login service side, check “Priority for Real-time Reception”, and fill in “Real-time Reception Address” (can be derived from the HTTP address if left blank).
In “Private Chat Binding”, select a DSH session for each QQ number. The “Call QQ” capsule on the left of the model selector in the session interface allows switching the binding channel within the current session; one channel can only bind one session.
Sending Text and Media¶
Send only text within tags:
[QQ]这段会发送到 QQ。[/QQ]
[QQ]第一段(单独一条消息)[/QQ]
[QQ]第二段(也是单独一条消息)[/QQ]
Examples of images, voice, files, and emojis:
[图片:C:\图片\示例.png]
[语音]晚安,主人[/语音]
[语音:C:\音频\示例.wav]
[文件:D:\文档\示例.pdf]
[表情:打哈欠]
[表情:#睡觉]
When the Local AI plugin is available, [语音]文字[/语音] will synthesize a voice note; a prompt will appear if unavailable, but text, images, files, and emojis can still be sent and received according to capabilities.
Applicability and Notes¶
Who is it for: Developers or heavy users already using the DSH desktop profile where QQ private chat is the main communication entry; the host can run OneBot services like NapCat and is willing to maintain binding and gallery strategies in settings.
Permissions and Security: The plugin runs with the current DSH process and possesses the local resources and network capabilities that process can access. Before installing, you should review the GitHub repository source code and the MIT license yourself to confirm that configurations like QQ tokens and image cache paths fit your environment.
Limitations (listed in README): Only private chats; file sending depends on the QQ login service version and permissions; the pending queue is strictly sequential, and a long-term failure of the previous message will block the subsequent ones; recall handling cannot be done like WebSocket when only using HTTP polling; text-to-speech, partial image recognition, and memory extension depend on optional plugins.
Conclusion¶
Fish Message turns QQ private chats into a channel within DSH that can be bound, cached, and resent offline, and constrains outbound replies within [QQ] tags and rhythm control, fitting scenarios where you want to use DSH while keeping the conversation hanging on QQ private chats. For more configuration options, gallery management, and data structure descriptions, see the repository README and docs/.
- SkillHub Directory: https://www.skillhub.cn/plugins/INFIcer/dsh-fish-message
- GitHub: https://github.com/INFIcer/dsh-fish-message