DeepSHPlugins
dsh-feishu 專案預覽
GITHUB / COMMUNITY PROJECT

dsh-feishu

工具與整合JavaScriptMIT

DeepSeek Harness 的飛書/Lark 私聊橋接外掛,支援 `dsh plugin add` 一鍵安裝,配套完整除錯文件。

2 Starsitr-del 更新時間 2026-08-20
訪問 GitHub 倉庫
dsh-feishu 專案預覽

專案介紹

中文

DeepSeek Harness 的飛書/Lark 私聊橋接外掛,支援 `dsh plugin add` 一鍵安裝,配套完整除錯文件。

English

Feishu (Lark) IM bridge for DeepSeek Harness via `dsh plugin add`; one DM user to one persistent dsh session, with full debugging docs.

專案資訊與收錄訊號

快照 2026-09-11
作者 / 組織
itr-del
倉庫
itr-del/dsh-feishu
GitHub Stars
2
Forks
1
開發語言
JavaScript
許可證
MIT
最近推送
2026-08-20
Manifest
資料中檢測到宣告

公開倉庫不自動等於可商用;許可證與當前相容性以原專案文件為準。Manifest 和資料評分不構成安裝安全認證。

資料評分

62/ 100
維護活躍
85
文件與實用資訊
100
生態關注度
23
安裝便捷訊號
80
專案宣告訊號
100

近 22 天仍在更新;README 含完整安裝與使用說明;關注度尚低(2)。

評分來自已有資料快照的五維模型,僅作瀏覽參考,不是實際使用評測或安全檢測結論。

安裝與使用

所有專案資料與許可均以對應 GitHub 倉庫為準。

dsh plugin --profile web add github:itr-del/dsh-feishu

複製命令不會自動執行。請先閱讀倉庫文件,確認環境要求與許可證。

專案截圖

倉庫 README

GitHub 原文

已儲存的倉庫文件快照;文件抓取時間未記錄,可能與上方目錄介紹處於不同版本。安裝前請核對當前倉庫說明。

儲存庫檔案保留原文,指令與授權文字不作自動改寫。

dsh-feishu — Feishu (Lark) IM bridge for DeepSeek Harness

Pluggable cordis plugin wiring a Feishu self-built bot into a running
DeepSeek Harness (dsh) web
profile — installable via dsh plugin add.
┌────────┐   WS    ┌──────────────┐   cordis    ┌──────────┐    LLM    ┌──────────┐
│ Feishu │ ──────> │  this plugin │ ──────────> │ dsh agent │ ────────> │ DeepSeek │
│  IM    │ <────── │              │ <────────── │          │ <──────── │          │
└────────┘   API   └──────────────┘  events     └──────────┘  stream   └──────────┘

dsh-feishu — DeepSeek Harness × Feishu IM bridge

Features

  • One Feishu DM user ↔ one persistent dsh session (feishu:<open_id>).
  • Multi-turn conversations across reconnects.
  • Streams assistant replies back into Feishu, chunked at 4000 chars.
  • Filters DeepSeek <|DSML|...> tool-call markers from outbound text.
  • Pure ESM, no TypeScript compile step.
  • No telemetry, fully local.

Installation

1. Install dsh

npm install -g @deepseek-ai/dsh
dsh web --help

2. Install the plugin

dsh plugin add dsh-feishu

This installs the plugin into ~/.dsh/profiles/web/node_modules/dsh-feishu and patches cordis.patch.yml automatically.

3. Configure your Feishu app

Create a Custom App at <https://open.feishu.cn/app> and copy appId + appSecret.

Under Event Subscriptions (事件与回调):

  • Set mode to Receive events via persistent connection (使用长连接接收事件/回调).
  • Add the event im.message.receive_v1.

Under Permissions (权限), grant:

  • im:message
  • im:message.p2p_msg (required for DMs)

Publish a version (发布版本) — without this the bot cannot receive events. Wait ~2 minutes after publishing.

4. Export env vars and run

export DEEPSEEK_API_KEY="sk-..."
export FEISHU_APP_ID="cli_..."
export FEISHU_APP_SECRET="..."

dsh web

You should see in logs:

[feishu] WebSocket started (appId=cli_xxx)
[feishu] FeishuBridgeService initialized

DM the bot anything — the agent will reply in the same conversation.

Environment variables

VariableRequiredDefaultNotes
DEEPSEEK_API_KEYyes (LLM)—<https://platform.deepseek.com>
DEEPSEEK_BASE_URLnohttps://api.deepseek.comFor proxies
FEISHU_APP_IDyes—cli_xxx from app console
FEISHU_APP_SECRETyes—From app console — never commit

How a message flows

  1. User DMs the bot.
  2. Feishu SDK fires im.message.receive_v1 → this plugin.
  3. Plugin loads/creates the agent for feishu:<open_id>.
  4. Plugin calls agent.followup(userMessage).
  5. When agent returns to idle, plugin reads agent.session.events, strips

DSML noise, and posts the reply via larkClient.im.message.create(...).

Limitations

  • Text only. Image / file / card / post messages are not handled.
  • No streaming. Reply sent after turn completes.
  • No groups yet. DMs only.

License

MIT.

Acknowledgments

Author

itr-del — [email protected]

Built while integrating dsh with a self-hosted Feishu bot on Ubuntu 22.04.

📖 Open-sourcing story: PUBLISHING.md — how this repo got published and listed.

中文文档见 README.zh.md。

使用前核對

安裝步驟、相容版本與授權範圍以原專案當前文件為準。Stars 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案