Introduction¶
When running DeepSeek Harness (DSH) locally, tasks are typically tied to the terminal or Web UI: modifying code, checking failed tests, or asking about repository structure requires switching to that side to issue commands. If your team communicates daily on Feishu or Lark, bridging the loop of “send a message → local agent execution → results returned to the same conversation” can reduce context switching. Meanwhile, you can still view the full session and tool calls within the dsh Web UI.
The following introduces the community plugin dsh-lark (maintainer ChengqianHuang, categorized as “Workflow” on SkillHub). Built on top of an installed dsh and a configured Lark/Feishu bot, it uses lark-cli to subscribe to message events, executes agent turns in the local workspace, and replies to the chat where the triggering message was sent. It does not expose public webhooks.
What is this¶
dsh-lark is a package-bundle plugin for DeepSeek Harness (repository ChengqianHuang/dsh-lark). The README summarizes it as: send tasks to a Lark or Feishu bot, the Harness runs them in the local workspace, and replies to the message that initiated the task. You can review changes, troubleshoot failed tests, or ask about code, and the conversation can still be viewed in the dsh Web UI.
The plugin installs the lark service row via cordis.patch.yml within the bundle. The host manages the agent, tools, credentials, permissions, and persistent session history. The compatibility target in the current documentation is dsh 0.1.2-alpha.5 (see README “Use this package”). The package version is 0.2.0, and the license is MIT.
Core Features¶
The following capabilities are derived from the repository’s README and documentation index. Details not expanded upon in the provided materials are omitted.
Sessions and Context
- Private chats and group topics maintain their own sessions; follow-up messages retain context.
- Sending
/sessionsin private chat lists selectable sessions and allows switching to continue (requires session cards and CLIcard.action.triggersupport, see setup docs). - Sending
/newcancels the bridged task, clears pending messages, and resets the session for the current chat.
Tasks and Files
- Normal text: Executes a task within the session of the current chat; additional tasks enter a bounded queue.
- Can receive images/files; supports explicit file delivery approval; task progress cards include a stop button (can disable card types via configuration, see configuration options below).
- The bridge registers tools such as
lark_send_file; specific available actions depend on the host dsh’s tool and permission policies.
Control and Security
/statuschecks the current session, running state, and queue;/stopcancels the current bridged task and clears pending messages;/helplists commands immediately.- Can restrict senders and chats; an empty sender whitelist will cause startup failure unless
allowAllSendersis explicitly enabled. - Events are processed via local subscription through lark-cli; no public webhook endpoints are opened.
- Sessions inherit the host’s default agent presets and permission policies; group members can see replies, and authorized senders within the same topic share context. The configured filesystem workspace is shared across chat sessions.
Group Chat
- In the default example configuration,
groupPolicy: disabled; enabling group chat requires setting e.g.groupPolicy: mentionsand restrictingallowedChats(see configuration docs). - In groups, you must use the bot’s @display name to precisely start a topic, and reply within that topic to continue the session.
Command Overview
| Message | Result |
|---|---|
| Normal text | Runs a task in the current chat session; other tasks are queued |
/sessions |
Shows session selection in private chat |
/status |
Current session, running state, and queue |
/stop |
Cancels the current bridged task and clears pending messages |
/new |
Cancels work, clears pending messages, and resets the session |
/help |
Shows available commands |
Unknown slash commands return help and are not executed as agent prompts. Bot notifications support English and Simplified Chinese; the model’s reply language follows the conversation selection.
Installation and Activation¶
Prerequisites (from README): A working dsh installation, Node.js ^22.19.0 || >=24.0.0, pnpm, a Lark/Feishu bot configured in your PATH, and lark-cli. For credentials, scopes, sender IDs, etc., see the repository’s docs/setup.md.
1. Build and install the bundle¶
The official steps involve building from source and linking it into the web profile:
git clone https://github.com/ChengqianHuang/dsh-lark.git
cd dsh-lark
pnpm install --frozen-lockfile
pnpm build
dsh plugin --profile web add "$PWD"
The local checkout will be linked to the web profile; you need to rebuild after modifying the source code. If running dsh from the Harness source code, the README suggests using pnpm dsh in that repository to run the dsh command and passing the absolute path of the plugin directory to add.
2. Allow accounts and workspace¶
Merge the following snippet into ${DSH_HOME:-$HOME/.dsh}/profiles/web/cordis.patch.yml, replace the example sender ID, and retain existing entries in the file:
- id: lark
config:
allowedSenders: [ou_your_open_id]
workspacePath: ~/projects/my-project
groupPolicy: disabled
locale: en
Notes (from README): Session and interaction cards are enabled by default and require CLI support for card.action.trigger; configure callbacks according to the setup guide before starting. If you only need plain text, you can set sessionCards: false, interactionCards: false, progressCards: false, as well as receiveAttachments: false, fileDelivery: false. For Chinese notifications, set locale: zh-CN.
3. Start and Verify¶
dsh --profile web --dump-config
dsh web
The configuration dump should include the dsh-lark layer and your settings; it does not verify Lark connectivity. Send /help to the bot, then ask it to describe the workspace; open the session in the Web UI to view tool activity. Permission requests and follow-up questions are handled via cards in interactions.
Uninstallation: dsh plugin --profile web remove dsh-lark. Saved dsh session history remains subject to the host’s retention policy.
Typical Usage¶
Example prompts provided in the README (actual capabilities depend on your tools and permissions):
- “Explain this repository’s entry points”
- “Review the changes in my workspace”
- “Find why the parser test fails”
Recommended flow: First verify via direct private chat → send /help to familiarize yourself with commands → describe tasks in natural language → view the full reply and tool trace in the Web UI. Long answers may be truncated, so check the full content in the dsh session (README “Known Limitations”).
Group chat scenario: After configuring groupPolicy and allowedChats according to the documentation, use the bot’s display name to @ start a topic and have continuous conversations within that topic.
Use Cases and Notes¶
Who it is for
- Developers who already use DSH locally and whose teams communicate on Lark/Feishu, wishing to trigger local coding agents from IM.
- Workflow scenarios requiring switching between historical sessions via private chat, approving files and permissions within chat, and interrupting tasks with
/stop.
Important to know
- Bridged tasks run under the same host permissions as the running dsh and read/write to your configured
workspacePath. You should read the repository source code, SECURITY.md, and the MIT license before installation and activation. - The community directory SkillHub Plugin Page and the GitHub repository are published by the maintainer. The DSH ecosystem emphasizes “everything is a plugin,” but this directory is an independent community site and has no official affiliation with DeepSeek or High-Flyer.
- The GitHub stars recorded in the materials are 0; for further limitations, see the README “Known Limitations and Deferred Work” and troubleshooting.
Further Reading¶
Documentation index within the repository: Setup, Configuration, Sessions, Tasks, DESIGN.md. Chinese README: README.zh-CN.md.
dsh-lark aligns IM messages with local Harness sessions: messages drive tasks, results return to the chat, and sessions remain auditable in the Web UI. Directory page: https://www.skillhub.cn/plugins/ChengqianHuang/dsh-lark; Source code and installation instructions: https://github.com/ChengqianHuang/dsh-lark.