返回目录

dsh-discord

精选清单收录维护状态: 活跃

addozhang/dsh-discord

以 Discord 为先的 DSH 适配器:在 Discord 服务器中管理会话、流式输出、审批与控制。

前往 GitHub
$ dsh plugin add dsh-discord

安装

dsh 没有统一的安装命令——把该插件 README 中的配置行加入你的 profile/patch 配置,然后重启即可。

了解安装方式

9

星标

3

Fork

TypeScript

语言

MIT

许可证

2026-08-30

创建于

2026-11-20

最近推送

README

@addozhang/dsh-discord

English | 中文

npm CI license node dshfind

A Discord-first adapter for DeepSeek Harness: run DSH sessions from your Discord guild — mention the bot with a task, a thread opens, the answer streams in, and approvals and questions arrive as buttons you can answer from your phone.

No extra process: the adapter is a DSH plugin that mounts straight onto your dsh web profile. Session state stays in DSH; durable bindings live in the profile's storage domain.

One task lifecycle: the @mention anchors a thread, tool activity rows stream while the answer edits in place, and the final answer lands as Markdown tables

Features

  • Mention-driven sessions — an authorized @bot <task> in a bound channel anchors a thread (your message becomes the first post), creates the DSH session, and submits the prompt at most once. Follow-ups inside the thread queue without a mention. Attached images ride along: they are downloaded from the Discord CDN within strict size/host bounds and submitted as image parts for multimodal models. Text-capable files (text/* plus JSON, XML, YAML, NDJSON, JS/TS, SQL, GraphQL and TOML) ride along as labelled text parts — a file-only message starts a real turn instead of being silently dropped; unsupported binary attachments get a visible notice.
  • Stream rendering — typing indicator, one head message edited in place, per-tool activity rows, fenced long-answer splitting, one-time finalize; the activity message is deleted when the turn ends.
  • Approvals & questions (dual surface) — DSH asks become buttons, select menus, and a free-text modal, mirrored to the web/desktop panel at the same time: the first surface to answer wins and the other auto-retires (Discord carries the ask alone when no web client is connected). Ownership is enforced (the asker — or the thread owner on later turns — clicks), expiry sweeps fail closed, and settled controls grey out in place.
  • Session control — /steer, /stop, and /queue list|remove authorized by the thread binding (the shared control surface); /project bind|list|info and /session resume for guild↔workspace binding and history; /guild forget for operator cleanup.
  • Model selection — /model show reads the session's live model directory; /model select walks an interactive provider → model → reasoning cascade, or applies a typed provider/model directly. Open to any authorized member by default; restrictable to Host operators.
  • Adapter status — /info shows the adapter version, connection state, and project links (feedback, docs). Works in any channel.
  • Permission switching — /permission show / set read and switch the session's permission preset (bundled sandbox + approval tiers) through the Host's own /permission command path, inheriting its journal audit pair; danger-full-access requires a button confirmation.
  • Settings card, bilingual out of the box — token onboarding and connect/disconnect (stored in the Host credential service, never in settings or logs), guild allowlist, auto-archive, and language. Every Discord-visible string ships in Chinese and English; the bot follows the DSH language preference or a pinned choice.
  • Hardened by design — deny-first authorization inside an explicit guild allowlist. Mentions are suppressed twice: allowed_mentions on every request, plus byte-level neutralization of the wire body. DSH submission is at-most-once with unknown-preserving reconciliation — an ambiguous delivery is never blindly resent. Bindings survive restarts, and the READY sweep rebuilds deleted category/control channels while treating a deleted workspace channel as user intent (the mapping retires; the workspace stays bindable).

Requirements

  • The dsh CLI, running a web profile. Match the dsh and adapter channels — see Versions.
  • Node.js ^22.19.0 || >=24
  • A Discord application with a bot user and the MESSAGE CONTENT privileged intent enabled (Developer Portal → your application → Bot → Privileged Gateway Intents)

Versions

Each adapter release follows the dsh host surface it was actually verified against. Pick the adapter and the dsh CLI from the same row:

Channel Adapter dsh CLI Install
stable (0.2.2 line) 0.6.10 — npm latest 0.2.2-rc.5 — npm latest / next dsh plugin --profile web add @addozhang/dsh-discord
prerelease (0.2.2 line) npm next still holds 0.6.5-rc.1, which 0.6.10 supersedes — pin an exact version when you need a prerelease 0.2.2-rc.5 — npm latest / next dsh plugin --profile web add @addozhang/dsh-discord@0.6.5-rc.1
Legacy (0.1.7 line) 0.5.0 — exact version 0.1.7-rc.1 — exact version dsh plugin --profile web add @addozhang/dsh-discord@0.5.0

在 GitHub 阅读完整 README →

DSH Plugins 是独立的 DeepSeek Harness 插件目录,与 DeepSeek 官方无关,也不代表官方背书。第三方插件未经安全审计,安装前请审查源码。

每周获取最新的 DeepSeek Harness 插件,绝不滥发。