Introduction¶
In DSH, model calls are typically one-to-one, making it hard for different models to naturally converse with each other. Web-based tools are constrained by the same-origin policy and cannot directly reuse DSH’s model services. The Roundtable plugin organizes selected models into a group, letting them interact like people in a group chat. The plugin holds no API keys—all model calls go through ctx.llm.stream(), using whatever routes are already configured in DSH, without caring which model is free or which one costs money.
Plugin Overview¶
Roundtable is a DSH workflow plugin maintained by yizhiyangyangqwq. Its core value is “multi-model group chat”: after configuring models in DSH, add them to the same group and let them converse autonomously. The plugin handles no model-specific details—it only orchestrates the group chat flow and UI interactions.
Core Features¶
Group Chat Basics¶
- Members are models: No role wrappers in the group. Each member’s name is the model’s own name, and avatars are generated as gradient circles from the model ID.
atmentions: Typeatto bring up a candidate list; selecting one addresses that model. Each model has a handle derived from its ID.at everyone: All members reply.- Auto-reply strategies: Supports first-model / all-reply / free interjection / must-at.
atrelay: A model canatanother model in its reply, passing the conversation along—up to 3 hops.- Quote reply: Quote a message and respond; the model can see which line is being discussed.
- Delete / Edit: Can only operate on your own messages.
- Pin: Up to 3 pinned messages, displayed above the message stream; click to jump to them.
- Search: Full-text search covering message bodies, red-packet notes, poll options, relay content, and system messages.
- Export: “Export Log” in group settings, saved as Markdown, preserving all six message types.
- Images: Supports paste, drag-and-drop, and file selection. Models without vision support will honestly state that they can’t see the image.
Fun Stuff in the Group¶
- Red packets: Three types—lucky draw / equal split / exclusive. Exclusive can be targeted at a specific model.
- Points: Models earn points through red packets and activities, used to purchase items in the shop.
- Gold coins: Scarcer currency, earned only through work and travel.
- Shop: Points shelf (food, furniture, appliances, decor, cheering items) + gold coin shelf (badges, titles, crowns…).
- Work / Browse / Travel: Models can go out, announce before leaving, and return with rewards.
- Polls: The initiator writes a question and options; models can vote, and results show who voted for what.
- Relay: Models can use
at relayto join a chain themselves.
UI & Interaction¶
- Two skins: Glass (frosted) / Minimal (solid).
- Two modes: Dark / Light.
- All icons are hand-drawn SVGs using
currentColorto follow the theme—including settings categories, shop items, and the toolbar. - Message pagination: Long conversations only render the most recent 60 messages; “Load earlier” scrolls up without losing your reading position.
- Settings page: Profile / Appearance / Chat / About.
Keyboard Shortcuts¶
Enter: SendShift + Enter: New lineEsc: Close popups, dismissatcandidatesCtrl / ⌘ + K: Jump to input boxCtrl / ⌘ + F: Search chat history
Installation & Activation¶
The plugin is not on npm; installation requires the “clone + local link” approach.
1. Clone¶
git clone https://github.com/yizhiyangyangqwq/DSH-Roundtable
Remember the absolute path of this directory—you’ll need it below.
2. Register in the profile¶
The profile is typically located at:
| OS | Path |
|---|---|
| Windows | %USERPROFILE%\.dsh\profiles\desktop\package.json |
| macOS / Linux | ~/.dsh/profiles/desktop/package.json |
If your profile is not named
desktop, replace it with the actual directory name.
Edit two places—the names must match exactly:
{
"dependencies": {
// ① Replace the path with your own clone location
"@local/roundtable": "link:C:/you/clone/path/DSH-Roundtable"
},
"agent": {
"profile": {
"bundles": [
// ② Don't delete existing entries; add this line to the array
"@local/roundtable"
]
}
}
}
Why both edits are required: dependencies only lets Node resolve the package; bundles is the actual “enable” switch—DSH only loads plugins listed in bundles. Adding the dependency without the bundle entry means the sidebar will show “Roundtable,” but sending a message will return a 404.
3. Create the node_modules link¶
Node needs to find this package name under the profile’s node_modules. No network access or pnpm install required.
Windows (no admin needed, use cmd):
mklink /J "%USERPROFILE%\.dsh\profiles\desktop\node_modules\@local\roundtable" "C:\you\clone\path\DSH-Roundtable"
macOS / Linux:
ln -s /you/clone/path/DSH-Roundtable ~/.dsh/profiles/desktop/node_modules/@local/roundtable
4. Restart DSH¶
The plugin loads at startup; a restart is required after changes.
Verifying the Installation¶
- “Roundtable” appears in the sidebar.
- Click in and you can “+ New Group” → “+ Model”; the list shows models already configured in DSH.
- Send a message and you can see a streaming response.
If step 2’s list is empty, or sending a message returns 404 / unknown route: The host half isn’t loaded—usually the bundles entry from step 2 is missing.
Plugin Structure¶
roundtable-plugin/
├─ index.js Host: /api/roundtable routes + ctx.llm calls
├─ client.js Browser: panel, group chat UI, all UI
├─ cordis.patch.yml Loader line
├─ package.json Declares agent.bundle + agent.client
├─ icon.svg Sidebar icon
├─ locale/ UI language strings
├─ check.mjs Pre-flight self-check (260+ assertions)
└─ toggle.mjs Enable/disable the plugin
Host (index.js)¶
Runs in Node, registers six same-origin routes:
| Route | Purpose |
|---|---|
GET /models |
Iterates listProviders() then calls listModels() on each, returning the directory (parallel + cached) |
POST /chat |
Single model call, NDJSON streaming response |
POST /speak |
Asks “do you want to chime in?” before a free interjection |
POST /efforts |
Lists thinking levels supported by this model |
POST /image |
Stores an image, returns the reference from the attachment service |
POST /image-read |
Reads a stored image back for the UI to display |
The trust boundary follows usage-meter: if a connection service exists, delegate to its admission check; otherwise, require same-origin.
Client (client.js)¶
Two slot registrations—the id/key must match to form a pair:
ctx.slots.register({ name: 'main', key: 'roundtable', order: 40 }, RoundtablePanel)
ctx.slots.register({ name: 'sidebar.panellist', id: 'roundtable', order: 40, label: () => 'Roundtable' }, Icon)
Note that main is a keyed slot—it matches by key, not id, and only takes effect when registered via slots.inject('main', ...). sidebar.panellist matches by id. The two values must be equal to form a pair.
Data Storage¶
Groups and messages are stored in localStorage under the key dsh.roundtable.v2. This is local chat history—it does not enter session records or get uploaded.
A few storage-related behaviors:
- Write throttling at 800ms, with a forced flush before the page is hidden/closed—otherwise every streaming chunk would serialize the entire state.
- When quota is insufficient, it automatically trims the oldest half of messages in each group and retries (up to 8 rounds), keeping the host usable; if it truly can’t fit, a red warning appears in the sidebar: “Messages may be lost after refresh.”
- When the save is corrupted, the original bytes are preserved as
dsh.roundtable.v2.corruptrather than overwritten in place—that might be the only copy. - For long-term retention, use Export (Group Settings → Export Log).
Development & Debugging¶
# Pre-flight self-check: load both halves, run mocks, render panel, check CSS and invariants
node check.mjs
# Toggle
node toggle.mjs on|off|status
check.mjs isn’t just a static check—it actually:
- Calls component functions for real, catching TDZ / undefined errors that only surface during rendering.
- Renders the panel with 13 types of corrupted data (empty groups, legacy member formats,
ballots: null, dangling pin IDs,roomsnot being an array…). - Runs the exporter end-to-end, confirming all six message types serialize to Markdown.
- Verifies that
VERSIONmatchespackage.json.
Always run it after changes—it catches more edge cases than the human eye.
Known Limitations¶
- Quotas are per-route. Larger groups and more aggressive auto-reply strategies mean more calls per round. Common free-tier limits of 20 calls/min and 50 calls/day are global.
- Models won’t pretend to see images they can’t. DSH replaces images with placeholder text, and the model explains it can’t see the image.
- Thinking levels are model-declared. Most free-tier models only declare
defaultand can’t be changed. - Chat history lives only in this machine, this browser.
Use Cases & Notes¶
Roundtable is suited for scenarios where you want multi-model collaboration in DSH, such as multi-role discussions, debates, and division-of-labor workflows.
The plugin runs with the current dsh process privileges. Review the source code and license before installing. The plugin is licensed under MIT.
Closing¶
Roundtable enables natural multi-model conversation in DSH through a “group chat” paradigm. It holds no API keys—all model calls go through DSH’s own channels, so it neither knows nor cares which model is free or which one costs money—whatever you’ve configured in DSH can be added to the group.
Plugin: https://github.com/yizhiyangyangqwq/DSH-Roundtable
Directory: https://www.skillhub.cn/plugins/yizhiyangyangqwq/DSH-Roundtable