dsh-pet README

The project's README from github.com/PC2005-cloud/dsh-pet. As one markdown file: README.md.

dsh-pet 🐾

npm version npm monthly downloads total downloads release downloads stars license awesome dsh plugin repo size issues platform assets AtomGit 数据看板

一只住在 DeepSeek Harness 里的桌面宠物:待机呼吸、随机动作(打瞌睡、玩魔方、吃火锅……)、左右转向、屏幕漫游、点击 Q 弹、拖拽甩抛反弹、右键菜单点播——一百余个透明动画随时无缝衔接;还能跟随 DSH 会话事件切换工作状态动画、按档位播放余额动画 + 头顶气泡、碎碎念与对话聊天、窗口失焦时弹系统通知。可多开同屏,能脱离浏览器住上桌面(透明置顶小窗),也能自己添加全新宠物种类(pet pack)。

这不是一个普通插件,而是完整的三件套项目:

① 提示词(配方)    →  ② 素材生成链(引擎)  →  ③ 插件(成品)
AI 生成动画的配方     源视频 → 透明动画的管线    运行在 DSH 里的宠物

任何人 clone 本仓库,都可以从零生成自己的桌面宠物——换角色、换动作、换风格,全流程可复现。


快速开始(安装插件)

两种装法,任选一种:

不想装 DSH? Release 里提供 Windows x64 绿色包 dsh-pet-win-x64.zip,解压后双击 dsh-pet.exe 就能跑——那是独立模式,不依赖 DSH 环境。

装完重开 DSH(dsh web 用户则重启 dsh web)才生效——运行中的进程持有内存里的旧插件。宠物默认落在界面右上角。

前置要求、源码安装、独立模式的用法与打包、Electron 首次下载、装完会看到什么,见 INSTALL.md。

插件功能

只做桌宠本身,不碰 DSH 内核;能力就下面这些。

各项能力的详细说明见 FEATURES.md;配置(大小 / 位置 / 多开 / 物理 / 模型 / 人设 / 宠物种类)见 CONFIG.md。

🔌 对外接口(供其他插件调用)

桌宠不只自己玩,也对外开放两条调用通道,让别的插件或脚本能驱动它、读它的状态。

相关文件(HTTP 与 Cordis 各一套):

兼容性

运行效果

宠物实际运行在 DSH Web 界面中的样子:

dsh-pet 运行效果 1 dsh-pet 运行效果 2 dsh-pet 运行效果 3 dsh-pet 运行效果 4 dsh-pet 运行效果 5 dsh-pet 运行效果 6 dsh-pet 运行效果 7 dsh-pet 运行效果 8

效果预览

全部动画(640×360,插件实际播放用的资源)——GIF 预览存放于仓库 dsh-pet/assets/preview/(raw 直链渲染,文件名采用拼音便于跨平台);完整透明视频见插件包 dsh-pet/assets/webm/(VP9-alpha,唯一发布格式):

待机 / 转向

待机呼吸休闲 东张西望

移动

螃蟹走路 原地漂浮踏步 原地左转奔跑

小动作

悠闲哼歌 超大伸懒腰 原地敲击桌面互动 原地重力下蹲压缩 哈欠连天 原地小憩沉眠 女仆屈膝礼仪 被吓一跳 小幅度原地360度旋转展示 偷吃零食被抓住 用鲸鱼尾巴拍打地面 打瞌睡被惊醒 照镜子 整体换装试色 轻快记录 写代码 摇扇纳凉 晨间刷牙

玩耍

原地专心玩魔方 原地蹲下玩玩具汽车 鲸鱼吐泡泡特效 原地跳跃抓碎头顶物品 玩游戏气急败坏 玩水枪 小提琴演奏 蓝鲸现世 优雅女仆舞 轻快摇摆舞 可爱宅舞 吹气球 动物环绕 放风筝 拆礼物 变鸽子 扑克魔术 抽陀螺 吹笛子 蝴蝶蜜蜂环绕头顶开花 撸猫 凭空生花 骑木马 三球抛接 踢毽子 下五子棋 荡秋千

吃什么

吃白饭 大口吃零食 吃Token 吃早餐 吃午餐 吃晚餐 吃冰淇淋融化 吃大闸蟹 吃糖葫芦 吃长寿面 吃西瓜 涮火锅

时节

被落叶淹没 中秋赏月吃月饼 堆雪人 放烟花 吃粽子 吃年糕 吃青团 吃腊八粥 吃重阳糕 收红包 写福字 穿针乞巧 舞狮头 讨糖南瓜灯 插茱萸赏菊 放河灯 萌化小幽灵 装点圣诞树 放孔明灯 吃汤圆 吃饺子

文字

是啊,吃什么 深度思考碎碎念

点击回应

点击回应-开心跃动 点击回应-害羞惊讶 点击回应-傲娇生气 点击回应-挠痒咯咯笑 点击回应-元气挥手

拖拽

被鼠标拖拽悬空反馈

余额事件(按余额已用百分比分档,满格 → 告急 → 耗尽)

余额-钱袋满溢 余额-金袋叮当 余额-钱袋如常 余额-数金皱眉 余额-袋空如洗 余额-分文不剩

碎碎念说话动画(碎碎念 / 对话回复触发,随机抽 1 段)

碎碎念-擦桌碎碎念 碎碎念-发呆碎碎念 碎碎念-对屏碎碎念

