Nuclear-powered Cao Ni Ma (dsh-caonima): A DSH Web Desktop Pet that Changes with Agent State

Preface

When running an Agent with the Web GUI in DeepSeek Harness (DSH), the interface typically only reflects logs and tool calls. Staring at the terminal or panel for long periods makes it hard to tell at a glance whether the system is “currently running, waiting for approval, or already idle.” The community has various state indicators, but most are static icons or text. Maintainer hzhgino’s dsh-caonima (npm package name dsh-caonima) embeds a “caonima” (alpaca) desktop pet into the bottom-right corner of the Web interface: it subscribes to current session and Agent events, and visualizes working state through walking, patrolling, bubbles, and simple interactions. In the DSH plugin catalog, it falls under the “fun customization” category. Below we introduce what it is, what it can do, and how to install and use it.

What is This

Nuclear-Powered Caonima is a desktop pet plugin for the DSH Web GUI: an alpaca permanently resides in the bottom-right corner of the browser, and its behavior switches according to the current Agent / session state. The project is hosted on GitHub at hzhgino/dsh-caonima, with a directory page at SkillHub plugin page. The current package version is 0.1.0, licensed under MIT. The runtime requirement is dsh v0.1.5+.

In implementation, it is a standard DSH dual-face plugin: the Node side lib/index.js provides an empty apply() so the Loader can scan the dsh.client declaration; the browser side lib/client.js registers via window.__ModuleLoader__.load, does not depend on React, and declares dsh.client.immediately: true so it loads at startup. State comes from ctx.sessions (the dsh-api-session-controller browser half): the currently selected session, binding.session’s snapshot.running, and events on binding.eventSource such as tool/call, approval/*, and turn/end (initial load / reconnect only fast-forwards, does not replay history). Animations use CSS keyframes and requestAnimationFrame; on unmount or HMR hot-swap, it removes DOM and data-plugin styles to avoid residue.

Core Features

State Linkage with Sessions

Agent / Session State Behavior (per README)
Idle Slow walk along the bottom of the screen, occasionally stopping to breathe, blinking, ear twitches; after about 50 seconds of inactivity, it dozes off (closed eyes)
Running Fast patrol with limbs cycling like a carousel; bubbles report the currently executing tool (e.g., bash, grep) in real time; occasionally squats down to graze
Waiting for approval (approval/asked) Jumps anxiously in place, orange alert bubble indicates approval is needed; after approval, returns to working state
Turn end (turn/end) Triple jump celebration; if failed, the behavior switches to “crash” style
New message arrives Bubble indicates receipt and it sets off

Interactions

  • Poke: Shakes its head with particle effects and randomly displays “Caonima quotes”; if poked while dozing, it wakes up in surprise.
  • Pick up: Can be dragged to any height by holding it; when released, its limbs dangle and swing, and it bounces back with gravity upon landing.
  • The grass in its mouth continuously waves in the wind (stated in the README as a tribute to classic memes).

Installation and Activation

The official Quick Start recommends installing from the GitHub source (after npm publication, the package name can be used instead). Run in the shell:

# Install (choose one; currently GitHub source is recommended; after npm publication, use the package name)
dsh plugin --profile web add github:hzhgino/dsh-caonima
# Or (after npm publication)
# dsh plugin --profile web add dsh-caonima

# Restart the web host and refresh the browser page; the alpaca appears in the bottom-right corner
dsh web

If already formally installed via dsh.bundle.patch (cordis.patch.yml) as a profile bundle, the README states that you need to restart the web host once (the bundle layer is assembled at startup), then refresh the page.

Uninstall:

dsh plugin --profile web remove dsh-caonima

After restarting the web host, the desktop pet disappears.

Typical Usage and Development Notes

Daily Use

After installation and dsh web, no additional configuration is needed: open the Web GUI, select a session and drive the Agent to work, and observe the desktop pet in the bottom-right corner changing according to running, approval, and turn-end events. The bubble displays the current tool name when running, making it easy to cross-reference with calls in the panel.

Development Trials (patch direct mount, choose one)

The README also provides a no-packaging method: use insert in ~/.dsh/profiles/web/cordis.patch.yml to write the absolute path of the plugin lib/index.js, and the profile must support patchReload: live, allowing the running host to hot-recompose; refresh the page to see it. Note: do not have both formal dsh plugin add and patch direct mount active at the same time, otherwise the same client may be parsed by two Loaders and the composition will reject it.

During development, directly modify lib/client.js and save; in an environment with client-hmr enabled, the page can hot-swap in place (the plugin’s internal state resets, but connections and sessions are unaffected).

Applicable Scenarios and Notes

Who it’s for: Users already using the DSH Web profile who want lightweight visual feedback to assist in perceiving Agent state; scenarios where you like desktop pets and fun interactions and don’t mind a small area in the bottom-right corner.

Permissions and security: Like other DSH plugins, this plugin is loaded with the current dsh process and Web host and executes client code in the browser. Before installation, read the repository source code and the MIT license to confirm it meets your environment and compliance requirements. Community directories such as SkillHub are independent sites, not officially affiliated with DeepSeek / Hi-Focus, and are not official app stores.

Dependencies: Besides dsh v0.1.5+, behavior depends on the session API and event stream; if the host version is too old or the session controller is unavailable, the desktop pet may not be able to correctly subscribe to state.

Conclusion

dsh-caonima maps Agent idle, running, approval-waiting, and turn-end to desktop pet animations and bubbles, making it suitable for long-time session monitoring in the Web GUI. The installation command is based on the README: dsh plugin --profile web add github:hzhgino/dsh-caonima, then dsh web and refresh the page.

  • Directory page: https://www.skillhub.cn/plugins/hzhgino/dsh-caonima
  • GitHub: https://github.com/hzhgino/dsh-caonima
羽毛球分组比赛记分
小程序二维码

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

Xiaoye