DeepSeek Harness 插件

dsh-desktop-pet-fenyxhua

DeepSeek Harness desktop pet: an official-whale widget in the shell overlay showing live agent status and the API balance as a circular sea level(英文原文)

跳到安装方式

来源信息

GitHub 仓库
FenyxHuang/dsh-desktop-pet
最近更新
2026年8月16日
分类
工具与能力
GitHub stars
5
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/FenyxHuang/dsh-desktop-pet
插件名:dsh-desktop-pet-fenyxhua
作者:FenyxHuang

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

dsh-desktop-pet

A desktop pet for DeepSeek Harness: the official whale mark lives in the shell overlay, floats in a circular sea whose level mirrors your DeepSeek API balance, and reacts to your agent's every move.

![demo](docs/demo.gif)

Features

  • Live agent status — the whale rests, thinks, works, or cries () exactly as your agent does, with a status pill that shows the phase, the current tool, and elapsed time.
  • Balance as sea level — the circular sea around the whale fills to balance / balanceScale (¥100 = full by default), the surface is a scrolling wave with a slow tide, and the amount is printed on the water. Low balance also makes the whale droop and complain.
  • Interactive — click to pet it: a springy jump most of the time, or a rare (40%) charged dive with a 360° spin that lands with a big splash, a high rebound, a little hop, and a final tiny splash. Random chatter lines (zh/en) per state, floating hearts, rising bubbles while thinking, drag it anywhere, minimize to a dot.
  • Zero runtime dependencies — the bundle ships prebuilt; all @deepseek-ai/* services come from the harness itself, so installing needs no build step and no build authorization.

Install

Prerequisite: a DeepSeek Harness install (web profile recommended).

# GitHub direct install (prebuilt artifacts, no build authorization needed)
dsh plugin --profile web add github:FenyxHuang/dsh-desktop-pet

# or from a local checkout
dsh plugin --profile web add link:/path/to/dsh-desktop-pet

# or as a tarball
pnpm pack
dsh plugin --profile web add ./dsh-desktop-pet-0.1.0.tgz

Restart dsh after installing (bundle layers compose at startup). The whale appears in the bottom-right corner of the web UI.

Configuration

The bundle applies the cordis.patch.yml layer, which mounts two rows:

idpackageconfig
pet-statusdsh-desktop-petbalanceScale: 100 (the CNY amount at which the sea reads full; the sea level is balance / balanceScale, capped at 1)
ui-petdsh-desktop-pet

The host row reads your DeepSeek API key through the harness's normal credentials (DEEPSEEK_API_KEY) and refetches https://api.deepseek.com/user/balance at most every 15 seconds. Override any key in your own profile's cordis.patch.yml:

- update:
    - id: pet-status
      config:
        balanceScale: 500
        balanceRefetchMs: 60000

How it works

One npm package carries both halves, mirroring the official split packages:

  • Host half (lib/index.js) — a Cordis service (PetStatusService) that folds agent/status, tools/pre-execute, tools/result, and agent/error events into a per-session snapshot and serves it over a generated Typert Remote (petStatus.snapshot). The lib/typert.* artifacts are generated by @deepseek-ai/dsh-typert-generator and committed, so consumers install prebuilt code.
  • Browser half (lib/client.js) — a module-loader bundle that mounts its own Remote contribution, polls it once per second for the current session, and registers the shell-overlay widget. React, Cordis, and the platform modules stay external (the app provides them); everything else is inlined.

The package declares no runtime dependencies: the loader resolves @deepseek-ai/* names from the dsh install itself, which is the official plugin contract.

Development

The repo is a self-contained single package (TypeScript + tsdown). Building and testing require an enclosing DeepSeek Harness checkout (the tests alias @deepseek-ai/* to its source tree):

# from inside a harness checkout (e.g. <harness>/.dsh-build/dsh-desktop-pet)
pnpm install
pnpm run build          # tsc both faces + tsdown host bundle + browser bundle
pnpm run test           # 34 pass; the 7 jsdom widget tests need a supported Node (^22.19 || >=24)

Regenerate the Typert artifacts only when the Remote surface changes, by copying the output of the harness's own build for the equivalent package and re-patching the package name, or by running the official generator in a <workspace>/packages/* layout (its discovery requires that shape).

License

MIT — derived from the DeepSeek Harness codebase (MIT, © 2026 DeepSeek). The whale mark is DeepSeek's official brand artwork and is used for the widget's own display.