Introduction¶
When DSH agents handle group chats or private messages, they frequently encounter issues such as high message volume, excessive noise, and scattered information. Feeding a large volume of messages directly into the model is both token-expensive and prone to being derailed by spam, advertisements, and small talk. A common workaround is to manually review messages first and then ask the model to summarize the key points—this interrupts the workflow and easily leads to missed details.
The dsh-QQ-Reader introduced in this article is a DSH plugin that extracts meaningful information from QQ conversations through a “filter first, then summarize” pipeline. It organizes content into key points, action items, and timelines, and supports date-based historical message retrieval.
Plugin Overview¶
This is a DeepSeek Harness plugin maintained by zdddrszj985, categorized under “Memory.” It connects to a locally running SnowLuma OneBot gateway to pull QQ conversations and message history. It first applies a rule-based filter to remove noise, then invokes a model to generate structured summaries, organizing “who needs to do what” into a timeline. The plugin also provides 8 agent tools, allowing the agent to invoke these capabilities autonomously during conversations.
Prerequisites¶
The following conditions must be met before installation:
- SnowLuma is installed at
C:\SnowLuma(default path), the OneBot HTTP port is3000, and a locally running QQ process has been loaded. - In the SnowLuma account configuration,
historySync.enabledis turned on; otherwise,get_group_msg_historywill only return an empty array (a reload of the account is required for the change to take effect). - DSH version
>= 0.2.0.
Installation & Activation¶
Run the install command in DSH’s plugin manager (use an absolute path):
plugin_manager action=install_bundle target=E:\path\to\dsh-QQ-Reader
After a successful installation returns "application": "applied", refresh the page to activate it.
Core Features¶
Noise Filtering & Summarization¶
The plugin first filters noise via a rule table, then asks the model to generate a summary. The noise filtering is purely rule-based—fast and interpretable:
- Class A Hard Rules (veto): Traffic-driving ads, bargain requests, part-time task scams, clickbait, the same URL repeated within 30 minutes, game chatter (exempt when the message contains task-related keywords such as “registration / regional competition / defense / team formation / credits”).
- Class B Scoring: Greetings, pure acknowledgments, emoji-only messages, voice messages, relay messages, echoes, spam, group events, uninformative follow-up questions, outdated content; if the same user sends ≥ 3 emoji-only messages within 60 seconds, it counts as spam.
- Class D Whitelist: Admin discount,
@me/@everyone, task-related keywords, numbers + time/location, manually designated must-keep keywords (forced retention); manually designated blacklist entries (forced discard).
For each message, the plugin outputs one of three states: ✅ kept, 🙈 collapsed, or ✂️ discarded, along with the rules that were triggered.
The filtered messages are then submitted to the model, which is instructed to output structured JSON containing four fields: key points, action items, timeline, and risks, with a cap on the number of entries and a constraint that “trivial matters should not appear in action items.”
Historical Retrieval¶
Given a date range (supports formats such as 2026-11-01, 2026/11/1, November 1, today / yesterday / day before yesterday / N days ago), the plugin paginates backwards using message_id as an anchor. Messages falling within the range undergo the same filtering and summarization pipeline, and the results are merged and deduplicated. A single retrieval processes at most historyMaxMessages messages; those exceeding historyChunkSize are split into chunks and summarized separately.
Configuration¶
Settings are located under Settings → Plugins → dsh-qq-reader:
| Field | Default | Description |
|---|---|---|
enabled |
true |
Master switch for auto-scanning |
pollMinutes |
10 |
Auto-scan interval (minutes) |
maxMessages |
60 |
Maximum messages read per scan cycle |
minNewMessages |
2 |
Skip if new messages are below this threshold (bypass with force) |
modelProvider / modelName |
deepseek-account / deepseek-flash |
Model used for summarization |
baseUrl |
http://127.0.0.1:3000 |
OneBot HTTP endpoint |
snowLumaHome |
C:/SnowLuma |
Path to scan config/onebot_*.json for the access token |
token |
empty | Leave empty for auto-discovery (if explicitly set, uses the config file; no authentication) |
noiseFilter |
true |
Noise filter toggle |
noiseDropAt |
70 |
Score ≥ this value → discard |
noiseFoldAt |
40 |
Score ≥ this value → collapse (still counted, excluded from summary) |
mustKeep |
empty | Manually designated must-keep keywords (comma/space separated), forced retention |
muteUsers |
empty | Manually designated blacklist (QQ IDs), forced discard |
historyMaxMessages |
1200 |
Maximum messages fetched in a single historical retrieval |
historyChunkSize |
120 |
Chunk size for segmented summarization |
Agent Tools¶
The plugin provides 8 tools for the agent to invoke during conversations:
| Tool | Description |
|---|---|
qq_reader_status |
Query connection status, logged-in account, watchlist, last scan time, and error info |
qq_reader_conversations |
List groups and friends readable by this QQ account (name + conversation key) |
qq_reader_watch |
Add / remove a conversation from the watchlist |
qq_reader_read |
Read recent raw messages from a conversation (show=keep to view only filtered-kept messages) |
qq_reader_digest |
Retrieve the latest summary, action items, and timeline for a conversation |
qq_reader_scan |
Trigger an immediate scan cycle (force bypasses the “too few new messages” threshold) |
qq_reader_noise |
View the filter result for each message (✅ kept / 🙈 collapsed / ✂️ discarded) and triggered rules |
qq_reader_history |
Given a start and end date, paginate backwards → filter → hierarchical summarization → timeline |
Conversation keys follow the format group:123456789 / private:10001.
Use Cases & Notes¶
This plugin is suitable for developers or teams that need to extract tasks, notifications, and decision records from QQ groups or private chats—use cases such as project management, information aggregation, and tracking important announcements.
Note: The plugin runs with the permissions of the current DSH process. Review the source code and license before installation. If the SnowLuma local message database is relatively old, historical retrieval will indicate the earliest available timestamp rather than silently pretending to succeed.
Conclusion¶
dsh-QQ-Reader combines rule-based filtering, model-powered summarization, and historical retrieval to deliver key information from QQ conversations to DSH agents in a structured format. It is well-suited for scenarios requiring long-term group monitoring or retrospective review of historical notifications. For more details and the full rule table, refer to the documentation index page and the GitHub repository.