将 DeepSeek Harness 的生命周期状态、错误与审批请求,桥接到本地运行的 OpenPets 桌面伙伴。
安装
# npm 包(预构建)
dsh plugin --profile web add @open-pets/dsh
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:OpenPetsHQ/openpets#path:/packages/dsh
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
该插件的 README 只有英文版本。
Cordis plugin connecting the DeepSeek Harness (DSH) agent runtime directly to the OpenPets desktop companion.
Features
- Lifecycle Reactions: Synchronizes DSH agent status (
running⇄idle), errors, and approval requests with companion emotions. - Status Stream Awareness: Extracts
⏵status lines from assistant stream chunks and displays them in companion speech bubbles. - Tool Operation Reactions: Maps
bashexecutions (running),edit/writeoperations (editing), andreadoperations (working). - Toggleable Configuration: Enable or disable per profile or dynamically via Cordis plugin configuration.
- Safe & Fail-safe: Automatically sanitizes paths and messages, strips URLs/secrets, throttles speech rate, and isolates IPC failures so the agent loop never stalls.
Installation
Add to your DSH profile or user configuration (~/.dsh/cordis.patch.yml):
- insert:
- id: plugin-openpets-dsh
name: '@open-pets/dsh'
disabled: false
config:
enabled: true
minSpeechIntervalMs: 1200
enableStatusLineStream: true
enableToolEvents: true
enableApprovalEvents: true
Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
enabled |
boolean |
true |
Master switch to enable or disable listener registration. |
minSpeechIntervalMs |
number |
1200 |
Minimum interval (in ms) between speech bubble notifications. |
enableStatusLineStream |
boolean |
true |
Forward ⏵ status lines from assistant stream chunks. |
enableToolEvents |
boolean |
true |
React to tool executions (bash, edit, write, read). |
enableApprovalEvents |
boolean |
true |
Announce when an approval request is waiting for human permission. |
Event Mappings
| DSH Event | OpenPets Reaction | Speech Behavior |
|---|---|---|
agent/status: running |
thinking |
Curated thinking speech |
agent/status: idle |
success |
Curated success speech (suppressed for 5s after errors) |
agent/error |
error |
Curated error speech |
approval/request |
waiting |
Curated permission speech |
agent/assistant-stream |
working |
Sanitized ⏵ status line |
tools/result (bash) |
running |
Sanitized tool description |
tools/result (edit/write) |
editing |
Sanitized file action |
tools/result (read) |
working |
Sanitized read action |
License
MIT
链接
同类插件
xmanrui/dsh-im★ 3961
通过二维码或机器人凭据将 IM 机器人接入 DeepSeek Harness(支持飞书、微信、钉钉、企业微信、QQ、Slack、Telegram、Discord 和 WhatsApp 共 9 种渠道)。
shaobeichen/dsh-pocket★ 3237
手机远程访问 DSH Web 界面:扫码即用局域网或公网(cloudflared 隧道)访问,实时同屏、移动端适配布局,带设置页管理。
c1overzz/dsh-bili-scroll★ 1498
让你的 DSH 自己刷 B站 —— 读字幕原文挑内容、写日报,遇到值得看的会发评论 @ 你。
inclusionAI/Avernet#deepseek-harness-channel-bcn★ 613
通过 WebSocket V2 将 DeepSeek Harness 接入 Avernet Bot 协作网络,支持自动注册、Agent 会话隔离、工具调用事件和多 Bot 路由工具。
zaofan-make/dsh-qqbot★ 290
QQ 官方机器人通道(tencent-connect/dsh-qqbot 的增强 fork):群/私聊ai陪聊、富媒体收发、表情包打标入库+检索发图、入群审批/禁言/群发、定时唤醒、QQ 远程审批与提问卡、互动按钮卡、多账号多实例、扩展接口、群友记忆注入、按消息价值唤醒省token、上下文自动压缩、悬浮球设置面板。
Yuuyuko-uu/dsh-qq-link★ 193
通过 NapCat HTTP 把 DSH 会话和 QQ 双向打通:AI 说完自动发到 QQ,你在 QQ 里说的话自动转进会话。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。