dsh-im-indicator: Indicating IM Channel Occupancy and Response Status on the DSH Session List

Introduction

When using DSH (DeepSeek Harness) to simultaneously open desktop conversations, Feishu, or WeChat channels, it is often unclear which session is currently being occupied by a channel, nor is it clear if a session is currently answering or has unread replies. Switching windows or checking logs is costly and prone to errors.

Below is an introduction to the community client plugin dsh-im-indicator (maintainer Poy-Coder). It provides minimal visual cues on the session list: the session currently bound to the channel is displayed with a channel capsule; each session is accompanied by a status dot derived from the DSH’s own state. It does not tag the entire workspace, issue notifications, or create menus; it simply answers questions like “who is occupying this session now and what is its status?”

What is this

dsh-im-indicator is a client plugin for DeepSeek Harness (DSH), featuring zero runtime dependencies and a bundle size of approximately 7.0 kB (unpacked 15.7 kB). The host side is about 74 lines (one read-only route), while the client side is about 202 lines (slots, shared polling, capsule UI). The current version is 0.1.1 in package.json, licensed under MIT, and requires Node >=20.18.1.

Plugin directory page: SkillHub.cn entry. Source code and documentation: GitHub Repository. The DSH ecosystem emphasizes “everything is a plugin”; the community directory is an independent site with no official affiliation with DeepSeek or Hypothetical.

Core Features

Two Types of Indicators on the Session List

  1. Channel Capsule: Only appears on the session currently bound to the channel, indicating that the session is being driven by the Feishu or WeChat channel. It targets a single session, not the entire workspace.
  2. Status Dot: Applies to all sessions (including direct desktop dialogue). A green breathing indicator means it is currently answering; orange means there are unread replies; no dot is displayed when idle.

Lightweight Implementation Highlights

Aspect Description
Dependencies 0 third-party packages
Network Local GET approx. 60 bytes every 5 seconds; polling stops when the page is hidden
Host No caching, no table creation, no disk writing
Comparison Does not do workspace-level tagging, notifications, menus, or database

Integration with Channel Plugins

Designed to be used with the following channel plugins (npm package name matches repository name):

When both channels are installed, capsules are distinguished by their bound sessionId.

Installation and Activation

The official installation command is as follows:

dsh plugin add dsh-im-indicator

After installation, the host will add a read-only route; a DSH restart is required for it to take effect; thereafter, refreshing the page is sufficient if only appearance adjustments are needed.

Before installing, it is recommended to review the source code and MIT license in the repository. The plugin runs under the current DSH process permissions and reads state files written by channel plugins located at ~/.dsh on the local machine (read-only exposure to the frontend, see below).

Typical Usage: Where Do Bindings Come From

Channel plugins write “which session is currently being driven” into the state file, for example:

~/.dsh/feishu-channel-state.json → { "sessionId": "session-…" }
~/.dsh/wechat-channel-state.json → { "sessionId": "session-…" }

This plugin aggregates via the host route and provides it for page polling:

GET /im-indicator/bound
{ "v": 1, "bound": { "feishu": "session-…", "wechat": "" }, "at": 1794817824743 }

The page requests once every 5 seconds and redraws the UI only when the bound ID changes. The typical workflow is: first install and configure the corresponding channel plugin so the channel can write sessionId normally; then install this plugin and restart DSH to view capsules and status dots directly in the session list.

Self-test command provided by the maintainer in the repository:

node --test test/verify.mjs

Stability and Limitations

Documented Behavior

Risk Handling
Missing or corrupted state file Treated as empty binding, no error thrown (covered by tests)
Page in background Polling pauses, refreshes immediately upon returning to foreground
API failure Exponential backoff 5→10→20→40→60 seconds, retains last result
Response carries v version number Unknown version ignored directly
DSH client API changes Feature detection on state hooks; if unavailable, only display capsule
Uninstall Timers, listeners, styles destroyed with plugin

Usage Notes

  • Depends on the sessionId field in channel state files; if the field name changes, this plugin must be updated synchronously.
  • Built-in mapping only recognizes feishu / wechat; new channels need to add mappings in the plugin.
  • Status dots come from DSH session status, they do not indicate whether the channel connection is healthy (README notes this can be extended later).

Conclusion

dsh-im-indicator is suitable for developers who are already using Feishu or WeChat channels in DSH and need to quickly identify “which session is occupied by a channel, if it is answering, and if there are unread replies” in the session list. With clear functional boundaries and a small footprint, it is suitable as a list-side supplement to the channel suite, rather than a standalone IM management or notification center.

  • Directory page: https://www.skillhub.cn/plugins/Poy-Coder/dsh-im-indicator
  • GitHub: https://github.com/Poy-Coder/dsh-im-indicator
羽毛球分组比赛记分
小程序二维码

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

Xiaoye