Back to home@ztyhehe

unipet-dsh

DSH(DeepSeek Harness)→ UniPet 桌面宠物联动插件:监听 turn/tool/approval/agent 生命周期事件,把思考中、执行工具、等待审批、失败、待检视等状态实时推给本地桌宠气泡,宠物不在线时自动拉起

Stars
0
Language
JavaScript
Created
Aug 18, 2026
Updated
Aug 18, 2026
GitHub repo

Introduction

unipet-dsh

DSH(DeepSeek Harness)UniPet 桌面宠物联动插件:监听 DSH 的 agent / session 生命周期事件,把状态实时推送给本地 UniPet 宠物(HTTP API,默认 127.0.0.1:8768),让桌宠反映 AI 的干活状态。

✨ 状态映射

DSH 事件UniPet 状态气泡文案
turn/start(新轮次开始)runningThinking…
tool/call(工具调用前)runningEditing code / Running command / Searching / Delegating
approval/asked(权限询问)waitingWaiting for your approval
提问类工具(ask/question)waitingWaiting for your answer
tool/result 失败 / agent/errorfailedTask failed
agent/status idle(轮次结束)reviewDone - ready for review(8s 后自动复位)

📦 安装(标准 bundle 通道)

cd ~/.dsh && dsh plugin --profile web add git+https://github.com/ztyhehe/unipet-dsh.git

安装后重启 dsh web 即生效。

若 profile 的 cordis.patch.yml 里还留着旧的手工挂载行(name: './plugins/unipet-dsh/index.js'),请删除该条 insert,避免双实例重复推送。

卸载

cd ~/.dsh && dsh plugin --profile web remove unipet-dsh

⚙️ 配置(可选)

默认值即可使用;需要时在 profile 的 cordis.patch.yml 里覆盖插件 insert 的 config

默认说明
host127.0.0.1UniPet HTTP 地址
port8768UniPet HTTP 端口
sourcedsh事件来源标识(宠物侧区分多来源)
autoStarttrue宠物不在线时尝试 unipet start 拉起
ttl.{idle,running,waiting,failed,review}见源码各状态气泡存活毫秒数

🔒 说明

  • 纯 host 侧插件(无 client 半),仅访问本机回环地址,不外发任何数据
  • 与 UniPet 自身交互的工具不会回推状态,避免自激
  • 卸载时清理全部定时器

📄 许可

MIT