dsh-feishu-bridge: Connect dsh Sessions to Feishu Bots

Preface

When running agents with DeepSeek Harness (dsh), users often have to stay glued to their computers: stepping away means missing progress updates and notifications for necessary decisions, and returning might reveal that a task has been stuck on a specific issue waiting for input. The common approach involves staring at a terminal or web interface, making it difficult to participate in the same conversation via mobile.

The following is an introduction to the community plugin dsh-feishu-bridge (Maintainer: superSizzzz, Category: Workflow). It acts as a bidirectional bridge between dsh and a Feishu / Lark bot: pushing stage conclusions to Feishu, routing messages replied to in Feishu into the dsh session, and providing a work summary upon task completion.

What is this

dsh-feishu-bridge is a workflow plugin within the DSH ecosystem. Repository: superSizzzz/dsh-feishu-bridge. Directory Page: SkillHub Plugin Page.

In one sentence: A two-way bridge between DeepSeek Harness (dsh) and a Feishu / Lark bot — stage conclusions out, messages in, work summary at the end.

The plugin runs with the permissions of the current dsh process; it is recommended to review the repository source code and the MIT license before installation. SkillHub is a community directory site and has no official affiliation with DeepSeek or HFTC (Higgsfield).

Core Features

Push Rhythm

By default, it only sends updates to Feishu at three specific moments, remaining quiet in between:

  1. After Assignment: Sends a fixed message stating the intended plan of action (independent of model judgment).
  2. Stage Results: Thinking process is accumulated first; once there is a notable result, it asks the model “what was actually accomplished in this stage?”. If the answer is NONE, it continues accumulating. It only reports completed work and does not push terminal-style line-by-line logs to Feishu.
  3. Task Completion: A work summary (what was done, which files were modified, line count statistics, etc.).

For a denser push frequency, set turnPush to always in the patch. To temporarily mute, send /mute; to completely disable, set enabled to false.

Feishu Side Form

Messages are presented as Feishu cards containing the workspace path, session short code (e.g., #A3F2) and title, and the stage or wrap-up text. The wrap-up card lists modified files and diff statistics.

Message Feedback and Commands

Non-command messages are fed directly into the dsh session, equivalent to typing on the computer; images are downloaded and passed to the attachment service. Common Feishu commands include /help, /status, /list, /use <short_code>, /stop, /mute / /unmute, /chat / /work, /polish, /config, /forget, etc. (see the README table for details).

Question Bridge

When dsh asks you a question via ask_user_question, the plugin converts the question into a card and pushes it to Feishu. The web interface popup still waits as usual; whichever side answers first is used. By default, if there is no response within approximately 5 minutes, it is treated as unanswered, and the agent continues execution to avoid getting stuck.

Chat Mode

After /chat, the Feishu side functions solely as a normal model conversation, not starting a dsh session, not using tools, and not modifying the workspace; /work switches back. Restarting dsh returns to Work Mode (the mode is not persistent).

Configuration and Tools

  • Access via the “Feishu Bridge” section in the dsh settings page, or by visiting http://127.0.0.1:3080/feishu-bridge/config in a browser (the port varies with dsh web configuration).
  • Behavioral fields (such as turnPush, thinkingJudge) need to be written in the bundle patch at installation time. Most interface items take effect immediately after saving, without requiring a restart.
  • The plugin also provides tools such as feishu_notify, feishu_summary, and feishu_silence (see src/tools.ts in the repository).

Installation and Activation

Prerequisites

Item Requirement
dsh ≥ 0.1.7-rc.2
Node ≥ 22
lark-cli Globally installed
Feishu App Requires im:message, im:message:send_as_bot; Event subscription im.message.receive_v1, long connection mode

If you haven’t created a Feishu app before, initialize the lark-cli profile first:

npm i -g @larksuite/cli
lark-cli config init --new --name dsh-bridge

Enable the aforementioned permissions on the Open Platform; to use card buttons, additionally add im:message:readonly and card.action.trigger.

Installation Command

Execute under the web profile (install once per profile; change the --profile parameter to switch profiles):

dsh plugin --profile web add github:superSizzzz/dsh-feishu-bridge

dsh will read the dsh.bundle.patch inside the package and merge it into the current profile. No manual configuration is needed, and no git clone is required.

User Binding

After installation, send a message to the bot in Feishu. The plugin identifies and remembers your open_id from that message and will serve only you afterwards; the userId configuration can remain empty. No proactive push notifications will occur before the claim is made.

It is recommended to restart dsh to make the plugin active. You can check ~/.dsh/dsh-feishu-bridge/boot.log to confirm loading, and verify that the “Feishu Bridge” section appears on the settings page.

Typical Usage

  1. Complete the installation and Feishu app configuration as described above, and restart dsh.
  2. Send the first message to the bot in Feishu to complete binding.
  3. Assign tasks to dsh normally; receive the start instructions, stage cards, and wrap-up reports in Feishu.
  4. Send messages via Feishu to continue the session when away from the desk, or use /use <short_code> to switch the default delivery session; send /stop to interrupt the agent.
  5. When the model asks you a question in dsh, you can click buttons on the Feishu card or answer on the web interface.

Uninstallation:

dsh plugin --profile web remove dsh-feishu-bridge

The state directory is $DSH_HOME/dsh-feishu-bridge/. To clean up completely, delete this directory; apps and permissions on the Feishu Open Platform must be handled by yourself.

Scenarios and Notes

Suitable for: Developers who need to participate in the same dsh session via mobile or when away from the desk, wish to automatically summarize stage results and final wrap-ups to IM, and already possess the capability to create Feishu custom apps.

Permissions and Privacy (Excerpt from README):

  • Does not open new ports; the config page reuses the dsh HTTP service; outbound traffic is primarily to Feishu and your configured model provider.
  • Writes to disk only in $DSH_HOME/dsh-feishu-bridge/; the repository states there is no telemetry code.
  • The text pushed to Feishu is generated by the model on the fly; conversation-related content will be sent to your model provider. Please be aware of this before installation.
  • Does not access contacts, cloud documents, or calendar on the Feishu side; when multiple dsh instances are on the same machine, only one instance receives Feishu messages via a PID lock.

Common Issues: If there is no push notification after installation, first complete the initial Feishu binding; if there is no response, check boot.log; changes to plugin code require a restart of dsh.

Conclusion

dsh-feishu-bridge connects “stage conclusions out, messages in, end summary” to Feishu, reducing the constraint of having to stay in front of the terminal. For further information, visit the SkillHub Directory Page and the GitHub Repository.

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

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

Xiaoye