Introduction¶
DeepSeek Harness (DSH) breaks models, tools, and channels into plug-and-play modules. To run long-form scenarios in instant messaging while ensuring dice rolls and status are not tampered with by the model’s “loose talk,” common approaches are building a bot or stacking a rule engine on top of a general IM plugin. dsh-dungeon-master is a secondary development based on tencent-connect/dsh-qqbot: it retains the same set of QQ Bot IM channel capabilities, and additionally creates a dnd_* toolchain for the D&D 5e Dungeon Master process. The model is mainly responsible for narrative, while numerical values and campaign status are managed by tools. Maintained by SuperChipper, the repository is available at GitHub, and the community directory page is skillhub.cn/plugins/SuperChipper/dsh-dungeon-master. Categorized as a client-side plugin; as of directory information, the GitHub repository has about 3 stars.
Overview¶
The plugin’s full name is dsh-dungeon-master (npm package name is the same, package.json current version 0.6.0, MIT license, requires Node >= 20.3.0). One-sentence positioning: A QQ Bot channel plugin for DeepSeek Harness that provides D&D 5e AI Dungeon Master capabilities within groups. Installation, QR code binding, and basic QQ bot configuration follow the upstream dsh-qqbot documentation; gameplay and new capabilities follow this repository’s README.
Core Features¶
Campaign and Ruling Principles¶
- Tool-based Rulings: Dice rolls, checks, damage, HP, status, position, and resources can only be modified via
dnd_*tools; the model cannot fill in numbers on its own. - Confidentiality Isolation: Results of
dnd_*tools are not displayed in the group; monster AC, HP, DC, etc., are not routinely leaked to players; the DM must check the records using tools likednd_character show. - Identity and Turns: PCs are bound to the player’s OpenID; only actions declared by the person themselves take effect. Combat is strictly turn-based; only the character of the current turn can actively end their turn.
- State Persistence: The complete campaign status is in JSON; a simplified campaign status is injected into the prompt each turn. Supports snapshots and rolling back by step number or die roll number (
dnd_undo).
Player Commands (Excerpt)¶
Commands in the group use the /dnd prefix, for example:
| Command | Description |
|---|---|
/dnd start [module_id] |
Start a campaign; includes a sign-in button and auto-starts when everyone is present. |
/dnd new [module_id] [blank] |
Save the old campaign and start a new one. |
/dnd status |
Campaign status from the player’s perspective. |
/dnd map [battle \| explore] |
Battle position map or exploration fog map. |
/dnd end [summary] |
Save the handover and pause. |
/dnd search <term> |
Search Grey Dragon D&D wiki. |
/dnd help |
Instructions on gameplay. |
For the full list, see the “Player Commands” section in the repository README.
DM Tools and Maps¶
The README lists dice rolling (dnd_roll, dnd_check, dnd_apply), characters and resources (dnd_character, dnd_resource, dnd_rest), combat (dnd_initiative, dnd_position), exploration (dnd_move, dnd_map), and story/saving (dnd_story, dnd_chronicle, dnd_end, dnd_undo, etc.). One grid is 5 feet, supports pathfinding and opportunity pauses; with the optional dependency sharp, image maps can be sent in the group; otherwise, it falls back to character maps.
Modules and Data Directories¶
- Built-in module “The Bells of the Monastery” (7-room small dungeon, for levels 1-3).
- Custom modules: JSON files go in
<dnd.root>/adventures/(large modules can be split by scene), automatically re-read after changes. - One campaign file per group:
<dnd.root>/campaigns/<session>.json, historical snapshots incampaigns/history/(last 40 steps).
Independent Combat Agent (Optional)¶
In the DSH Web settings page under “Campaign -> Independent Combat Agent”, combat can be handed over to a sub-model session; default is disabled. Example configuration:
dnd:
combatAgent:
enabled: true
provider: opencode-go
model: deepseek-v4.1-flash
reasoningEffort: high
contextChars: 8000
The sub-agent only exposes combat-related dnd_* tools; usage and logs are in the campaign directory combat-runs/, do not send to players. /dnd combat views the model and usage statistics of the latest combat agent.
Other Capabilities Relative to Upstream¶
Besides campaign running, the README’s “Other Features” section briefly explains: group chat continuation and compression, /persona personas, note memory, emojis and media, some read-only and browser tools (Playwright disabled by default), scheduled task migration, optional modelFailover, etc.; configuration items are in the QQ bot settings under the “Plugins” page in DSH Web, accompanied by explanations.
Installation and Enablement¶
The upstream README handles local execution, QR code binding, and basics; this plugin is installed, started/stopped, and configured in the DSH Web “Plugins” page (the README explicitly states “Install in the DSH Web ‘Plugins’ page”). If there is no separate CLI installation string appearing in the captured information, do not manually concatenate the dsh plugin add command.
Default values for campaign-related configurations are as follows (full table in README):
| Configuration | Default | Description |
|---|---|---|
dnd.enabled |
true |
Campaign toggle |
dnd.root |
cwd/dnd |
Campaign and module directory |
dnd.turnButtons |
true |
Player turn buttons |
dnd.interjections |
true |
Random interjections/complaints during campaign start |
The versions declared in package.json as compatible with DSH releases include 0.1.0-rc.8, 0.2.0-rc.2, 0.2.1-rc.5, etc. (the list in the repository may be longer, refer to the repository).
After enabling the Independent Combat Agent or reorganizing the tool profile, the README prompts that you need to save settings once more after building for the host to load the new code.
Typical Usage: Start a Campaign in 3 Steps¶
- Complete installation according to the upstream and this plugin’s instructions, and add the bot to a QQ group.
- Send
/dnd startin the group (can include a module id). The message has a sign-in button and auto-starts when everyone is present; you can also manually click “Start”. - @bot to declare this round’s actions in natural language, e.g., the README example: “Kaelthas uses the greatsword to chop goblin 3” or “Enzo sneaks to the door to listen for sounds”.
No need to switch presets or open a new main session specifically for the campaign: after starting, a simplified campaign status and DM rules are injected each turn; after /dnd end, normal group chat is restored. It is recommended to write a handover summary when stopping, so the next start can continue the progress of the same module.
Applicable Scenarios and Notes¶
Suitable for: Groups already using DSH + QQ Bot, who want to run D&D 5e in groups using a tool-enforced method, and are willing to accept permissions from the QQ Open Platform (e.g., message buttons, which automatically fall back to plain text if the turn button fails).
Notes:
- The plugin runs under the current DSH process permissions. Before installing and enabling, read the source code and MIT license, and understand the upstream QQ bot’s data persistence and channel configuration.
- Translated text from commercial modules is for local use only; the README requires that it not be committed to the repository.
- Directories like
combat-runs/may contain DM private data; do not distribute them externally. - The community directory skillhub.cn is an independent ecosystem site with no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
dsh-dungeon-master stacks the QQ group chat bot with the D&D 5e Dungeon Master state machine: narrative is left to the model, while dice and campaign data are handled by dnd_* tools. For further details, see GitHub README and SkillHub Directory Page.