0QwQ0/dsh-discord-richpresence

dsh-plugin: push vague, user-configurable DSH interaction states to local Discord as Rich Presence

Project Overview项目介绍

dsh-discord-richpresence is a host-side background plugin for DeepSeek Harness that mirrors dsh's coarse-grained activity signals to your local Discord client's Rich Presence in real time. By default it pushes only customizable, vague status lines; enabling "rich mode" surfaces live data such as thinking step count, total tokens, and elapsed think time. Use it to surface your dsh collaboration state on your Discord profile. It requires a running Discord desktop client. Note: after uninstall, the discord-richpresence: block in settings.yaml must be removed manually.

dsh-discord-richpresence 是一个 DeepSeek Harness 宿主侧后台插件,将 dsh 的粗粒度活动信号实时映射到本地 Discord 客户端的 Rich Presence 上。默认只推送可自定义的模糊状态文案,开启"丰富模式"后可显示思考步数、token 累计、思考时长等实时数据。适合希望把 dsh 协作状态外显到 Discord 个人资料的用户;前提是本机已运行 Discord 桌面客户端。注意:卸载后 settings.yaml 中 discord-richpresence: 段需手动删除。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add https://github.com/0QwQ0/dsh-discord-richpresence/releases/latest/download/dsh-discord-richpresence.tgz

把 0QwQ0/dsh-discord-richpresence 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-discord-richpresence

English: README.en.md

一个 DeepSeek Harness 插件,将你与 dsh 的交互状态实时镜像到本地 Discord 客户端的 Rich Presence 上——而且只会推送模糊的、可自定义的状态文案。

这是一个宿主侧后台插件:无托盘图标、无界面、无窗口。安装后即注入到 dsh 的启动流程中,随 dsh 一起常驻运行。

它能做什么

插件监听运行中 dsh 的粗粒度活动信号:

dsh 信号 状态示例(默认)
用户消息进入 agent 收件箱 正在指挥大肥鱼干活 / 正在给大肥鱼喂 token
agent 正在运行(思考 / 流式输出) 正在与大肥鱼一起 Brainstorming / 正在听大肥鱼讲解 Project
模型工具正在执行 正在提交改动意见
创建了新会话 / 分支(分支对话) 正在创建大肥鱼记忆切片
无活动 大肥鱼待命

上面每一行都是插件配置(statuses)中可直接编辑的列表。插件只会把这些字符串原样发给 Discord。

丰富模式(可选)

默认情况下,插件只推送上面的模糊状态。在设置 → 通用设置 → Rich Presence 丰富状态里可以打开丰富模式。开启后,插件改为推送更智能、带实时数据的状态行:

实时数据 状态示例
你刚发送了消息 正在指导大肥鱼
agent 正在思考 大肥鱼正在思考 6/195
总输入 tokens 大肥鱼正在记笔记 38.7M
LLM 已思考时长 大肥鱼已经思考了 30m46s

丰富模式的状态是智能随机地从当前实时数据中挑选的——并不绑定某个特定时刻——并且每个状态在 Discord 上至少展示 8 秒。

数据始终关联你当前正在交互的会话:插件会跟踪你最后一条真实输入(source.kind === 'user')所在的会话,思考步数、token 数、思考时长都只从那个会话采集——子代理、后台会话、其他工作区的数据不会被混入。当你切换会话继续交互时,推送的数据会自动跟着切换。该开关运行时持久化在 discord-richpresence 设置命名空间中,无需在 patch 里配置。

隐私

插件绝不读取你的工作区内容。 它不会查看会话标题、消息正文、文件路径、工具输入输出或任何其他内容,只响应粗粒度的生命周期信号(agent/inbox/inserted、agent/status、agent/pre-step、tools/pre-execute、session/created、workflow/start),然后推送配置好的状态字符串(或上面那些只填入标量数据的丰富模板——不含任何内容)。即使保持默认列表,Discord 上也只会出现"正在指挥大肥鱼干活"这样的模糊状态。

环境要求

  • 本机运行着 Discord 桌面客户端(Rich Presence 走本地 Discord IPC 端点——Windows 上是命名管道,macOS/Linux 上是 unix socket,或回环 TCP)。
  • DeepSeek Harness 0.1.1-rc.1 及以上(已适配当前 npm latest 稳定版 0.1.5-rc.2 以及预览版 0.1.6-alpha.2,同时兼容更早的 0.1.1-rc.2)。

兼容的 Harness 版本

插件在运行时探测 Harness 提供的能力,无需按版本切换:

Harness 版本 设置注册路径 客户端 store
0.1.5+(含 latest 0.1.5-rc.2、0.1.6-alpha.2) ctx.settings.installSection(...) @deepseek-ai/dsh-client-store
0.1.1-rc.1 ~ 0.1.4 ctx.settings.register(...) @deepseek-ai/dsh-client-runtime/client
两者都不可用时 回退到组合配置值 内置最小 store 实现

插件在启动时自动探测当前 Harness 提供的 API,因此升级 Harness 后无需改动插件配置。如果你还在旧版 Harness 上(如 0.1.1-rc.2),插件同样工作;升级 Harness 后请按升级一节重启 dsh 并刷新页面。

Discord Application ID 已预置在插件中,无需任何配置——安装并重启后,状态就会自动出现在你的 Discord 个人资料上。

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-asc 下一个 Next dsh-inline-diff →