Back to directory

dsh-closure-pet

In a curated listMaintenance: Active

fengshiyangrouguan/dsh-closure-pet

Puts an animated desktop pet in the DSH overlay that reacts to agent state and shows account balance and today's spend.

View on GitHub
$ npm run build:client

24

stars

2

forks

JavaScript

Language

NOASSERTION

License

2026-11-17

Created

2026-11-23

Last push

An Arknights Closure desktop pet for the DSH overlay: WebM VP9-Alpha clips switch with agent state, while a pixel bubble reports account balance, today's spend and peak/valley pricing. Code is MIT, but the character art and audio are personal-use only.

DSH integration

Native runtime

Author-claimed

Safety audit

Unaudited

Last verified

2026-11-24

License

MIT

01What can it help you accomplish?

  • Read the agent's state with peripheral vision instead of the transcript

    Closure clips in three base states — `idle`, `sad`, `think` — with separate loop / enter / exit slots; sad and think come in forward via `Sad_Begin` / `Think_Begin` and leave in reverse, always routing through idle.

    People who leave DSH running on long tasks and only want a glance-level progress cue

  • Keep account balance and today's spend in sight

    A pixel bubble carrying balance, today's spend and the current peak/valley price, fed by `assistant/message` usage and a balance poll every 60 seconds.

    Users billed per token who want a running cost reminder without opening a dashboard

  • Give the pet lines, in text and in voice

    Editable dialogue pools for the three idle states plus per-event pools, and pre-generated Chinese/Japanese OGG voices mapped back to the Chinese scripts through `manifest.json`.

    Fans of the character who want speech and voice, not just a moving sprite

02How to install into DeepSeek Harness

Prerequisites

  • DeepSeek Harness with the plugin loader — this is a DSH client bundle served from `/plugins/dsh-closure-pet/client.js` and cannot run on its own
  • A browser that decodes the shipped `888×748` WebM VP9-Alpha videos directly, without per-frame redraw or WebGPU
  • If you want the balance and spend bubble: DSH must be able to answer `/state` and emit `assistant/message` usage data

Installation steps

  1. 01

    In DSH open Plugins → Add plugin and paste `https://github.com/fengshiyangrouguan/dsh-closure-pet`

  2. 02

    Or edit the profile's `package.json`: add `dsh-closure-pet` to `dependencies` and write the name into `dsh.profile.bundles`

  3. 03

    For local development point the dependency at a folder with `link:<local-path>/dsh-closure-pet`, still listed in `dsh.profile.bundles`

  4. 04

    After editing `assets/src/**` run `npm run build:client` and refresh with `Ctrl+R`; restart DSH after changing `cordis.patch.yml`

    $ npm run build:client

  5. 05

    Use the right-click panel on the pet for display and audio, and DSH settings → Closure Pet for thresholds and dialogue pools

Verify the integration

  • Enabling or disabling the plugin normally needs no full page reload; after front-end source edits rebuild with `npm run build:client` first, and after `cordis.patch.yml` edits restart DSH.

Rollback

  • Disable the plugin in the plugin manager — the client bundle unloads with it; restart DSH if you also changed host code
  • Remove `dsh-closure-pet` from the profile's `dependencies` and from `dsh.profile.bundles`
  • Delete `$DSH_HOME/.dshcl.json` by hand if you want the settings and today's spend record gone too

03DSH integration and capability boundaries

DSH integrationNative runtime

Native DSH plugin shipped as a Cordis bundle: add the repo under Plugins → Add plugin, or list `dsh-closure-pet` in `dsh.profile.bundles`; DSH itself serves the client bundle from `/plugins/dsh-closure-pet/client.js` and the pet renders in the interface overlay.

  • Animation state machine

    DSH agent events and tool results→Transparent WebM clips for idle / sad / think, entered forward and left in reverse, with cross-state transitions retimed and the current loop finishing before idle is left

  • Event subscription and notice queue

    `agent/assistant-stream`, `tools/result`, `agent/error`, `agent/status`, `session/event` and a balance poll every 60 seconds→Each event binds one or several clips (picked at random) and assembles bubble text through a `notice` instance

    Polls the host for account balance every 60 seconds
  • Billing and peak/valley pricing

    `usage` on each `assistant/message`→Per-message cost plus the day's running total, priced by Beijing-time peak (weekday `09:00–12:00`, `14:00–18:00`) and valley windows

    Persists the day's spend and settings to `$DSH_HOME/.dshcl.json`
  • Voice and editable dialogue pools

    Dialogue pools and the voice switch in the DSH settings page→Bubble lines from the pool matching the current base state, played with pre-generated OGG voice files

    With voice on, a bubble stays for voice length + 2 seconds
  • Right-click panel and drag guard

    Right-click, or press and drag on the pet→Mirror, size, snap strength, bubble toggle and size, tiered typography, opacity, sound effects and voice language/volume

    While dragging, pointer, mouse, selection and drag starts are captured and a shield layer covers the page

