dsh-discord
キュレーションリスト掲載メンテナンス: 活発addozhang/dsh-discord
Discord向けのDeepSeek Harnessアダプター。Discordサーバー上でセッション・ストリーミング・承認を管理。
$ dsh plugin add dsh-discord9
スター
3
フォーク
TypeScript
言語
MIT
ライセンス
2026-08-30
作成日
2026-11-20
最終プッシュ
README
@addozhang/dsh-discord
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.
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|removeauthorized by the thread binding (the shared control surface);/project bind|list|infoand/session resumefor guild↔workspace binding and history;/guild forgetfor operator cleanup. - Model selection —
/model showreads the session's live model directory;/model selectwalks an interactive provider → model → reasoning cascade, or applies a typedprovider/modeldirectly. Open to any authorized member by default; restrictable to Host operators. - Adapter status —
/infoshows the adapter version, connection state, and project links (feedback, docs). Works in any channel. - Permission switching —
/permission show/setread and switch the session's permission preset (bundled sandbox + approval tiers) through the Host's own/permissioncommand path, inheriting its journal audit pair;danger-full-accessrequires 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_mentionson 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 |
連携・共有 の他のプラグイン
dsh-notification
by omdsh-dev
DeepSeek Harness ターン完了のデスクトップ通知。結果別制御とキーワード include/exclude
dsh-lark-bot
by plutokeating
dsh-lark-bot:Feishu/Lark 桥接。流式カード、ワークスペース、並行タスク、多役 Agent、跨セッション通知、安全网
dsh-session-notification
by dingyi222666
セッション完了など4種の状態変化をブラウザ通知とカスタム通知音で知らせる dsh プラグイン
dsh-chatgpt-web
by wlv-zedd
標準のChatGPT WebをDeepSeek Harnessへ直接接続するChatGPT Freeブリッジです。
