DSH Game Pet: The Desktop Pet Advisor That Speaks While You Play

Introduction

When building agents or desktop assistants in DSH, the common approach is for the user to actively send screenshots or switch to the chat window to ask questions each time. This rhythm is difficult to maintain while gaming, as your hands are already on the keyboard and mouse. The dsh-game-pet (npm package name, categorized as “Fun Dress-up” on the directory page, with the description “Whale Girl Gameplay Companion”) in the community repository bigk5780/dsh focuses on “whether the foreground is a game”: it captures screenshots, analyzes images, and generates suggestions at intervals in the background, displaying them via bubbles from a desktop pet in a transparent, always-on-top small window. This entire process requires no plugin clicking or repeated image dropping.

Below is an introduction to what it is, how to install it, how to configure it, and the limitations to be aware of during use.

What is This

dsh-game-pet is published by the maintainer bigk5780 under the MIT license, with the current package version 0.1.0. It is positioned as a desktop pet strategist for gaming: it speaks automatically while you play, without requiring clicks or the need to drop screenshots repeatedly.

It checks every few seconds in the background whether the foreground window is a game; if so, it executes the following flow according to the configured rhythm:

Automatic Screenshot (defaults to game window only, full screen optional)
  → Step 1: Image Recognition, extracts only "Which game + Current Key Situation", no visual description
  → Step 2: Generate a suggestion based on "How to play this game" (Built-in cheerful whale girl tone, doesn't read the screen)
  → Desktop pet in transparent top-right small window pops a bubble to display

Once the game is switched away or the master switch is turned off, it stops screenshotting and calling the model. The README explains: separating image recognition and speech generation into two steps is to prevent the model from translating the UI item-by-item to the user instead of providing gameplay suggestions.

For the visuals, it reuses a set of transparent .webm animations from the same source as dsh-pet; this plugin includes approximately 4.4 MB of commonly used animations in assets/webm/ (assets sourced from dsh-pet, license is open source usable, commercial use prohibited). The desktop pet remains visible even if dsh-pet is not installed. By default, it resides in a separate transparent top-right small window (draggable, position is remembered); it can also be set to draw only within the web page. The DSH page side no longer registers an overlay by default, retaining only the settings page.

Core Features

Window and Interaction

  • The top-right small window can overlay windowed / borderless games; in fullscreen exclusive mode, no window can stay on top (system limitation).
  • Only the desktop pet’s body area is interactive; other transparent areas pass through clicks. Dragging the pet moves the window, and the position is written to the config.
  • Bubbles stay for about 14 seconds; failures are explained in small text.

Game Detection and Screenshot

  • Limits “what counts as a game” via a whitelist (process name or window title keyword); if the whitelist is empty, any foreground window may trigger it (watching videos or writing documents might be treated as targets).
  • Configurable detection frequency, startup warmup time, speaking interval, minimum interval, single timeout, whether to require fullscreen, whether to ignore minimized state, whether to reuse screenshots, etc.

Visuals and Dialogue

  • Image recognition and speech generation can use DSH session models, image-supported models in the registry, custom “Vision Model API”, or the Key-free anonymous vision fallback mentioned in the documentation (rate limited).
  • The settings page allows separate configuration for OpenAI-compatible or Anthropic-style vision interfaces; once enabled, recognition and speech can share the same Key, falling back to the session model if speech generation fails.
  • Supports personas, context sentence counts, etc.; provides actions like “Test a round now”, probe current foreground window, and recognition connectivity tests.

Runtime HTTP Interface (Local)

Same machine, requires application session credentials. For example:

Method Path Function
GET /dsh-game-pet-7341/state Frontend polls status
GET /dsh-game-pet-7341/probe Just check foreground window, no screenshot or model call
POST /dsh-game-pet-7341/once Run a round immediately
GET/POST /dsh-game-pet-7341/config Read/write runtime config
POST /dsh-game-pet-7341/vision/test Test custom vision API

See the repository README for the full list.

Installation and Activation

The installation command follows the README (--profile should be desktop or web depending on your actual environment):

# Fill in the --profile you are actually using: Desktop App → desktop; dsh web → web
dsh plugin --profile desktop add dsh-game-pet

After installation, restart the desktop application (dsh web users restart dsh web) for it to take effect. The plugin comes with a combined patch dsh.bundle.patch, which mounts the plugin and registers the browser side during add, without needing manual modification of profile files.

Uninstallation:

dsh plugin --profile desktop remove dsh-game-pet

package.json specifies Node >=22.12.0 and is marked as compatible with DSH 0.2.0-rc.2. It is recommended to review the repository source code and MIT license before installing; the plugin runs with the current DSH process permissions and will periodically take screenshots and call the model interfaces you configured.

Typical Usage

Initial Configuration

  1. Open DSH Settings → Desktop Pet Staff → Vision Model API.
  2. Fill in the interface address and model name. Any OpenAI-compatible (or Anthropic-style) vision service works, e.g., local Ollama: address http://127.0.0.1:11434/v1, model qwen2.5vl.
  3. Fill in the API Key if authentication is required, and click Test Connectivity (this will actually send a test image).
  4. If left blank, it will fall back to the Key-free anonymous vision model (rate limited, README suggests hosting your own interface).

Limiting “Speak Only While Gaming”

Fill in the whitelist in the settings page “Which games count”, or configure it in config.games in cordis.patch.yml. Process name examples: EldenRing, GenshinImpact (.exe suffix and case sensitivity do not matter); window title keywords can also be used. If left blank, almost any application in the foreground may trigger it.

Configuration File Location

It is recommended to modify graphically via DSH Settings → Desktop Pet Staff, writing to $DSH_HOME/dsh-game-pet.json. Changes take effect upon saving (changes to overlay form and small window position require a restart). This overlays with the config in cordis.patch.yml in the profile: patch serves as the default, and settings page overrides it.

Factory default snippet (excerpt):

        enabled: true
        games: []
        checkIntervalMs: 5000
        warmupMs: 15000
        intervalSec: 45
        captureFullScreen: false
        overlay: window

intervalSec controls how often it speaks, which directly affects the frequency and cost of model calls.

Custom Vision API Example

The visionApi structure example provided in the README (replace with your own address and Key):

"visionApi": {
  "enabled": true,
  "baseURL": "https://<your-workspace>.cn-beijing.maas.aliyuncs.com/compatible-mode/v1",
  "model": "qwen3.8-flash",
  "apiKey": "sk-ws-...",
  "format": "openai",
  "maxTokens": 1024
}

After filling it in, use “Test Connectivity” on the settings page to verify; the README warns against filling in tool-calling wrappers like deepseek-vision as the recognition model, otherwise bubbles may show tool-calling markup in the text.

Use Cases and Notes

Suitable for: DSH desktop users who want intermittent gameplay tips in windowed / borderless games without switching out to send images frequently; willing to host their own or accept the rate-limited fallback vision API.

Notes:

  • Screenshots and model calls occur locally; the API Key is stored in $DSH_HOME/dsh-game-pet.json (plaintext), and the settings page does not echo plaintext.
  • Non-gaming scenarios may be disturbed if the whitelist is empty, so configure games as needed.
  • Compared to the “Fun Dress-up” tag on the SkillHub Directory Page, the README emphasizes gameplay companionship and visual strategy capabilities; refer to the repository documentation for the functional boundaries.
  • The community directory SkillHub has no official affiliation with DeepSeek / High-Flyer; the DSH ecosystem philosophy is “Everything is a Plugin”, and this plugin is a community-maintained independent package dsh-game-pet.

Conclusion

dsh-game-pet turns “Identify Game → Recognize Situation → Give Advice” into a background loop and uses the top-right small window desktop pet to carry the output, making it a suitable lightweight gaming buddy for the DSH desktop side. Install using dsh plugin --profile desktop add dsh-game-pet, configuration is centralized in DSH Settings → Desktop Pet Staff.

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

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

Xiaoye