dsh-avatar-chat: Adds user and assistant avatars to the DSH conversation stream

Preface

By default, the DeepSeek Harness (DSH) conversation area uses “bubbles + text” without attaching avatars to individual user requests or assistant replies. If you want to visually distinguish both parties at a glance in the transcript, or use your own image as an identifier, modifying the built-in renderer is unrealistic: third-party plugins cannot occupy the already-filled slots on conversation.chat.node, nor can they rely on CSS Modules class names to change styles.

dsh-avatar-chat takes a different approach: it uses page-level stylesheets to draw avatars based on stable data-* attributes on rows, and provides a standalone Avatars page in Settings. Below we introduce what it is, what it can do, and how to install and configure it.

What Is This

dsh-avatar-chat is a Cordis plugin (bundle) for the DSH Web Client: it displays avatars on the right side of each user turn and on the left side of each assistant reply, and adds an Avatars settings page under Settings for toggling avatars on both sides, selecting images, and adjusting sizes.

Core Features

The following capabilities are all described in the project README.

Independent Dual Avatar Configuration

User side and assistant side each have:

  • Show/hide toggle
  • Independent image (upload or URL)
  • Restore default to revert to the built-in pure CSS disc (no bundled images, relies on theme tokens, works with both light and dark themes)

Image Source and Size

  • Local upload: PNG / JPEG / WebP / GIF, max 5 MiB, scaled to 256 px
  • Or paste a https://… address (a probe is performed before adoption)
  • Avatar size 20 px–64 px, synced between the conversation area and the settings page preview

Integration with Conversation Structure

If an assistant reply is split into “reasoning row + answer row”, the assistant avatar is displayed only on the answer row, avoiding two avatars for the same reply.

Uninstall and Dependencies

When the plugin disposes, it cleans up root node attributes and custom properties it wrote. At runtime, DSH 0.2.1-alpha.4 (Web / Desktop) is required; the bundle’s dependencies such as react, @deepseek-ai/dsh-client-store, @deepseek-ai/dsh-client-ui-primitives are provided by the shell’s frozen module table, so no additional installation is needed.

Installation and Activation

Please quit the desktop application before installation: the desktop profile is locked while the app is running. After installation, DSH must be restarted in all cases, as bundles are composed into the stack at startup.

  1. Open Plugins → More → Experimental plugins → Custom plugin markets
  2. Add the index source in Plugins → Discover and install from the card:
https://raw.githubusercontent.com/suwodhcbbc/dsh-avatar-chat/main/index.json

The index is pinned to a specific commit, so card installation is reproducible; closing the marketplace source does not remove already-installed plugins.

Method 2: In-App Addition

In the sidebar, go to Plugins → Add plugin, paste the spec and install, then restart:

github:suwodhcbbc/dsh-avatar-chat

Method 3: CLI

Quit the application first, then run (desktop corresponds to the desktop app; if using dsh web, use the web profile instead):

dsh plugin --profile desktop add github:suwodhcbbc/dsh-avatar-chat

dsh plugin passes subsequent arguments to pnpm within the profile directory: it installs dependencies, and because the package declares dsh.bundle.patch, the package name is automatically added to the profile’s dsh.profile.bundles.

Verification

After restarting, you can use Cordis to check whether it loaded (README example):

cordis_inspect → host / Config / listConfigs { "entry": "include:ui-avatar-chat" }

You should see the package name and the real directory.

Typical Usage

  1. Open Settings → Avatars.
  2. User avatar / Assistant avatar: the toggle controls whether that side displays in the transcript; the image button opens the file picker; Restore default reverts to the built-in disc.
  3. Picture address: paste a https://… URL and apply.
  4. Avatar size: drag or select 20–64 px, effective immediately.

No additional operation is needed; the conversation area reads the settings on the next paint frame.

Preferences are stored in the browser’s localStorage under the key dsh.avatar-chat.v1, with the following example structure:

{ "schemaVersion": 1, "size": 28,
  "user":      { "visible": true, "image": "data:image/webp;base64,…" },
  "assistant": { "visible": true, "image": null } }

Uploaded images are stored locally only as data URLs and are not written to the session log; any script under the same origin can read this key, so please do not store sensitive content.

Use Cases and Notes

Who Is It For

  • Desktop or Web users who want to distinguish users and assistants in DSH conversation transcripts and customize avatars
  • Those who accept decorating rows via CSS + data-chat-flow-kind and similar attributes, rather than modifying the official message renderer

Please Be Aware Before Use

  • The plugin runs with the same origin permissions as the current DSH process/browser; before installation, it is recommended to read the repository source code and the MIT license.
  • The community directory entry on skillhub.cn is collected by an independent site and has no official affiliation with DeepSeek / High-Flyer; star counts and categories are as displayed on each page at the time (GitHub currently shows 1 star, category “Fun/Customization”).

Conclusion

dsh-avatar-chat uses stable data attributes and page-level styles to add configurable dual avatars and an Avatars settings page to DSH without touching the official chat node. For installation cards or source code, visit the community directory page or the GitHub repository.

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

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

Xiaoye