Preface¶
When running agent turns in DeepSeek Harness (DSH), indicators like “thinking,” “tools running,” or “errors just occurred” are often scattered across logs and spinners; you have to search through the output to confirm the status. While the community has adopted practices of overlaying pets on the interface, many implementations are purely decorative: they move lively but fail to clarify what you should be focusing on.
dsh-signal-pet (maintainer dingchenhui0618-arch) binds “fun” and “utility” to the same corner pet: it subscribes to the real harness event stream, using colors, tether lines, and animations to express thinking, tool execution, errors, and long task completion. Simultaneously, it provides stable hooks like data-pet-state to facilitate screenshot acceptance and automation. The plugin is categorized as “Fun & Dress-up” in the SkillHub directory. Its current GitHub star count is 0; it is licensed under MIT, version 0.1.0, and requires DSH >=0.2.1-rc.2 <0.3.0.
The following sections introduce the problems it solves, how states are mapped, how to install and use it, and the differences compared to similar inspiration plugins.
What is this¶
In one sentence: A status pet living in the interface corner that reads real session events and serves as a visible busy/error indicator.
The host half monitors harness events and collapses them into snapshots, while the client is solely responsible for rendering. It does not perform content recognition, nor does it block input as a pure decoration; the position actively avoids input boxes and the currently focused element.
Core Features¶
States and Triggers (From real events, not client-side guessing)¶
| State | Trigger | Appearance |
|---|---|---|
idle |
No active session | Slowly floats up and down |
thinking |
agent/status changes to running |
Same motion, but more than 3x faster |
working |
A tool is currently executing | Purple ring + a flowing tether line for each running tool |
error |
tools/result reports error, or agent/error |
Red ring + shakes 5 times + error summary |
celebrate |
A turn running for more than 10 seconds ends | Jumps 4 times + three sparkles |
Priority is a product design decision: Error overrides everything. Even if tools are running simultaneously, as long as an error just occurred, the pet remains red—its duty is to ensure “you will definitely notice when something goes wrong.”
The event types collapsed on the host side include: agent/status, tools/pre-execute, tools/result, agent/error, agent/turn-stopping (fully listed in the README comparison table).
Interaction and Acceptance Hooks¶
- Click the pet: Collapses into a small dot, leaving only the status ring color; click again to expand. Preferences are stored in
localStorage. data-pet-state: The current state on the root element and layers (idle/thinking/working/error/celebrate), used for CSS, screenshots, and assertions.data-pet-mode: On the layers asanimated/static/collapsed.
UI Avoidance¶
It selects the first completely non-overlapping position among five candidate corners; if none are suitable, it chooses the one with minimal overlap and applies the class name vp-blocked with clear: false, indicating it failed to fully avoid the element.
Obstacles are identified by behavior, not DSH class names:
textarea, input, [contenteditable="true"], [role="textbox"], [data-pet-avoid]
Plus the currently focused element. Any element can be added with data-pet-avoid as an escape route.
Accessibility¶
Under prefers-reduced-motion: reduce, the pet degrades to a static corner badge: keyframes are disabled, the body shrinks to a 22px dot, but the status ring color and text labels are preserved.
HTTP Interface (Debugging and Acceptance)¶
GET /dsh-signal-pet Current snapshot (phase, counts, recent tools, error, busy duration)
GET /dsh-signal-pet/state Same as above (alias)
POST /dsh-signal-pet/reset Clear state
POST /dsh-signal-pet/pulse Force trigger a celebration (acceptance animation, no need to wait for long tasks)
Non-interference with Work (Hard Constraints)¶
tools/pre-execute is a waterfall that determines whether a tool executes; the host listener calls next() on any path, including internal errors. State collapsing, event logging, and route registration are wrapped in try/catch; failure simply means the pet won’t work, but it will not cause the turn to fail.
Configurable Items¶
All can be overridden in apply(ctx, config):
| key | Default | Description |
|---|---|---|
errorTtlMs |
12000 |
How long an error stays on the pet before falling back |
celebrateMs |
2600 |
How long a celebration lasts |
celebrateAfterMs |
10000 |
A turn must run at least this long to celebrate |
maxTethers |
6 |
Maximum number of tool tether lines to draw |
enabled |
true |
No longer records events when disabled |
Installation and Activation¶
The DSH ecosystem is “everything is a plugin”; the SkillHub plugin directory is a community site and has no official affiliation with DeepSeek / Hinker. Please check the repository source code and MIT license yourself before installing; the plugin runs with the current dsh process permissions.
npm version CLI managed profile:
dsh plugin --profile <name> add <plugin directory>
Desktop version: The desktop profile is exclusively managed by the Electron application; the npm version CLI will be rejected (profile "desktop" is managed exclusively by the Electron application). You need to use the CLI bundled with the application:
"<app>/resources/runtime/cli/bin/dsh" plugin --profile desktop add <plugin directory>
Restart the app once after installation (the host half needs to restart the process to load the plugin).
Typical Usage¶
After the installation steps above:
- Initiate a normal agent turn and observe the corner pet change with
thinking/working/error/celebrate. - Click the pet when you need to collapse it to reduce distraction; the status ring color still indicates the current phase.
- When writing automation or styles, query
data-pet-stateanddata-pet-modeon the root node. - To accept the celebration animation, you can call the HTTP interface
POST /dsh-signal-pet/pulsewithout actually running a task for 10 seconds.
Relationship with dsh-think-bounce-pet (Explained in README)¶
Inspired by 9livewolf/dsh-think-bounce-pet. The original README has no LICENSE file; this plugin did not reuse its code, but implemented it from scratch after reading the README.
Key differences: This plugin covers more session events, reflects tool tethers and errors (and errors have the highest priority), celebrates long turns, avoids UI elements, supports prefers-reduced-motion degradation, and provides data-pet-state / data-pet-mode; the original version’s strengths are physical bouncing, mouse collision, and a settings page—this plugin deliberately avoids physics engines and settings pages, focusing on being a “visible at a glance indicator.”
Scenarios and Notes¶
- Suitable for: People who stare at turn status in the DSH interface for long periods, want to check logs less, and are willing to have a verifiable status pet in the corner.
- Note: It depends on DSH event semantics and version ranges; if
webServer.registerorshell.overlayfails, the HTTP interface or overlay might degrade, but the README states that event monitoring is kept as much as possible and does not block the tool chain. - Security: Installation implies trusting the plugin to monitor events and register routes within the host; please verify the behavior from the official repository before using it in sensitive environments.
Conclusion¶
dsh-signal-pet translates the session event stream into colors, tethers, and animations in the corner. It prioritizes errors, avoids inputs, and preserves status information even when motion is reduced. For further information or to file an issue, please see the directory page and GitHub:
- Directory Page: https://www.skillhub.cn/plugins/dingchenhui0618-arch/dsh-signal-pet
- Repository: https://github.com/dingchenhui0618-arch/dsh-signal-pet