@max-null/dsh-jubensha: Hosting a Murder Mystery Game Alone in DSH

Preface

When running Agent Teams or long-session experiments in DeepSeek Harness (DSH), a common need is to “gather a table of people.” For Murder Mystery games (jubensha), you need four to six players plus a DM; gathering real people is often harder than buying a ticket. The community plugin @max-null/dsh-jubensha (maintained by Max-Null, GitHub repo Max-Null/dsh-jubensha) restructures this into a form that runs on a single machine: AI takes the DM seat, AI players fill the rest, and only one seat is left for a human. The plugin is categorized as a Client, the current package version is 0.1.1, and the license is MIT. The directory page is available at SkillHub.

Below is an introduction to the problems it solves, the capabilities it adds to DSH, and how to install it and start your first game.

What is this

Jubensha (Script Kill): Deduction and emotional scripts where you can start a game alone — AI acts as the DM, and AI fills the whole table (repo README quote).

The real barrier is often not the ticket price, but the number of people. The goal of this plugin is to let you start a game all by yourself; regarding whether AI players act “human-like,” the maintainer states they have tested this across seven scripts in real DSH sessions (see repo cases/), rather than just staying at the design stage.

Core Features

Model Tool Surface (Four Items)

The plugin exposes four types of tools to the host model to start games, advance plots, and manage actors, avoiding the need to pile all game state into the conversation:

Tool Summary of Function
jubensha_state View the situation, start a game, advance stages, reveal clues, record movements
jubensha_player View table members, seat/unseat players, speak to a specific player or the whole table, relay (compatibility retained)
jubensha_case List scripts, list seats, fetch character scripts, fetch raw clue card table, fetch script segments
jubensha_actor Actor pool: list people, recruit, personality draft skeletons, modify playstyle, avatars, cross-game impressions, profiles

The game state is stored by session (Map<sessionId, GameState>); the “Team” tab always corresponds to the game in the current session.

“Team” Session View

After installing the plugin, a new tab named “Team” appears alongside “Conversation / Trajectory / Context”. The left column contains seats, character relationships, and timelines; the middle column contains the script text (collapsed by default) and the current stage; the right column contains table chatter. Sticky notes can be placed via right-click and are saved with the tab and session.

The UI only generates text and does not call tools on its own (e.g., selecting scripts, picking actors for seats, generating opening commands), preventing the UI from becoming a second control channel. On narrow screens, the three columns switch to vertical stacking, each scrolling independently.

Data is fetched via the plugin’s read-only endpoint: GET /jubensha/room?session=<id> (fenced by loopback + same-origin). There are three write endpoints: actor pool, sticky notes, and script directory; sticky notes are stored by session, while the actor pool and script directory follow the local user.

Actor Pool and Cross-Game Memory

Roles come from the script, people come from the actor pool; the actor pool persists across sessions, stored on disk at $DSH_HOME/storages/jubensha.json. The plugin ships with six default actors (Lao Mao / A-Zhen / Lao Sun / Xiao He / Tie Ge / Bai Jie); initialization only fills in missing fields. When starting a game, “Random Assignment” shuffles the whole table; the same actor can switch seats or scripts. Profiles record cross-game impressions (e.g., “who tricked them last game”), not seat numbers.

Personalities can be handwritten or generated via jubensha_actor action="draft" to get writing criteria (not ready-made paragraphs); these must be reviewed by a human before saving to the database. If no image is available, avatars are generated as inline SVGs based on the actor ID; images can be swapped using action="avatar".

Scripts and the Boundary of Truth

Includes seven YAML scripts (cases/<number>-<name>/case.yml): 4-player scripts 01–06, and 6-player script 07 night session. The format is defined by schema/case.schema.yml (v1.0); the loader warns on incomplete fields (e.g., in case-01, the human character Lin Mo lacks a “Present” section, and a warn is pinned in tests).

Content containing answers is kept out of the DM context: the truth and full clue text are sealed into the post-game review; character scripts are referenced and dereferenced by the program into the player’s first message when they sit down. The AI player sub-session tool surface is narrowed—in testing, a large number of inherited tools were cleared, leaving the player side primarily focused on speaking (see README “Status” and the docs/design/ series for details).

After 2026-10-07, table chatter is broadcast verbatim sentence-by-sentence by the host to the other seats (signature matches the original text); jubensha_player action="say" still represents the host’s speech (transitions, stage announcements, etc.).

Settings Page

Sidebar “Plugins” → Open the @max-null/dsh-jubensha card: Actor pool (name, playstyle, cross-game impressions), script paths, and additional directories, etc. Uses the plugins.bundle.config slot provided by plugin management (key is the package name).

Installation and Activation

In an environment where DSH is already installed, execute the command given in the official README:

dsh plugin add @max-null/dsh-jubensha

The plugin runs with the permissions of the current DSH process; before installing, it is recommended to review the GitHub source code and the MIT license yourself to confirm dependencies and behavior fit your environment. Peer dependencies include @deepseek-ai/cordis, dsh-agent, dsh-experimental-agent-team, etc., in the 0.2.x RC range (see package.json).

Typical Usage: Starting the First Game

  1. Create a new session, and triple-click on the session title — this fills the input box with “来一局剧本杀” (Start a jubensha game) (it only fills the sentence, does not auto-send).
  2. After pressing Enter to send, tabs for Conversation / Trajectory / Context appear; click “Team” on the far right.
  3. In the Team page, select a script, pick an actor for each seat, then click “Start Game”; or let the model drive the process via the four tools mentioned above.

Maintainer’s note: The skeleton and player seating have been verified in isolated instances; typecheck / test (155 cases) / build are all green, and the four tools have been verified by real model calls.

To write your own script, the README points to the skill jubensha-write-case and suggests running the following after writing:

node scripts/check-case-syntax.mjs
pnpm test

(The latter includes 11 structural checks, such as non-empty six-part character sections, exactly one killer, five stage IDs, etc.)

Use Cases and Notes

Who is it for

  • Developers who want to experience the jubensha flow solo in DSH, or debug multi-character dialogue in Agent Teams.
  • Scenarios requiring machine-readable logs of stages and clue events for easy review, rather than relying on DM memory.

Known Limitations (Excerpted from README)

  • Shared Working Directory: AI players and the DM observe the same cwd; the script’s truth manual must not be placed in the workspace. Write it outside the workspace at the start and archive it after the game.
  • Character Scripts Not on Disk: Delivered only via messages to the corresponding agent to prevent any agent from reading others’ secrets.
  • Player Tool Surface: The whitelist focuses on send_message, but under the Team mechanism, model requests may still carry Team-related tool names; see the README “Known Limitations” for layered explanations regarding execution gates and tools.restrict.
  • Private Chat UI: The human side currently does not distinguish between “to host” and “to table”; the session conversation is the table; the design doc states this is a deliberate trade-off.
  • Workshop: Only preliminary research docs exist; the repo states no implementation code has been written yet.

The DSH ecosystem philosophy is “Everything is a plugin”; SkillHub is a community directory and has no official affiliation with DeepSeek / Hi-Fly (Huanfang).

Conclusion

@max-null/dsh-jubensha changes jubensha from “gathering people” to “one person + a full table of AI”: adding a “Team” room to the client, four jubensha_* tools, seven validable YAML scripts, and cross-game memory for the actor pool. If you want to try deduction or emotional scripts in the Harness, start by installing with dsh plugin add @max-null/dsh-jubensha, then use the title triple-click entry to start your first game.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye