Preface¶
The philosophy of DeepSeek Harness (DSH) is “everything is a plugin.” Developers can attach toolchains to the host to extend interaction and data-processing capabilities. A common pain point in social scenarios is this: reply threads are scattered across different floors in a comment section, and you have to jump between multiple messages to reconstruct the context. When you want AI help drafting a reply, you often don’t even know the other person’s tone or what the previous segment was about. For this scenario, you can mount a plugin that aggregates replies by person and floor into conversations, identifies the counterpart’s attitude, and generates candidate replies.
What Is This¶
dsh-bili-banghui is a DSH plugin that aggregates “replies to me” messages in Bilibili comment sections by person and floor, and displays the context in conversation order: main post → counterpart → you within each thread. It first uses AI to identify the counterpart’s attitude (agreeing / friendly / neutral / nitpicking / hostile / unusual), then generates three candidate replies based on that attitude. You can edit any candidate, confirm once more before sending, and the send action is logged.
Core Features¶
- Aggregates replies by person and floor into conversations. The latest reply appears first. Filter by time group (Today / Yesterday / Earlier) or view only Today, Last 7 Days, or All.
- Within a conversation, the order is main post → counterpart → you. Replies you’ve already made on-site are also included. Third-party interjections are auto-collapsed.
- Displays the current video’s BV number and title. The same video is not re-fetched.
- AI-assisted reply: first states the counterpart’s attitude, then provides three candidates (Primary / Variant / Closer). For unusual posts, it offers three angles: sarcasm / rhetorical question / snark.
- Double confirmation before sending. No duplicate sends within 30 seconds for the same item, or 5 seconds globally. Failed sends can be retried.
- Polling supported (interval selectable from 10 minutes to 8 hours, off by default). A notification appears in the bottom-right when new replies arrive; clicking it jumps to the corresponding person.
- Built-in Bilibili common emotes. Clicking an icon inserts codes like
[doge], which render as emote images in the body. - List status: Unreplied / Replied / Ignored, each with its own filter (Replied = sent via the plugin, or you directly replied to that comment).
- Click “Ignore” for conversations you don’t want to respond to — they move to a separate “Ignored” section. Click “Delete” on a row to remove a conversation from the list (Bilibili comments are untouched; if the other person replies again, it reappears).
- “Clear List” in the top-right of the list hides all conversations at once.
- The avatar menu lets you manage the persona profile, API Key (model and endpoint address changeable), auto-cleanup of old conversations (30–180 days without new replies → hidden), and re-login via QR code.
- When blocked, a failed send triggers a confirmation: mark as “Ignored” only, or add to Bilibili’s blacklist and delete the conversation.
- The persona profile supports
## Subheadingsections (sections whose heading contains “Maintenance,” “Source,” or “Privacy” are skipped). Maximum 6,500 characters; overflow is truncated from the tail — put important content near the top. - The persona profile can be updated by summarizing new language samples from replies (only new samples since the last summary; already-summarized content is not reprocessed).
- Export the persona as
persona.mdfor transferring to another machine or backing up. - All data is stored locally in the
data\directory (credential.json, persona.md, reply-log.md, samples.jsonl, apikey.txt, muted.json). Nothing goes into git, nothing is packaged, and no data is uploaded. - Model and endpoint are changeable. Priority: settings in the avatar menu (stored in
data\settings.json), then the config incordis.patch.yml. - MCP is optional: listing, conversations, and sending all connect directly to Bilibili APIs without MCP. You only need to mount an MCP server if you want to use
bili_*tools within a conversation.
Installation & Activation¶
Install from GitHub:
dsh plugin add github:qisisiqi/dsh-bili-banghui
After installation, the plugin auto-mounts when DSH starts. Once you open a Bilibili page, the avatar menu in the top-right will show options such as “Log in to Bilibili,” “Persona Profile,” and “API Key.”
Typical Usage¶
1. Login & Setup¶
Click the avatar in the top-right of the DSH panel:
- Click “Log in to Bilibili” and scan the QR code to authenticate. Credentials are stored locally; re-scan when they expire.
- Click “API Key” and paste your model key (starts with
sk-). After saving, AI-assisted reply becomes available. - Click “Persona Profile” and fill in your speaking style, stance, and go-to phrases. You can insert a template and then edit.
It’s recommended to use ## Subheadings in the persona profile. Sections with headings containing “Maintenance,” “Source,” or “Privacy” will be skipped. Maximum 6,500 characters are read.
2. View Conversations¶
The left panel shows the conversation list sorted by most recent reply. Click a person to see the conversation on the right in the order main post → counterpart → you; your on-site replies are also included. The top bar displays the current video’s BV number and title.
3. AI-Assisted Reply¶
Click “AI Assist” — it first shows the counterpart’s attitude (agreeing / friendly / neutral / nitpicking / hostile / unusual), then provides three candidates:
- A Primary · B Variant · C Closer
- For unusual posts, the three candidates are: sarcasm / rhetorical question / snark
Each candidate can be “Regenerated” or made “Longer.”
4. Edit & Send¶
Click a candidate to load it into the input box. Edit freely — the box auto-expands with content. Click “Send” to trigger a double-confirmation prompt; the message is dispatched only after you confirm. If the send fails, the text remains in the box and you can click “Retry.”
5. Manage & Clean Up¶
- Click “Ignore” for conversations you don’t want to respond to — they move to a separate “Ignored” section.
- Click “Delete” on a row to remove a conversation from the list (Bilibili comments are untouched).
- “Clear List” in the top-right hides all conversations at once.
- Set “Auto-cleanup old conversations” in the avatar menu (30–180 days without new replies → hidden).
- When blocked, a failed send will ask whether to mark as “Ignored” or add to Bilibili’s blacklist.
Use Cases & Notes¶
Best suited for users who frequently reply in Bilibili comment sections and want AI assistance to draft responses while maintaining a consistent persona. The plugin runs with the current DSH process’s permissions. Review the source code and license before installing.
In Short¶
This plugin provides a complete pipeline within DSH for aggregating conversations by person and floor, identifying attitude, and assisting with reply drafting. All data and keys are stored locally only. Documentation and source code are available at:
- Plugin directory: https://www.skillhub.cn/plugins/qisisiqi/dsh-bili-banghui
- GitHub repository: https://github.com/qisisiqi/dsh-bili-banghui