dsh-ark-pet: DSH Ark Desktop Pet and Custom Image Import

Preface

When running long-running tasks in DeepSeek Harness (DSH), the interface often provides only logs and tool call status. It lacks a visual anchor fixed to the desktop that reflects the current session phase. While the community already has methods to convert Codex atlases into desktop pets, the cost is often high if you have to find assets, verify formats, and package them manually every time. Below is an introduction to dsh-ark-pet, released by maintainer Matthew-Laplace: it provides desktop pet rendering within DSH, featuring a built-in catalog of Arknights operators and skins (downloaded on-demand from upstream Codex v2 atlases). It also supports importing local Codex atlases or standard images, switching actions based on states such as thinking, calling tools, and waiting for confirmation.

What is this

dsh-ark-pet is a desktop pet plugin for DSH, categorized under “Fun & Dress-up.” It does not bundle operator artwork into the installation package; instead, it maintains a catalog with a pinned upstream version (486 operators and skins). Upon selection, it fetches the corresponding Codex v2 atlas from the upstream repository, verifies the Git blob hash for each file, and then writes them locally. You can also bypass the library and directly import Codex atlases or PNG / WebP / GIF files that meet size requirements. The rendering logic is adapted from Signalight/codex-to-dsh-pet (MIT, pinned commit d41f0121552f837c36a9cc7fbcb073881f391616). This plugin adds an operator library, verified hash downloads, standard image import, and session-level activity state aggregation. The plugin is released under the MIT license, and the current package version is 0.1.0.

Core Features

Operator Asset Library (On-demand Download)

The built-in catalog records operator names, identifiers, and Git file hashes; it does not contain any Arknights images or conversion scripts. After selecting an operator in the settings, the plugin downloads that operator’s Codex v2 atlas from a fixed upstream revision, verifies the blob hashes one by one, and installs them to the data directory ${DSH_HOME:-~/.dsh}/ark-pet. Downloads reject redirects, and symbolic links and out-of-bounds paths are rejected before installation.

Import Your Own Images

Two types of sources are supported:

  • Codex Atlases: Resolution must be exactly 1536×1872 or 1536×2288.
  • Standard Images: PNG, WebP, or GIF, no larger than 8 MiB per file; the server only performs header parsing without decoding, and animated images are rejected.

The built-in Rookie bot and plugin icons are original to this project (MIT). You are responsible for the rights regarding imported images.

State Linkage & Interaction

The desktop pet switches behavior based on the DSH session phase: thinking, calling tools, waiting for your confirmation, completion, and errors each correspond to different actions; a bubble is displayed when waiting for confirmation. Interactions include dragging to move, waving on hover, and jumping on double-click; mouse gaze following is optionally available for v2 atlases. These options, along with size, docking position, display, and status bubbles, are centralized in the same settings page.

Installation and Activation

Refer to the README for installation commands. Fill in your actual DSH form for --profile: use desktop for the desktop application, and web for dsh web.

dsh plugin --profile desktop add github:Matthew-Laplace/dsh-ark-pet

After installation, you must restart DSH (for the desktop version, completely quit and reopen, do not just refresh the page). GitHub Releases provides the pre-built package dsh-ark-pet-0.1.0.tgz; pnpm 11.9 and above can install this tarball directly. pnpm 11.0–11.8 may report ERR_PNPM_MISSING_TARBALL_INTEGRITY for bare tarball links, so it is recommended to install via the GitHub path above.

The development and testing environment is DSH 0.2.0-rc.2 and Node.js >= 22.19; the plugin participates in version determination via peerDependencies on @deepseek-ai/dsh*. Please review the repository source code, LICENSE, and NOTICE.md before installation, as the plugin runs with the current dsh process permissions.

Typical Usage

After the installation and restart described above, configure the desktop pet following the steps in the README:

  1. Open Settings → Ark Pet.
  2. In the “Operator Asset Library,” check the rights notice, search for an operator, and click to start downloading.
  3. Alternatively, use “Import Your Own Images” to add local files.
  4. Adjust size, docking position, display, gaze following, and status bubbles on the same page.

Asset Rights and Security Boundaries

Arknights characters and artwork rights belong to Hypergryph and relevant rights holders. The upstream lockon-n/Arknights-Codex-Pets explicitly grants no redistribution or commercial use rights; public links and download confirmations do not constitute authorization. Please verify compliance methods yourself before use. This plugin has no official or authorized relationship with Hypergryph, OpenAI, or DeepSeek.

HTTP interfaces are mounted under the /ark-pet/ prefix. Write operations require the header x-dsh-ark-pet: 1; when the connection service is not installed, routes use a local same-origin gate (Host must be a loopback address, cross-site Sec-Fetch-Site is rejected, and Origin must match Host). When the connection service is installed, its requestRejection is used.

Use Cases and Notes

Suitable for developers who wish to place a desktop pet on the DSH desktop or Web carrier and are willing to assume responsibility for asset sourcing and copyright compliance. If you only need a fixed set of self-made images, “Import Your Own Images” suffices; if you wish to fetch operator Codex catalogs organized by the community on-demand, you can use the Operator Asset Library path, but be sure to read the “Assets and Rights” section in the README.

The DSH ecosystem emphasizes “Everything is a plugin”; the community catalog page (SkillHub Plugin Entry) is an independent site and not an official DeepSeek or High-Flyer app store. For more details and issues, see the repository: github.com/Matthew-Laplace/dsh-ark-pet.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye