dsh-team-chat: Completing the Agent Teams Chat Timeline in the DSH Interface

Preface

The official DSH (DeepSeek Harness) Agent Teams already supports named teammates, persistent mailboxes, and shared task boards. However, in the native Web panel, the wire projection only outputs { members, tasks, failure }, so message events do not appear on the interface; the task board is also read-only and cannot be modified directly within the panel. If you wish to view real-time dialogues of multi-AI collaboration, manage member display information, and perform @ dispatch on the input side within the same DSH desktop UI, an additional view layer is required.

dsh-team-chat (maintained by MoYu-CN) is a workflow-type plugin within the DSH plugin ecosystem. It does not fork the official package; instead, it uses public APIs to register a parallel session projection, accumulates team/message/queued / team/message/delivered into a renderable timeline, and extends member avatars and dispatch capabilities. The npm package name is dsh-team-chat, current version 0.1.0, license MIT.

What is this

In one sentence: A multi-AI real-time collaboration chat room embedded in the existing DSH interface—it supplements the mailbox timeline missed by the official panel for Agent Teams, and provides a member roster (including avatars) and @ targeted dispatch.

The English introduction matches the directory page: Chat room for DSH agents: shared room timeline, member roster, and task dispatch across agent sessions.

Core Features

The following capabilities are marked as available or design goals in the repository README and implementation checklist. After installation, you need to click through them in DSH to confirm consistency with your environment.

Chat Room Timeline

Registers an independent timeline projection, listens to message events within the same event stream as the official Agent Teams, and passes them to the frontend for rendering via wire.view (with SSE fallback). The left side features a timeline with member information, while the bottom still uses the host’s official composer.

Member Panel and Display Layer Override

The member panel displays the number of members, an “Add AI Member” entry, and “Open Conversation” / “Edit Profile” / “Remove” actions for each row. The name / provider / context in the official team/member are immutable identities; changes to display names, roles, and avatars are only written to the plugin’s local MemberStore (members.json). It overrides the UI by memberKey without writing back to the Team protocol layer, avoiding immutable identity fields errors.

Avatars support emoji / text / image types; images are data URLs with a ~60 KiB limit enforced by both the client and host. The host only accepts data:image/(png|jpeg|gif|webp|avif);base64,....

@ Dispatch and Tools

Highlights include: @ dispatch to individual members, and model-facing chatroom_read / chatroom_send tools (listed in the README English summary). There is a “Send to Team” member selector on the left side of the input box toolbar (slot conversation.input.left).

Settings and Language

Under Settings → “Chat Room”, you can configure the speaker’s display name and avatar, the AI member list, etc. The settings UI follows the host language (built-in Chinese-English dictionary); model-facing prompts remain in Chinese by design.

Adding AI Members

The browser side cannot directly hold the host Lead Agent object. The plugin provides a host route POST /__teamchat/spawn, which calls the official ctx.agentTeams.spawnTeammate after the host executes findLiveAgent(). Only the Lead can spawn; name must match /^[a-z0-9]+(?:-[a-z0-9]+)*$/u and cannot be lead; description is required and must be ≤200 characters. If agentTeams is not included in the inject, the interface returns 503 TEAM_UNAVAILABLE when missing, and the client will prompt the Lead to call spawn manually.

Parts Not Yet Completed or Requiring Manual Confirmation

The README explicitly lists unfinished items, such as: the “Chat Room” button in the left sidebar.panellist, the real-device UI timing for the right-column member tab, and “Full Team protocol for chat room speech” (currently mainly writing to the official draft). Please refer to the repository’s Current Status section before use.

Installation and Activation

Installation from npm is recommended (do not manually copy the package name into the tarball):

dsh plugin add dsh-team-chat

After installation, restart DSH as prompted (host side); refresh the page for the client script to take effect.

Alternative methods (excerpted from README):

tarball:

dsh plugin add https://registry.npmjs.org/dsh-team-chat/-/dsh-team-chat-0.1.0.tgz

Local link (takes effect immediately when modifying plugin source code, requires cloning to a local directory):

dsh plugin add "link:<your_directory>/dsh-team-chat"

Runtime environment: package.json requires Node ^22.19.0 || >=24.0.0.

Typical Usage

  1. Install, restart DSH, and refresh the Web client.
  2. Configure your display name, avatar, and AI member list in Settings → Chat Room; if using the official Team spawn, ensure the current session Lead is online and meets the naming rules.
  3. Switch to the plugin-injected Chat Room view (conversation.view) within the session to view the left-side timeline; select the target member next to the official input box at the bottom to send, or use @ to dispatch to a single member.
  4. Open Member Management via the session header or sidebar entry to edit display layer profiles or add AI members (constrained by Lead permissions and the spawn interface).
  5. If the Agent needs to read/write chat room context, use chatroom_read / chatroom_send in flows that support tool calling (subject to the tools registered by the plugin).

When troubleshooting slots and Cordis specifications, the README points to the official @deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/ and CLIENT_SLOT_API in the client runner; the slots used by this plugin include conversation.view, conversation.session.header.actions, conversation.input.left, settings.general.item, etc.

Brief Principles

No modification to the official package: Registers a timeline projection parallel to the official agentTeam projection via ctx.sessionProjections.register(). Within apply, it uses ctx.effect to register dictionaries, slots, and cleanup logic; the session-derived UI goes through the Host projection’s wire.view. The Client-side client.js only depends on the seeded react / react-dom and does not require the Harness Client package.

Use Cases and Notes

Who it is for: Developers or small teams already using Agent Teams in DSH who need to see the mailbox dialogue flow within the same interface, manage member display information uniformly, and perform task/message dispatch across multiple sessions.

Permissions and Security: The plugin runs with the current DSH process permissions; spawn, routing, and member storage are executed on the host side. Please read the GitHub Source Code and the MIT license before installation to assess whether to include it in your production profile.

Ecosystem Note: The DSH community plugin directory (such as the dsh-team-chat page on SkillHub) is an independent site with no official affiliation with DeepSeek / High-Flyer; star counts and maintenance rhythms are subject to the repository (the directory page once showed 0 stars, which does not imply the features are unusable).

Known Limitations: The plugin does not claim to solve the official task board read-only issue; member identity cannot tamper with the protocol layer via the UI; some UI paths are still marked as pending real-device testing in the README.

Links

If your pain point is “Team data exists, but message UI does not,” install dsh-team-chat and follow the steps above to restart and refresh. You can then connect the mailbox timeline and member collaboration entries within the existing Harness interface; for more complete Team speech protocols and sidebar entries, please refer to subsequent versions of the repository.

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

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

Xiaoye