Introduction¶
Building agents in DeepSeek Harness (DSH) typically involves interacting via desktop or web clients. If you wish to drive the same native Session directly from Discord DMs or Feishu/Lark, while reliably pushing progress, “Ask User” prompts, and scheduled task results back to the channel, you often need to set up your own bots, manage credentials, prevent duplicate delivery, and align identities across channels. Channel Core consolidates Discord and Feishu adaptations into a single plugin package, aligning with DSH’s native steer/queue/interrupt, Ask User, and progress display features.
What is this¶
dsh-channel-core (repository Kerberos255/dsh-channel-core) is published by maintainer Kerberos255 and categorized as a Client plugin in the SkillHub directory. The README positions it as a single plugin covering both Discord and Feishu/Lark channels, providing verified owner identity, optional cross-channel shared Sessions, reliable message delivery, and progress/status integration. The plugin does not replace the model and task engine on the Host; it only manages channel-side delivery, receipts, and binding states.
Core Features¶
Dual Channels & Independent Lifecycles¶
The Discord and Feishu adapters are contained within the same npm package, each using independent credentials and connection lifecycles. Configure Discord, Feishu tabs, platform credentials, and allowed users/channels separately in Settings → Plugins → Channels & Sessions; a successful connection alone does not automatically authorize message delivery.
Identity Verification & Session Mapping¶
The channel owner is verified under each bot account. Group chats and unverified users should not inherit personal-memory permissions. After inbound messages pass channel allow rules, automatic owner claiming for first-time DMs is available, or manual owner selection is supported. If explicitly configured, DMs from the same verified owner on different channels can be mapped to the same native DSH Session; sharing long-term memory does not mandate sharing the Session. Session mapping decisions are auditable and will not silently reuse Sessions from other workspaces.
Inbound Reliability & Native Interaction¶
The plugin utilizes persistent inbound receipts, serial Session admission, and native steer/queue/interrupt to prevent message replay. Once an “Ask User” is submitted, both Discord and Feishu present the question and the selected/custom answer as a read-only receipt and remove the interaction controls; the submitted context remains visible and is not resent as a duplicate answer. Discord streams thinking, draft, and tool activity in a scrolling progress message; Feishu supports CardKit component streaming with an IM card fallback, featuring independent visibility toggles for drafts and thinking.
Slash Commands¶
Discord provides flat commands: /new, /stop, /status, /session, /answer, /prompt, /model, /think. Feishu supports text-form commands with the same names. Model selection is constrained by available models and takes effect from the next turn; candidates are provided when there is provider ambiguity.
Proactive Outbound (channel_send)¶
Agents can initiate outbound messages without a prior inbound message. The channel tool exposed to the model is channel_send({ text?, imagePath?, filePath?, bindingId?, idempotencyKey? }), sending to eligible and authorized Feishu or Discord destinations within the current native Session. A single call can send text, a Feishu image, or a Feishu file; filePath must be within the current workspace and is sent as a media upload rather than a Markdown path. A Session can only send to its own eligible bindings; multiple bindings require an explicit bindingId, and arbitrary recipient IDs or cross-Session delivery are not accepted. Delivery goes through a durable outbox with states pending, sent, failed, or uncertain; a stable idempotency key prevents duplicate sending of the same message.
The trusted Host API ctx.channelCore.sendToBoundSession({ sessionId, text, idempotencyKey, bindingId?, source? }) remains available for schedulers and other plugins; outboundTargets(sessionId) returns eligible binding IDs without exposing recipient IDs. On the Feishu side, channel_send also supports real downloadable attachments like { filePath: "_scratch/report.pdf" } (formats listed in the README include PDF, Office files, archives, TXT, CSV, Markdown, JSON, etc., subject to repository documentation).
Optional Task Notifications¶
General & Sessions → Task notifications is disabled by default. When enabled, you can select a notification channel (None, Feishu, or Discord), limited to channels currently enabled and configured on the Host. When a scheduled task fails, a short alert can be sent to the verified owner’s DM, never to arbitrary chats; recipient resolution follows the current authorized channel binding, so normal /new or archived Session handovers generally require no reconfiguration. Other plugins can independently emit events like dsh/task-alert, with Channel Core handling selection and delivery; payloads do not contain private conversation content.
Installation & Activation¶
A DSH Host compatible with the peer services in package.json is required, along with credentials for the channels you wish to enable. A DSH restart is required after installing or updating the code. For reproducible installations, you can pin the installation to a specific Git commit.
dsh plugin --profile desktop add github:Kerberos255/dsh-channel-core
Replace desktop with the actual DSH profile name you are using.
Typical Usage¶
Following the README Quick start, the recommended sequence is:
- Open Settings → Plugins → Channels & Sessions.
- Fill in platform credentials and allowed users/channels in the Discord and/or Feishu tabs.
- Check the owner identification mode for each channel (automatic first DM claiming or manual selection).
- If you want to share the same live DSH session between Discord and Feishu, associate owner accounts as needed; if only sharing memory, Session sharing can be omitted.
- Send a test DM to confirm the binding workspace, Session, and progress output meet expectations.
After scheduled tasks or report generation, you can call channel_send within the Session to push results; if you need to write to conversation history, use the native DSH Schedule bound to the relevant Session. You can run npm test locally for regression testing without external dependencies; npm run test:host should be run in a configured DSH development environment for broader integration suites. The README explicitly states: CI passing does not prove real Discord, Feishu, or network authentication; bot delivery and UI interactions must be verified on your own Host.
Use Cases & Notes¶
Suitable for developers or teams already running agents on DSH who wish to interact with the same Harness session via Discord DMs or Feishu/Lark. This plugin aligns with Host native capabilities when you need cross-channel unified Sessions, native Ask User, streaming progress, or proactive messaging from schedulers/plugins to bound channels.
Security and Operations Boundaries (excerpted from README): Settings and channel files are saved locally in DSH; do not upload credentials, binding databases, or historical messages. Configuration can reference the repository’s config.example.json. The plugin runs with the current dsh process permissions; review the source code and the MIT license (see LICENSE) before installation. The DSH ecosystem emphasizes “Everything is a plugin”; community directories like SkillHub are independent sites and have no official affiliation with DeepSeek / High-Flyer.
Related projects by the same maintainer include dsh-status-cards, dsh-memory-dreaming, and dsh-lossless-context. These can be combined as needed but are not prerequisites for installing Channel Core.
Conclusion¶
Channel Core brings Discord and Feishu into a single DSH client plugin: integrating owner verification, optional shared Sessions, durable delivery, and native progress/Ask User. Directory page: skillhub.cn/plugins/Kerberos255/dsh-channel-core; Source code and full documentation: github.com/Kerberos255/dsh-channel-core.