Oliver0804/dsh-discord-bot ↗★ 2
dsh-discord-bot
Map dsh workspaces onto Discord — watch every session live, drive and steer agents, and reach the harness's own commands from anywhere, with no inbound port. 适合需要通过 Discord 远程监控、引导 Agent 运行的团队或个人。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Oliver0804/dsh-discord-botREADME
Read the full README ↗Configuration
| Key | Default | Meaning |
|---|---|---|
guildId | required | The one guild this bot serves. Interactions elsewhere are ignored. |
token | — | Bot token inline. Prefer tokenFile. |
tokenFile | — | File whose first non-comment line holds the token. |
categoryName | dsh | Category that holds the workspace channels. |
allowedUserIds | [] | Discord user ids allowed to query. Empty means the guild owner alone. |
manageChannels | true | Whether the bot may create and rename the category and channels. |
privateChannels | true | Deny @everyone and grant only the bot and allowedUserIds. |
allowRun | false | Enable /dsh run. Grants the allowlist agent execution on this machine. |
listenToMessages | off | off / mention / all — treat channel messages as prompts. Needs allowRun and the Message Content intent. |
runVerbosity | minimal | minimal shows the answer; full streams the whole transcript. |
language | auto | auto / en / zh-Hant / zh-Hans — the language replies are written in. |
mirror | false | Post every turn the harness runs into its workspace's channel, whoever started it. Exports session content continuously. |
mirrorSubagents | false | Include subagent sessions in the mirror. One turn can fan out to a dozen. |
mirrorNewSessions | true | Announce a newly created session in its channel. Only applies while mirror is on. |
mirrorApprovals | false | Answer approval questions for sessions this bot did not start. A web-side user then waits out the card's two minutes. |
sessionThreads | false | Give each session its own thread under the workspace channel, instead of interleaving every session's turns in one. Inside the thread, turns are posted as independent messages (prompt, each assistant reply, done), not one rewritten card, so the thread reads like a scrollable conversation. Also removes the guesswork from targeting: a command or a message typed inside a thread acts on that session, however many others are live. |
sessionThreadsBackfill | 5 | How many of each workspace's most recent sessions get a thread up front, each opening onto a card with what it was last doing. 0 waits for a session to say something first. Needs mirror, since the card quotes the conversation. |
answerQuestions | false | Answer ask_user_question from Discord. Claims the seam where it is free; where a UI owns it, mirrors the gateway's questions instead so both surfaces can answer and the first one wins. |
followNewWorkspaces | true | Create a channel when a session appears for an unmapped workspace. |
traceLimit | 25 | Default entries per /dsh trace — also the default per /dsh timeline. |
sessionLimit | 15 | Default sessions per /dsh sessions. |
retrySeconds | 30 | Delay between Discord login retries. |
The token may also come from DSH_DISCORD_BOT_TOKEN or DISCORD_BOT_TOKEN. Precedence is
token → tokenFile → environment.