04Who is it for? When not to use it?

Good for

  • People who leave DSH running on long tasks and only want a glance-level progress cue
  • Users billed per token who want a running cost reminder without opening a dashboard
  • Fans of the character who want speech and voice, not just a moving sprite

Not for

  • The pet is a client bundle that DSH serves from `/plugins/dsh-closure-pet/client.js`, so it cannot run standalone; changing `cordis.patch.yml` requires a DSH restart, and front-end sources must be rebuilt with `npm run build:client` before they show up.
  • Balance and today's spend come entirely from DSH-side data — `assistant/message` usage and a 60-second balance poll — and the per-million-token price table is hard-coded in `lib/index.js`, so price changes have to be patched by hand.
  • MIT covers the code and the hand-made transparent animations only: character imagery comes from Arknights screenshots and sound effects from in-game audio, which are for personal, local entertainment and need a rights check before any redistribution; the Ark Pixel font follows SIL OFL 1.1.

05Compatibility, maintenance and safety notes

  • The pet is a client bundle that DSH serves from `/plugins/dsh-closure-pet/client.js`, so it cannot run standalone; changing `cordis.patch.yml` requires a DSH restart, and front-end sources must be rebuilt with `npm run build:client` before they show up.
  • Balance and today's spend come entirely from DSH-side data — `assistant/message` usage and a 60-second balance poll — and the per-million-token price table is hard-coded in `lib/index.js`, so price changes have to be patched by hand.
  • Peak/valley detection runs on Beijing time and reads a holiday table (`HOLIDAY_RANGES` in `lib/index.js`) that currently covers 2026 and provisional 2027 dates; years outside it fall back to weekday/weekend maths and `/state` sets `holidaysOutdated` to true.
  • MIT covers the code and the hand-made transparent animations only: character imagery comes from Arknights screenshots and sound effects from in-game audio, which are for personal, local entertainment and need a rights check before any redistribution; the Ark Pixel font follows SIL OFL 1.1.
  • The pet itself is a `888×748` WebM VP9-Alpha video the browser decodes directly, with pre-generated OGG voices and Opus 56k sound effects, so replacement assets have to keep those formats.
  • Both settings surfaces and the day's spend are written to `$DSH_HOME/.dshcl.json`; uninstalling does not remove it, so the file has to be deleted by hand to clear the records.
2026-11-172026-11-22v3.1.1

MIT (stated in README) · actively maintained (latest release v3.1.1, 2026-11-23) · character art and SFX are personal-use only, Ark Pixel font under SIL OFL 1.1

06Frequently asked questions

How do I install Closure Pet in DeepSeek Harness?

Open Plugins → Add plugin in DSH and paste `https://github.com/fengshiyangrouguan/dsh-closure-pet`, or add `dsh-closure-pet` to the profile's `dependencies` and write the name into `dsh.profile.bundles`. The client bundle is served from `/plugins/dsh-closure-pet/client.js`, so it only works inside DSH.

What actually shows up after the plugin loads?

A Closure pet over the interface in one of three base states — `idle`, `sad`, `think` — driven by `agent/assistant-stream`, `tools/result`, `agent/error`, `agent/status` and `session/event`, plus a pixel bubble that can carry the balance, today's spend, the peak/valley price and a random line.

Where do the balance and today's spend numbers come from?

The plugin listens on `assistant/message`, prices every message from its `usage` against the peak/valley table baked into `lib/index.js`, and polls the account balance every 60 seconds. If the published rates change you must edit `lib/index.js` yourself.

Can I redistribute the character art and voice files?

Code and the hand-made transparent animations are MIT, but the character images come from Arknights screenshots and the sound effects from in-game audio, so they are for personal, local entertainment only — confirm the rights yourself before redistributing. The Ark Pixel font follows SIL OFL 1.1.

How do I remove it completely?

Disable the plugin in the plugin manager, drop `dsh-closure-pet` from the profile's `dependencies` and `dsh.profile.bundles`, and delete `$DSH_HOME/.dshcl.json` if you also want the settings and today's spend record cleared.

08Data and sources

  • Author-claimedgithub.com91a9141ed697…

    给 DeepSeek Harness 界面加一只可露希尔桌宠:透明视频动作切换、像素风格气泡、实时计费与余额提醒,以及可编辑的台词与语音。

  • Author-claimedgithub.com91a9141ed697…

    客户端 bundle 由 DSH 通过 `/plugins/dsh-closure-pet/client.js` 提供

This page is generated from the project’s public documentation, repository metadata and a structured parse of DSH Plugins; last verified on 2026-11-24. Found an error? Submit a correction.

🏆

Best DeepSeek Harness Plugins

Twelve plugins worth installing first — picked from the whole catalog, across every category.

DSH Plugins is an independent community directory of DeepSeek Harness plugins. Not affiliated with or endorsed by DeepSeek. Third-party plugins are not security-audited — review the source before installing.

New DeepSeek Harness plugins, weekly. No spam.