skr311/dsh-codex-pet 预览 preview

skr311/dsh-codex-pet

Desktop桌面端 ⭐ 5 MIT Pets & Fun桌宠与娱乐

dsh-codex-pet · DSH 桌面宠物插件 — 导入精灵图序列帧宠物,悬浮浮层渲染 + Agent 状态联动

Project Overview项目介绍

dsh-codex-pet is a native pet plugin built specifically for DeepSeek Harness (DSH). It allows users to import and upload Codex-style sprite sequence frame pets, which are rendered via a floating overlay layer directly on the DSH Web GUI. Core features include built-in pet gallery management, basic user interaction, and automatic linkage to DSH Agent working status. All styling follows DSH’s --dsw-* theme tokens, so the plugin automatically adapts to both light and dark DSH interface themes. There are two common installation methods: the recommended way is using pnpm to run dsh plugin --profile web add dsh-codex-pet, or users can clone the public GitHub repository and install the plugin from local source code.

After installation, you will need to restart the DSH Web GUI to activate the plugin, then navigate to the settings menu in DSH to access the pet gallery page. From there, you can upload a local zip package of your pet sprite, or import a pet directly from a public URL. Once you select the pet you want and click the enable button, the pet will appear in the lower left corner of the DSH interface, pinned next to the sidebar. You can drag the pet anywhere on the screen, and its position will be saved automatically when you release it. Clicking the pet triggers a custom waving animation.

The plugin links pet animations directly to DSH Agent working status, so the pet changes its animation automatically based on what the Agent is doing. When the Agent is actively running a task, the pet will display a running animation continuously. When the Agent is waiting for user approval or input, the pet will show a waiting idle animation. When a task completes successfully, the pet plays a short celebration animation, and if a task fails, it shows a dejected animation. The plugin is released under the open source MIT license, and does not include any copyrighted sample pet sprites in the repository. Local development can be done with zero external dependencies, relying only on Node and a vendored copy of fflate.

dsh-codex-pet 是一款专为 DeepSeek Harness(DSH)打造的原生桌面宠物插件,支持用户导入、上传 Codex 风格的精灵图序列帧宠物,在 DSH 的 Web GUI 中通过 shell.overlay 悬浮浮层渲染展示。插件自带图库管理、基础交互、DSH Agent 状态联动等核心功能,全部样式遵循 DSH 主题令牌,自动适配 DSH 深浅主题。安装方式推荐使用 pnpm 执行 dsh plugin --profile web add dsh-codex-pet,也可从 GitHub 克隆源码本地安装。

安装完成后需要重启 DSH Web GUI,之后打开 DSH 的设置页面进入宠物图库,即可上传本地 zip 压缩包或通过 URL 导入宠物,选中喜欢的宠物点击启用即可开始使用。启用后宠物会常驻在界面左下角,紧贴侧边栏,用户可拖拽调整位置,松手后位置自动保存,点击宠物还会触发挥手动作。

插件支持将宠物动画与 DSH Agent 的工作状态联动:Agent 工作时宠物持续跑动,等待用户审批时显示待机,任务完成触发得意动作,任务失败则显示沮丧。项目采用 MIT 开源许可,仓库不附带带版权的示例精灵图,支持零第三方依赖进行本地开发测试。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 3 warnings3 项注意
  • Only 5 stars - very few users, little community feedback星标只有 5,几乎没人在用,遇到问题缺少社区反馈
  • No DSH plugin manifest detected - it may only carry the dsh-plugin topic, so the install method must be confirmed on the spot未检测到 DSH 插件清单:可能只是打了 dsh-plugin 话题,安装方式要现场确认
  • 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 dsh-codex-pet

把 skr311/dsh-codex-pet 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

English · 简体中文

dsh-codex-pet

DeepSeek Harness(DSH)桌面宠物插件:导入/上传 codex 风格的精灵图序列帧宠物,在 DSH Web GUI 以 shell.overlay 悬浮浮层渲染,含图库管理、基础交互与 Agent 状态联动。

Awesome DSH Plugin npm downloads License: MIT

📸 预览

✨ 核心特性

  • 序列帧播放:单 WebP 精灵图(格式 A),逐帧毫秒时长,行=动画(idle / running / waiting / review / failed / 移动 / 挥手 / 跳跃)。
  • 悬浮浮层交互:左下角常驻(贴着侧边栏),可拖拽(视口钳制 + 位置持久化)、点击挥手、空闲随机小动作。
  • 图库管理:设置 → 宠物图库——zip 上传 / URL 导入 / 启用 / 停用 / 删除 / 首帧预览。
  • Agent 状态联动:订阅 DSH 会话状态——工作中→跑动(常驻);审批/提问→等待(脉冲一次);任务完成→得意(脉冲一次);任务失败→沮丧(脉冲一次)。
  • 深/浅主题:全部样式走 --dsw-* 主题令牌,自动适配 DSH 主题。

🎮 操作指南

  1. 打开 DSH Web GUI(默认 http://127.0.0.1:3080)。
  2. 设置 → 宠物图库 → 上传/导入宠物 zip(或从 URL 导入)→ 点「启用」。
  3. 左下角出现宠物浮层(贴着侧边栏):
    • 拖拽:按住移动,松手后位置自动保存。
    • 点击:宠物挥手。
    • Agent 联动:Agent 干活时宠物跑动;等你确认/回答时发呆一次;任务完成得意一次;失败沮丧一次。
  4. 想隐藏宠物:图库页点「停用宠物」。

📦 安装

方式一:pnpm(推荐)

dsh plugin --profile web add dsh-codex-pet

方式二:GitHub clone

git clone https://github.com/skr311/dsh-codex-pet.git
cd dsh-codex-pet
dsh plugin --profile web add ./packages/dsh-codex-pet

安装后重启 DSH Web GUI(宿主半改动需重启;客户端 bundle 改完热更免重启),再刷新页面。

✅ 兼容性

  • Node.js:>=20
  • 已确认兼容的 DSH 版本:0.1.5-rc.2
  • 其他 DSH 版本的精确兼容状态见 package.json 中的 dsh.compatibility.dshReleases。

🛠️ 开发

  • 项目结构:packages/dsh-codex-pet/(宿主半 lib/index.js + pet-library.js;客户端半 lib/client.js;vendored lib/vendor/fflate.mjs)。

  • 测试(零依赖,纯 Node + vendored fflate):

    node scripts/test-m2.js
    node scripts/test-m2-routes.js
    
  • 开发流程:客户端 bundle 改完 HMR 热更、免重启;宿主半改动需重启 DSH Web GUI。开发规范见 docs/development-spec.md,工作指引见 AGENTS.md。

  • 参与贡献:见 CONTRIBUTING.md。

📚 文档

License

MIT

← 上一个 Prev dsh-xiaohei 下一个 Next mozi-forge →