Introduction¶
When using the DeepSeek Harness (DSH) Web UI for long sessions of conversation or debugging, the interface often consists solely of functional panels, lacking a visual anchor that provides a sense of “constant presence.” While one could overlay a custom HTML window, handling image cutouts, outlines, window-scaling behavior, and account information display—while ensuring images do not leave the local machine—involves a significant amount of work.
Below is an introduction to the community plugin dsh-cutout-pet (Maintainer: AlannerFranklin, Category: Fun/Cosmetic): it turns any JPG/PNG into a desktop pet floating on the Harness interface, featuring local background removal, white outlines, and idle animations within the browser, along with a bubble above its head displaying the current DeepSeek account balance in real-time. The plugin is released under the MIT license, and its current GitHub star count is 0.
What is this¶
dsh-cutout-pet is a cosmetic plugin for the DSH Web frontend designed for fun. After an image is uploaded, it performs background removal and outlining within the page, registers the result to shell.overlay, and provides adjustable cutout parameters on the settings page. The balance is fetched by the host half via the wallet interface of the logged-in DeepSeek account; no API Keys or Tokens are stored within the page.
Image decoding and cutout operations are performed entirely within the browser; only the processed PNG is written to the DSH data directory, and the original image is not uploaded to any remote server.
Core Features¶
Upload → Cutout → Desktop Pet¶
In Settings → Cutout Pet, after selecting a JPG/PNG, the client executes the following on a canvas: flood-fill background removal from the four edges based on border colors, filtering of the main contour, removal of detached fragments (highlights, watermark strokes, etc.), 3×3 alpha feathering, trimming of transparent edges, drawing a white sticker outline, and finally generating a PNG.
Before writing, the upload is validated as a genuine PNG (signature, IHDR dimensions), with a maximum file size limit of 3 MiB.
Adjustable Cutout¶
The “Background tolerance” slider controls the background tolerance strength. If the background is a photo or gradient, the background removal toggle can be turned off to use the entire image as the desktop pet.
Idle Animation (Non-Sprite)¶
Breathing and swaying anchored at the feet, floating starlight nearby, slight tilting towards the pointer, and tilting while dragging are all programmatic animations that do not rely on pre-baked sprite sequences.
Window Following¶
Position is saved as a ratio of the “movable area” rather than fixed pixels; when the window is resized, the desktop pet remains in its relative corner.
Balance Bubble¶
The host half (index.js) requests the wallet balance (CNY/USD and granted wallet) from the logged-in DeepSeek account. For profiles that are not logged in, the bubble will explain the status rather than reporting an error.
Local & Quiet¶
The cutout is completed within the browser; the finished PNG is stored at <DSH_HOME>/plugin-data/dsh-cutout-pet/art.png. The default placeholder image is the plugin’s built-in strawberry character (MIT, same license as the code).
Installation and Activation¶
Plugins in the DSH ecosystem are installed via profiles; installation commands must match the repository README. package.json requires Node >=20.
Install from the plugin market (once published):
dsh plugin --profile <profile> add dsh-cutout-pet
Install directly from the GitHub repository:
dsh plugin --profile <profile> add github:AlannerFranklin/dsh-cutout-pet
You can also use Install from folder on the Plugins page to install a bundle from a local directory.
After installation, open Settings → Cutout Pet, select an image, adjust the background removal strength as needed, and click Use as pet.
Typical Usage¶
- Run one of the
dsh plugin ... addcommands mentioned above for the current DSH profile. - Enter Settings → Cutout Pet in the Harness Web UI.
- Upload a PNG/JPG with a clear subject and a background that is as solid or simple as possible; if the background is complex, turn off background removal first or process it in an external editor before uploading.
- Click Use as pet, drag the desktop pet to a suitable position on the interface; resizing the browser window allows you to confirm if the proportional positioning meets expectations.
- If a DeepSeek account is logged in, check if the balance display in the bubble above the head appears correctly.
Each profile supports only one desktop pet (art resources are shared); positions are saved per browser.
Architecture and Data Flow (Brief)¶
| Half | Responsibility |
|---|---|
client.js |
Registers the desktop pet in shell.overlay and the settings page in settings.section; completes the cutout pipeline within the browser and submits the PNG. |
index.js |
Provides /.dsh-pet/art.png, /.dsh-pet/state, /.dsh-pet/art (POST/DELETE), /.dsh-pet/balance; persists uploaded images. |
Use Cases and Notes¶
Suitable for: Developers or daily users who want a lightweight, locally-cutout desktop pet within the DSH Web UI, while also viewing their account balance; works best with materials featuring solid or simple backgrounds.
Limitations (from README):
- The cutout is a color-key algorithm, not a segmentation model; for photos, gradients, or cluttered scenes, background removal must be turned off or an external editor must be used.
- The balance relies on the DeepSeek account wallet service; if no account is logged in, only explanatory text is displayed.
- One desktop pet per profile; positioning is per browser.
Security & Permissions: DSH plugins run with the permissions of the current dsh process. Before installation, please read the source code and MIT license at the GitHub repository to ensure compliance with your environment policies. The community directory SkillHub Plugin Page has no official affiliation with DeepSeek or High-Flyer and is not an official app store.
Conclusion¶
dsh-cutout-pet bundles “local cutout + outlined desktop pet + account balance bubble” into a single DSH plugin: uploads are handled on the settings page, while animation and window-following are handled by the frontend, ensuring sensitive images never leave the local machine. If you are already using the Harness Web UI, you can install it to a specific profile according to the README and try it out with a single image.
- Community Directory: https://www.skillhub.cn/plugins/AlannerFranklin/dsh-cutout-pet
- Source Code & Documentation: https://github.com/AlannerFranklin/dsh-cutout-pet