工作状态动画(跟随 DSH 会话事件,六档:思考 / 工作 / 整理 / 等待 / 成功 / 出错)

工作状态-思考冒泡 工作状态-忙碌点按 工作状态-清点归档 工作状态-原地踱步张望 工作状态-雀跃庆祝 工作状态-垂头叹气冒汗

睡觉(右键「睡觉」或鼠标停上去按 S;睡着时点一下叫醒)

睡觉-开始 睡觉-循环 睡觉-起来

注:动画为透明背景;GIF 预览中透明部分显示为页面底色,实际 webm 播放为透明。

从零生成你自己的宠物

AI 提示词 → 绿幕视频 → 透明动画 → 插件,换角色、换动作、换风格,全流程可复现。

完整步骤见 MAKE-YOUR-OWN-PET.md(提示词配方、素材链、Safari 兼容、发布)。

项目结构

只列代码与发布相关目录;素材链的 video / scripts / step / pr 见 MAKE-YOUR-OWN-PET.md 的 ② 章节(gitignore 的本地目录不列):

├── README.md  INSTALL.md  FEATURES.md  MAKE-YOUR-OWN-PET.md  CONFIG.md  API.md  CORDIS.md  openapi.yaml   # 说明 / 安装 / 功能详解 / 宠物制作指南 / 配置 / HTTP 接口 / Cordis 服务 / OpenAPI 规范
├── prompts/           # ① 动画生成提示词配方(绿幕规范 + 按秒分解)
├── assets/            # 仓库展示用截图
├── tools/             # 开发工具:API 调试页、cordis-probe mock 服务商、DPI 探针
├── .github/workflows/ # CI:Safari/HEVC 转码流水线(macOS runner,手动触发 → 发布 assets-mov Release)
├── dsh-pet/           # ③ 插件(可独立 npm 发布)
│   ├── src/
│   │   ├── host/       # 宿主半侧:配置 / 路由 / 余额 / 工作状态
│   │   ├── client/     # 浏览器半侧:宠物渲染 / 动画链 / 设置页
│   │   ├── shared/     # 双端共用纯逻辑(物理 / 菜单 / 取数)
│   │   └── standalone/ # 独立模式 CLI(不依赖 DSH 直接跑桌宠)
│   ├── lib/            # 构建产物(npm run build 生成,不入库)
│   ├── runtime/        # 桌面模式运行壳(Electron 透明窗)
│   ├── assets/         # webm 动画 / preview GIF / 字体 / 图标 / config.jsonc 默认配置
│   └── scripts/        # 构建、发布与开发脚本
└── LICENSE             # MIT

相关项目

💬 反馈与发版节奏

欢迎提 issue 与 PR——bug、体验问题随时反馈。新功能请先开 issue 说明使用场景,确认后再动手,不要在确认前直接提交实现 PR。这个插件专注桌宠与 DSH 本身,偏离太远的需求一般不会做。动手前也请先翻一眼 提交记录,确认不是已经修掉的同款问题(有些问题可能已经在 main 上修好了,只是还没发版)。

许可

dsh-pet (PC2005-cloud/dsh-pet)

Searching Database…

What is this?dsh-pet is a transparent animated desktop pet plugin for DeepSeek Harness (DSH): it idles, naps, solves a Rubik's cube, codes, eats hot pot and more across 97 hand-drawn animations, with click/drag physics and an optional balance-display bubble.
Is this a standalone app or something I add to DSH?It's a plugin for the DSH agent harness, not a standalone app. It runs by default inside the DSH web interface, but can optionally break out into its own transparent, always-on-top Electron window per pet.
Do I need DSH already running to use this?Yes — dsh-pet is built on top of an existing DSH installation and was developed/tested against dsh 0.1.1-rc.2. For the optional desktop overlay it also needs Electron, which the plugin auto-downloads to ~/.dsh/electron/ if it isn't already installed.
Does the desktop overlay still work if DSH Desktop blocks plugin network requests?Yes — the desktop window talks to the host through its own process-pipe bridge instead of DSH's HTTP routes, so it isn't affected by newer DSH Desktop versions that gate plain HTTP requests from plugin subprocesses.
Does the desktop overlay work the same on Windows, macOS, and Linux?It's Electron-based so it runs cross-platform, but the window is deliberately never full-screen because a fullscreen transparent layered window triggers a black-screen bug in Windows' DWM compositor.
Can I create a totally custom pet species instead of the default one?Yes — the 'pet pack' system lets you add a new species with its own config file and animation folder under $DSHHOME/dsh-pet/pet/, and the project's built-in DIY material chain can even generate the custom animation set via AI video.
What does the balance display feature actually show?It polls your configured LLM provider (DeepSeek official or OpenCode Zen Go) and reflects account balance or quota usage as a six-tier pet animation plus a thought-bubble popup that auto-hides after 10 seconds.
How many animations does the pet ship with?97 hand-drawn, transparent VP9-alpha animations covering idle breathing, dozing, solving a Rubik's cube, coding, eating hot pot and more, chained seamlessly via weighted random selection.
Can I actually interact with the pet, or is it just decorative?You can click it for a bouncy squash reaction, drag-and-throw it with spring physics and screen-edge bouncing, or right-click for a cascading menu to trigger specific animations on demand.
Size
141.8 MB
Stars
6.5K
Age
3mo
Commits · 90 Days