Preface¶
When performing automated or assisted processing in DeepSeek Harness (DSH), a common practice is to have the model respond only to content you manually paste into the current session. If you need to “trigger a DSH session whenever a new message arrives” in Feishu (Lark) group or private chats, you typically need to build your own webhook, bot, or external script, and handle authentication and message formatting separately. The following introduces the community plugin dsh-lark-session-monitor-plugin (Maintainer: lifeopsgo): it reads configured sessions as your Feishu user identity, organizes new messages into readable text, and delivers them to a specified DSH workspace and session; the plugin itself does not reply to messages in Feishu.
What is this¶
dsh-lark-session-monitor-plugin is a network-related plugin for DSH (Community catalog category: Networking Tools). It solves the problem of: monitoring specified Feishu sessions within authorized scope and writing new messages as prompts into your selected DSH session. Unlike solutions that “only receive @ messages via a bot,” the README explicitly states it uses user permissions to read both p2p and group chats; the message body is rendered before entering the model, rather than dumping raw Feishu JSON to the model.
- Catalog Page: https://www.skillhub.cn/plugins/lifeopsgo/dsh-lark-session-monitor-plugin
- Source Code & Docs: https://github.com/lifeopsgo/dsh-lark-session-monitor-plugin
- Package version in current materials: v2.1.0 (MIT License)
Compatible Environment¶
| Item | Requirement |
|---|---|
| DSH | 0.2.0-rc.1 and higher (README notes it has been verified on the current DSH Web runtime; 0.1.x is not supported in this release line) |
| Node.js | ≥ 22.6 |
| Install Profile | web (Install command uses dsh plugin --profile web) |
Core Features¶
Monitoring and Delivery¶
- Configure the Feishu App’s App ID and App Secret on the settings page and complete user OAuth authorization; the user token is stored in DSH’s credentials service and automatically refreshed. The README explains that Secrets and tokens are not returned via RPC.
- Use New Monitor to bind the session to be monitored, a prefix Prompt, a target workspace, and a target session; you can filter by session type and support multiple monitor rules each with its own enable/disable toggle (polling switch).
- New messages are merged into a single prompt for delivery. The format is: your Prompt at the top, followed by lines formatted as
[Sender] [Message ID] Message Body; a single delivery contains a maximum of 10 messages, with the remainder continuing after the next successful delivery; the cursor only advances after successful delivery, and failures will result in re-reading the same batch of messages.
Message Rendering and Filtering¶
- Textualization: Only readable text is delivered; posts are flattened, and cards are rendered from
user_card_contentinto title/body/button links, etc.; links are provided as plain URLs without active crawling; images/files/audio/video become labels such as[Image]; messages with no readable content are skipped. Each line carries the Feishu message ID for easy reference within the session. - Skip own messages: Default off; when enabled, messages sent by yourself are not delivered (if your identity cannot be read, they are delivered according to the original logic).
- Senders: Default accepts everyone; can be restricted to specific users or bots (App ID may be displayed if no display name is available).
- Also @bot mentions: Default off; when enabled, even if the sender is not in the Senders whitelist, messages that @ the app’s bot will be delivered.
- Blocked keywords / Allowed keywords: Blacklist takes priority; an empty Allowed list means no keyword filtering.
Target Session Behavior¶
| Target Session | Auto-create & Pin | Behavior |
|---|---|---|
| Selected | — | Messages accumulate in the same session |
| Blank | Checked | First delivery creates a session and pins it |
| Blank | Unchecked | A new session is created for every delivery |
Polling is single-flight for each monitor, not Feishu push; offline messages are not backfilled outside the initial window (README Limitations).
Installation and Enablement¶
Please review the GitHub source code and MIT license before installing; the plugin runs under the permissions of the current DSH process and only accesses authorized Feishu APIs and selected DSH sessions.
- Confirm Node.js ≥ 22.6 and DSH is 0.2.0-rc.1 or higher.
- Execute the official installation command (version pinning follows the README):
dsh plugin --profile web add github:lifeopsgo/dsh-lark-session-monitor-plugin#v2.1.0
- Restart DSH and refresh the page. Open Settings → Plugins → Feishu Session Monitor.
To upgrade, re-execute the add command above; removal example:
dsh plugin --profile web remove dsh-lark-session-monitor-plugin
Typical Usage: From Feishu App to First Monitor¶
1. Create Feishu App and Fill Credentials¶
Create an enterprise self-built app on the Feishu Open Platform and enable the user permissions listed in the README:
| Scope | Purpose |
|---|---|
im:message.p2p_msg:get_as_user |
Read private chats |
im:message.group_msg:get_as_user |
Read group chats |
im:chat:read |
Resolve session names |
offline_access |
Refresh token without repeated authorization |
Fill in the App ID and App Secret on the plugin settings page and save.
2. User Authorization¶
Click Start Authorization, open the link in your browser, agree to the scopes in Feishu, return to DSH, and click I have completed authorization.
3. New Monitor¶
Click New Monitor and configure according to the field meanings (Name, Session Type, Monitor Session, Prompt, Target Workspace, Target Session, etc.). If you only want to process @bot messages, combine this with Senders and Also @bot mentions; use keyword blacklists/whitelists for noise reduction. Save and enable the monitor to start polling and delivery.
Example structure of delivered content (README):
<your prompt>
[Sender] [Message ID] Message Body
[Sender] [Message ID] Second Message
Use Cases and Notes¶
Who it is for: Developers or teams already using the plugin profile on the DSH Web side who want to automatically feed new messages from specified Feishu sessions into a certain workspace/session (e.g., on-duty group summaries, triggering Harness workflows via messages from specified senders). Not suitable for scenarios expecting real-time push, rich media entering the model as-is, or the plugin sending replies to Feishu—the README states it only handles text-based readable content, polling has intervals, and it does not send messages to Feishu.
Privacy and Boundaries (Excerpt from README): Reads only the sessions you configured; network access is limited to authorized Feishu APIs (including the app’s own credentials when resolving @bot identity); no telemetry; settings interfaces go through DSH’s authenticated /api, and requires loopback Host and Origin when rpcAuthority: loopback.
Security Habits: Read the repository source code before installing; credentials reside in DSH settings and the credentials service, so App Secrets and access permissions to the DSH instance should still be managed according to organizational standards.
Conclusion¶
dsh-lark-session-monitor-plugin consolidates the “Feishu Session → DSH Session” flow into plugin configuration: reading sessions with user identity, rendering before delivery, and supporting filters for senders, @bot, and keywords. The DSH ecosystem emphasizes “Everything is a plugin”; community catalogs like SkillHub are independent sites and have no official affiliation with DeepSeek / High-Flyer. For further information, visit the SkillHub Catalog Page and the GitHub Repository.