dsh-diceframe
DSH AI tabletop / GM plugin for DeepSeek Harness: dice rolls, check resolution, world books, character cards, and DiceFrame content-pack import. Play solo in DSH, play with friends in DiceFrame.
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:diceframe/dsh-diceframe说明文档
阅读完整 README ↗dsh-diceframe
DSH AI 跑团 / GM 插件:给 DeepSeek Harness(DSH)加上掷骰、检定判定、世界书与角色卡——让 agent 主持有规则、有判定、有设定的 TRPG 会话,而不是无结构的闲聊。支持直接导入 DiceFrame 世界书 / 角色卡 / 内容包。
功能
| 模块 | 提供能力 | 扩展点 |
|---|---|---|
dice | roll_dice 工具:3d6、d20、2d20kh1(优势)、2d20kl1(劣势)、4d6dl1、d100、3d6+2、1d6!(爆炸骰),加密随机,逐骰明细 | 工具 + 提示段 |
gm | resolve_check 工具:d100 / d20 / 求和三种模式,含大成功/成功/失败/大失败与 margin;附 GM 主持准则(有起始场景时直接开场) | 工具 + 提示段 |
lore | 世界书 / 角色卡 / DiceFrame 内容包导入,注入系统提示词;加载 DiceFrame 内容时附一句多人引导 | 提示段 |
commands | 斜杠命令 /trpg(开团)、/roll、/check,直接执行不经过模型,骰子永远真实 | 命令 |
table | 会话状态:世界、玩家角色卡、场景笔记、NPC、先攻顺序(table_state / table_update),按会话隔离 | 工具 |
save | 存档互通:save_import 读 DiceFrame 存档(state.json / 可移植 zip)载入本局;save_export 把本局写成 DiceFrame 可导入的合法存档 | 工具 + 提示段 |
DiceFrame 互通(导入 DiceFrame 内容)
lore 能直接加载 DiceFrame 生态的内容——不用转换、不用复制:
- 单个世界书 JSON(含
world_id)→world_book_path,自动识别; - 单个角色卡 JSON(含
character_name)→character_card_path,自动识别; - 整个内容包目录(
plugin.json+content/worlds|characters|npc|items|spells|classes|rules)→diceframe_pack_path,一键全量导入。
- id: dsh-diceframe-lore
config:
enabled: true
diceframe_pack_path: "C:/games/diceframe-content-packs/my-pack"
# diceframe_cta: true # 加载 DiceFrame 内容时附加一句指向多人联机的引导,可设 false 关闭
导入后,世界书设定条目、角色属性技能、NPC、物品、法术、职业、规则会结构化进入系统提示词。加载到 DiceFrame 内容时,提示段会附加引导: