dsh-cyber-muyu: Agent Tool Invocation as Knocking on a Wooden Fish — Merit Ledger and Coin Divination Integrated into One

Introduction

When running agents in DeepSeek Harness (DSH), tool call successes and failures are often confined to logs, lacking a lightweight, perceptible “workload” feedback mechanism. If you wish to watch the agent work on the Web while using a fun interface to track call counts and failure rates, and perhaps cast hexagrams for entertainment locally, dsh-cyber-muyu (Cyber Woodfish) combines these two functions onto a single floating woodfish: successful calls automatically strike to accumulate “Merit,” errors are recorded as “Tribulation,” and a concluding combo strike plays at the end of a conversation turn. It also provides the “Sixty-four Hexagram Money Divination” (King Wen sequence) alongside, performed entirely locally with no network connection required.

Below is an introduction to the plugin’s positioning, capabilities, installation, and typical usage. The divination results are for entertainment purposes only; please use rational judgment for engineering decisions.

What is this

dsh-cyber-muyu is a Web-side plugin for DSH, maintained by yang101and and categorized as “Fun & Cosplay” in the SkillHub directory. Both the host and browser sides are written in pure JavaScript with zero external runtime dependencies. Merit and divination history are saved locally via DSH’s storageDomain (domain name dsh_cyber_muyu). The project is released under the MIT License, with the current package version at 0.1.0.

Core Features

Floating Woodfish & Automatic Tapping

A draggable cyber woodfish resides in the corner of the webpage. Manually clicking “Strike” adds +1 Merit with animation and sound effects. Once automatic striking is enabled, every successful tool call by the agent triggers an automatic strike; failed calls use a “Tribulation” sound tone. A light strike sounds when a conversation turn ends; completing all To-dos triggers a “Wrap-up Triple Strike” (5-minute cooldown per session). If the agent is still working between 23:00 and 05:00, a “Late Night Practice Reminder” may trigger (once per night).

To prevent high-frequency tool calls from turning the woodfish into a machine gun, the plugin implements millisecond-level batching and cooling for events like success, failure, and turn completion. It also utilizes a token bucket rate limiter (refilling 12 strikes every 4 seconds).

Merit Ledger

The settings page displays today’s and cumulative Merit, tool call counts, Tribulation (error) counts, combos, and practice achievements. It serves as a statistical record of the agent’s workload and failure rate.

Money Divination

Clicking the “Oracle” (籤) next to the woodfish opens the Money Hexagram scroll: toss three copper coins six times to perform real-time calculations of the Primary Hexagram, Moving Lines, Changed Hexagram, Mutual Hexagram, Physical/Functional interactions, Interpretation, and Engineering pros and cons. These are not randomly drawn pre-written fortunes. The divination logic is in src/divination.js, and the Lunar Calendar (Ganzhi) is in src/lunar.js (1900–2100 calendar tables).

Model Tools

Agents can interact via Cordis tools:

Tool Function
muyu_strike Strike the woodfish; optional reason (≤60 chars), times (1–9, default 1)
muyu_oracle Cast a Money Hexagram; optional question (≤200 chars)

HTTP API (Optional Integration)

The route prefix is /dsh-cyber-muyu/api, following DSH’s trust barriers. Common endpoints include: GET /stream (SSE pushes for strike / achievement / oracle / night), GET /state, POST /strike, POST /oracle, GET|POST /config, POST /reset (body requires {"confirm":"reset"}).

Installation & Activation

Prerequisites: DSH installed, Node.js ≥ 22.5, using the web profile.

Run the official installation command in the terminal:

dsh plugin --profile web add github:yang101and/dsh-cyber-muyu

After installation, restart the DSH Web interface, and the floating woodfish will appear in the corner of the page.

Uninstallation:

dsh plugin --profile web remove dsh-cyber-muyu

Typical Usage

Web Interface

  1. Click the floating woodfish: Manual strike, Merit +1.
  2. Click “Oracle”: Opens the scroll; after six coin tosses, the divination is cast, and the result appears on the scroll.
  3. Open the settings page: View the Merit ledger, divination history, and adjust volume, corner position, automatic striking, and category toggles.

Configuration (Settings Page or API)

Key Default Description
enabled true Master switch
volume 0.6 Volume 0–1
autoStrike true Auto-strike on agent events
soundAuto true Whether to play sounds for automatic events
corner "bottom-right" bottom-right / bottom-left / top-right / top-left
showMeritPill true Show today’s Merit bubble
nightGuard true Late night practice reminder
categories All on tool-ok / tool-fail / turn / finale

Read/Write Config: GET / POST /dsh-cyber-muyu/api/config.

Let the Agent Strike or Divinate

The model can call muyu_strike (e.g., to celebrate the completion of a step) or muyu_oracle (with optional question text) during conversation. The Web interface will synchronously play the striking animation or unfold the divination scroll.

Use Cases & Notes

Suitable for developers already using the DSH Web profile to develop or debug agents who wish to perceive tool call rhythm and failure counts via a lightweight UI. Fun and cosmetic plugins do not alter the agent’s inference logic; they primarily provide feedback and local entertainment.

Before installation, it is recommended to review the GitHub Repository source code and MIT License. The plugin runs with the current DSH process permissions. Merit and divination data are stored only locally and are not uploaded. To reset data, use the API or delete the corresponding storage file after stopping DSH. The DSH Community Directory (SkillHub) is an independent site and has no official affiliation with DeepSeek or High-Flyer.

Links

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

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

Xiaoye