minybear/DeepSeek-Harness-Pet
DeepSeek Harness 的 Codex 风格桌面宠物插件
Project Overview项目介绍
This is a native client plugin built exclusively for DeepSeek Harness (DSH), recreating the desktop pet feature from OpenAI Codex’s desktop version. It adds a draggable animated floating pet to the bottom-right corner of DSH’s web GUI, and the pet’s animations update in real time based on the current DSH session’s agent running status. You can install it in one line via the DSH CLI from npm, a local checked out directory, or GitHub, and offline installations can be done manually with the included PowerShell script. After installation, you just need to restart dsh web and refresh the page to see the pet.
Once installed, the pet responds to every change in your DSH agent session: it plays a running animation when the agent is working, a waiting animation when it needs user input, and a failure animation when the agent hits an error. It also includes a Tamagotchi-style care system where hunger and happiness decay over real time, even when your browser is closed. You can click the pet to open a menu where you can feed it to restore hunger or play with it to restore happiness. The plugin is intended for DSH users who want to add a fun, lighthearted interactive element to their agent workflow.
This plugin is released under the open source MIT license, with a well-structured codebase that separates core pet logic into a standalone module testable on Node.js. It includes full unit tests to verify consistent behavior across all code components, and respects system level reduced motion settings, with a manual toggle for animation modes also available. You can adjust the pet’s display size and opacity, and all custom settings are saved persistently in your browser’s localStorage. It currently only supports the DSH web client, and relies on DSH’s shell.overlay interface to function properly.
这是一款专为 DeepSeek Harness(DSH)开发的原生客户端插件,复刻了 OpenAI Codex 桌面版的桌面宠物功能。它会在 DSH 的 Web 界面右下角添加一个可拖拽的浮动动画宠物,宠物的动作会根据当前 DSH 会话的 Agent 运行状态实时变化,提供和运行状态绑定的生动反馈。支持通过 DSH CLI 一键从 npm、本地源码目录或 GitHub 拉取安装,离线环境也可通过提供的 PowerShell 脚本手动安装,重启 DSH Web 刷新页面即可生效。
用户安装完成后,就能在 DSH 界面看到浮动宠物,它会根据 Agent 运行、等待输入、报错、完成任务、新建会话等不同状态切换对应动画,还自带养成系统,饱食度和心情值会随真实时间自然衰减,关闭浏览器也会继续计时,用户点击宠物即可弹出菜单进行喂食、玩耍互动。它面向所有喜欢给 DSH 添加趣味休闲功能的用户,支持一键切换多只内置宠物,还能导入符合 Codex 格式的自定义宠物包,满足个性化定制需求。
本插件遵循 MIT 开源许可,代码结构清晰,核心逻辑抽离为纯逻辑模块可单独在 Node 环境测试,自带完整单元测试保证功能一致性。它会遵循系统的减少动态设置,也支持手动切换动画模式,还可以调整宠物的显示尺寸和透明度,所有设置都会持久化保存在浏览器 localStorage 中。目前仅支持 DSH Web 客户端,需要依赖 DSH 的 shell.overlay 接口完成挂载使用。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:DeepSeek-Harness-Pet(minybear/DeepSeek-Harness-Pet)
仓库:https://github.com/minybear/DeepSeek-Harness-Pet
本站详情页:https://www.yhbd.top/plugins/minybear-deepseek-harness-pet/
本站登记:类型 client · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 7 · 最近提交 2026-08-18 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 7 stars - very few users, little community feedback星标只有 7,几乎没人在用,遇到问题缺少社区反馈
- Desktop client: installation downloads an executable - verify the publisher and checksums桌面客户端:安装会下载可执行文件,请核对发布者与校验和
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 @minybear/dsh-pet
把 minybear/DeepSeek-Harness-Pet 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
@minybear/dsh-pet
Codex 风格的「桌面宠物」DSH 客户端插件:在 DeepSeek Harness(DSH)Web GUI 里漂浮一只动画小宠物,由当前会话的 agent 运行状态实时驱动(工作 / 等待输入 / 报错 / 刚完成 / 待机)。
复刻对象:OpenAI Codex 桌面版的 Pets 功能。调研结论见
docs/Codex-Pet-能力分析.md与docs/复刻方案.md;与 Codex 官方能力的逐项对照见docs/差距分析.md;版本变更记录见CHANGELOG.md。
能力
漂浮宠物:注册进 DSH 的
shell.overlay槽(帧级浮动层,可点透,右下角常驻,可拖拽换位)。状态驱动:读当前会话状态并映射到 Codex 的 9 状态动画行;会话信号按 Codex
ambient.rs的存活期衰减(Running 3min / Failed 1h / Waiting 24h / Review 7d,超时回退 idle):DSH 信号 宠物状态(行) 状态标签 running === truerunning(7) Running pendingInteractionwaiting(6) Needs input lastAgentErrorfailed(5) Blocked running true→false边沿jumping(4) Done!(约 2.6s) completedreview(8) Ready 切换/打开会话 waving(3) Hi!(约 1.7s) 拖拽移动中 running-left/right(1/2,按方向) (无) 无活动 idle(0) (无) 减少动态:跟随系统
prefers-reduced-motion,或在设置里手动锁定「完整 / 减少动态」;减少动态时按 Codex 行为固定显示 idle 第一帧。交互:
- 点击 → 弹出菜单:🍗 喂食(
eat)、🎾 玩耍(play)、⚙ 设置。 - 拖拽 → 移动宠物位置(按拖动方向播放官方 running-left/right 行走动画,静止时为
drag姿态,位置持久化到 localStorage)。
- 点击 → 弹出菜单:🍗 喂食(
养成数值:🍖 饱食 / 😊 心情 0–100,随墙钟时间衰减(关掉浏览器也计时,约 8h / 6h 见底);喂食 +30 饱食、玩耍 +25 心情;菜单里有两条数值条,待机且某项 <20 时宠物会冒「🍖 饿了 / 🎾 想玩」提示。
多宠物:内置五只宠物——Dee(青绿)/ Amber(琥珀)/ Berry(莓紫)同模配色,以及灰鲸(DeepSeek Harness logo 造型)/ 蓝鲸(DeepSeek 官方 logo 造型,品牌蓝)两只侧视鲸鱼,设置面板一键切换。
自定义宠物导入:设置面板可导入标准 Codex 宠物包(
pet.json+ 图集图片,如~/.codex/pets/下 hatch-pet 生成的宠物),校验后存入 localStorage 并立即可选;可删除。无额外交互行的官方 9 行图集会自动回退(交互态播放 idle 行)。外观设置:尺寸(0.5–1.5)、透明度(0.2–1)、动画模式、宠物选择,全部持久化到
localStorage。Codex 兼容包格式:宠物由
pet.json(id/displayName/description/spritesheetPath/frame/animations)+ 一张行优先图集(无独立 atlas 文件,帧索引index = row×columns + col)描述;内置默认宠物在运行时用 canvas 生成。前 9 行为 Codex V1 官方 9 状态,第 9–11 行为交互状态(eat/play/drag),经官方frame覆写(96×104×8×12)与animations字段声明。
结构
lib/pet-core.js 纯逻辑(Node 可测):pet.json 解析 + 帧切片 + 状态机 + 状态存活期
lib/index.js host 侧 apply(空,纯 UI 插件)
lib/client.js 浏览器侧:window.__ModuleLoader__.load + apply/inject + PetOverlay + 精灵生成
test/*.test.mjs Node 单测(pet-core + client 契约 + 双副本一致性)
docs/ 调研、方案与差距分析
注:
client.js内联了一份 pet-core(DSH 模块加载器无法解析包内文件),test/parity.test.mjs会对两份副本做全量行为一致性校验,防止分叉。
测试
npm test # 依次跑 pet-core / client-contract / parity
node scripts/render-atlas.mjs --all # 软渲染三只内置宠物图集并自检网格不变量
安装到 DSH
# 从 npm(发布后)
dsh plugin --profile web add @minybear/dsh-pet
# 或一条命令装本地 checkout(包自带 dsh.bundle.patch 自注册)
dsh plugin --profile web add .
# 或从 GitHub
dsh plugin --profile web add github:minybear/DeepSeek-Harness-Pet
然后重启 dsh web 并刷新页面,宠物应出现在右下角。离线环境或无需 pnpm 时,用 deploy\install.ps1 手动装;完整步骤见 INSTALL.md。
注:客户端插件需宿主端打包(
dsh.client.inject)与重启后生效。
MemTensor/memmy-agent
OpenPetsHQ/openpets
QCYTSN/dsh-dafeiyu
vlln/whale-girl
ChisaAlter/WhaleIsle
Sutera-Diffusus/dsh-whale-musume
Yi-111-a/dsh-jingling
xiaoshihou514/dsh-desktop-pet