DeepSeek Harness Desktop Pet (dsh-fritia-pet)¶
DeepSeek Harness (DSH) supports pluggable extensions. When the agent runs in the background, developers typically need an intuitive way to confirm the current state. dsh-fritia-pet provides a desktop pet that reflects the Harness’s running status through visualized behaviors.
Plugin Introduction¶
- Name: dsh-fritia-pet
- One-line Description: A little character in the bottom-right corner. Left-click to interact, right-click to view balance, long-press/drag to pick it up, and it walks left and right when the Harness is working.
- Maintainer: dzy1571315598
- Category: Fun Dress-up
- License: MIT
Core Features¶
- Desktop Pet in Bottom-Right Corner: The character is stuck to the bottom-right corner of the viewport by default, and its position is re-calibrated when the window is resized.
- Left-Click Interaction: Triggers states such as happy, confused, angry, and easter eggs.
- Right-Click to View Balance: Switches to the balance panel and automatically reads the DeepSeek account balance.
- Pick Up and Drag: Long-press (hold still for 260ms) or hold and drag to pick up the desktop pet. It stays in place when released.
- Harness Work Feedback: When the Harness is working, the character walks left and right within the bottom-right corner area.
- State Switching: Supports switching between idle, sleepy, fishing, walking, and other states.
- HTTP Service: Exposes sprite routes and busy status.
- Asset Count: 20 transparent 256×256 sprite images.
Installation and Activation¶
Install through the official plugin manager. Do not manually modify configuration files.
# Installed by plugin_manager (do not manually modify the profile's package. / cordis.patch.yml)
Note: You must restart the DSH desktop client once for it to load the Host code. Running processes have cached already-imported modules; re-enabling plugin lines or reinstalling the bundle will not re-import them.
Typical Usage¶
- Pick Up the Desktop Pet: Hold the left mouse button still for 260ms.
- Trigger Angry State: Click the left mouse button 3 times consecutively within 1 second.
- View Balance: Right-click the desktop pet.
- Check Host Status: Visit
http://127.0.0.1:19387/fritia-pet/healthin a browser.
Technical Details¶
- Sprite Loading: The asset route is unstable, so
exactis used with query parameters. The path is/fritia-pet/sprite?f=<filename>. - Balance Fetching: Prefers the Remote namespace and falls back to the Host route on failure.
- State Machine: Includes logic for idle switching, transitioning to sleepy/fishing after 10 seconds, 4-frame walking animation, click feedback, etc.
- Self-Check: When the Host is ready, it returns JSON containing the plugin name, asset count, and specific sprite states.
Notes¶
- This plugin only uses same-origin HTTP. The Host-side
/fritia-pet/*routes are used to read assets and for busy-status/balance fallback. - When the balance amount is long (e.g., 18 decimal places), it is displayed in full, and the font size on the board is scaled proportionally.
- After being dragged, the desktop pet stays at the position where the mouse was released and no longer follows window calibration.
- A simulated result with no interaction for 120 seconds will trigger the sleepy or fishing state.