dsh-pet-liangzi: DeepSeek Harness Desktop Pet Plugin

Preface

DeepSeek Harness (DSH) adopts a plugin-based architecture, enriching the Web GUI’s functionality through extension components. dsh-pet-liangzi is a desktop pet plugin that adds an anthropomorphic character to the interface. This plugin aims to alleviate visual fatigue from long-term tool usage through interactive animations and voice feedback, while providing a lightweight personalized experience.

Plugin Positioning

  • Name: dsh-pet-liangzi (Liangzi Desktop Pet)
  • Maintainer: bauerelizabeth07139
  • Category: Fun / Dress-up
  • License: MIT
  • Positioning: A self-contained desktop pet that runs without network requests or external services. It includes 16 drawn character states, physics-based interaction effects, voice dialogue, and cross-plugin linkage capabilities.

Core Capabilities

The core value of this plugin is reflected in three aspects: animation details, interaction feedback, and ecosystem linkage.

1. Animation and Physics

  • 16 Drawn States: The character possesses 16 distinct poses, including idle, blinking, walking (alternating left and right feet), cheering, speaking, thinking, making a heart gesture, sad, angry, surprised, sleeping, waving, and the “shh” gesture. These poses retain the original details via image generation techniques, changing only the motion.
  • Three-Frame Walking Cycle: A realistic walking effect is implemented with three frames: contact, pass, and contact. The ground speed is determined by stride frequency rather than free settings, ensuring the feet stay grounded.
  • Physical Interaction: Supports physics effects such as gravity, squash, and stretch. When dragged, the character follows the drag direction; when released, it falls under gravity and exhibits squash and flash particle effects upon landing.

2. Interaction and Autonomous Behavior

  • Environment Awareness: The character automatically monitors the mouse pointer position and turns its head to look when approached.
  • Autonomous Micro-actions: When there is no user interaction, the character randomly performs spontaneous actions such as thinking, making the “shh” gesture, cheering, making a heart gesture, or getting angry.
  • Reaction Mechanisms: Clicking the character wakes it up and triggers dialogue; clicking rapidly 3 times will annoy the character.

3. Cross-Plugin Linkage

  • Father-Daughter Linkage: When the dsh-pet-dafeiyu (Big Fat Fish) plugin is installed simultaneously, the two interact. They can greet each other, chat, and perform a shared interactive scene if “Father-Daughter Mini-Theater” is enabled in the settings.

4. Audio and Resources

  • Voice Dialogue: All lines include pre-rendered audio and subtitle bubbles.
  • Independent Tracks: Dialogue voice, sound effects, and background music all have independent toggles and volume controls.
  • Resource Independence: All assets (sprites, audio files) are packaged within the plugin bundle and do not rely on CDNs or external network services.

Installation and Activation

The installation process requires the use of the DSH command-line tool. Please ensure DSH is installed and the desktop profile is configured.

Installation Command

Execute the following command in the terminal to install the plugin:

dsh plugin --profile desktop add bauerelizabeth07139/dsh-pet-liangzi

Activating the Plugin

  1. After installation, enable dsh-pet-liangzi on the DSH plugin management page.
  2. Go to Settings → Desktop Pet · Liangzi.
  3. Adjust the character size, opacity, and toggles for walking, micro-actions, etc., as needed.

No Git Environment

If Git is not installed on your machine, running the above command directly may fail because pnpm cannot parse the remote repository. In this case, you need to pin the Git repository tarball link and download it via HTTPS:

cd "$HOME/.dsh/profiles/desktop"
node /path/to/dsh/runtime/pnpm.mjs add \
  "https://codeload.github.com/bauerelizabeth07139/dsh-pet-liangzi/tar.gz/<commit-sha>"

Typical Usage

Once installed and enabled, the character will appear at the bottom edge of the browser window.

  1. Wake up & Dialogue: Click the character; it will wake up, speak its line, and display a subtitle bubble.
  2. Move & Place: Press and hold the character to drag it to any position on the screen; the position is remembered upon release.
  3. Toolbar Controls: Hovering over the character reveals a toolbar for quickly toggling dialogue voice, sound effects, background music, and display settings.
  4. Idle Sleep: If there is no interaction with the character for a long time, it will automatically enter a sleep state; click it again to wake it up.
  5. Father-Daughter Mini-Theater: Enable “Father-Daughter Mini-Theater” in the settings and ensure dsh-pet-dafeiyu is installed to trigger interaction scenes between the two.

Notes

  • Browser Audio Policy: Modern browsers prohibit automatic audio playback on pages. Before the user clicks the page or the character for the first time, a “Click to enable sound” prompt will appear on the interface. Audio playback will only be unlocked after clicking anywhere on the page.
  • Resource Integrity: This plugin does not rely on any network resources; all assets are built-in, ensuring normal usage even in offline environments.

Conclusion

dsh-pet-liangzi adds vivid character attributes to DeepSeek Harness through finely crafted animation frames and physical feedback. It is not just a visual decoration, but an interactive component with autonomous behavior and cross-plugin linkage. It is a practical addition for users seeking interface personalization or wishing to add fun to their development environment.

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

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

Xiaoye