dsh-esp-buddy: Bringing Harness Session State and Approvals to the ESP32-S3 Desktop Screen

Preface

When running Agents in DeepSeek Harness (DSH), you usually have to keep an eye on the Web or Desktop interface on your computer to see if the session is running, if there are pending approvals, or roughly how much Token and context have been used. When authorization is needed, you also have to switch back to the session card to click and select. If you are already using or planning to build a small ESP32-S3 screen (Buddy firmware), a more natural approach is: have the status visible on the device, tap to Allow Once or Deny, and bidirectionally sync with the official Harness approval card.

ESP Buddy (npm package name dsh-esp-buddy) is a DSH Cordis client plugin maintained by WayAero. It pushes aggregated session, Token, and context information to the device via Bluetooth Low Energy (BLE), and handles touch approvals, PC time synchronization, and role pack transmission. For hardware flashing and wiring, see the accompanying ESP32-S3 Buddy firmware repository. The plugin targets DeepSeek Harness 0.2.0-rc.2 and Cordis ~4.0.4, and requires Node.js >=22 (the npm package version in the documentation is 0.5.1).

What is this

The plugin runs on the computer running the Harness: both Desktop and Web connect to the device via the host machine’s Bluetooth. Opening the Web page on other devices will not use the Bluetooth of the machine where the browser is located. The Windows x64 package includes a built-in Bluetooth helper program, so no separate Python installation is required for daily use. Linux x64 and macOS arm64 require you to deploy the helper path yourself according to the repository’s development documentation.

The device must run the accompanying firmware and broadcast the Nordic UART Service (NUS). The plugin discovers devices by the NUS service UUID, not by filtering by name prefix. The default Bluetooth name is usually DeepSeek-XXXX, but it can also be Claude-XXXX or a custom name; however, since other products may also use NUS, you need to verify the BLE address.

Core Features

Capability Description
Work Status Displays total sessions, running count, pending approvals, and session summaries; pushed on change, with a default re-send every 3 seconds.
Token & Context Aggregates session Tokens; context is an estimate for the most recently updated session, depending on Harness data availability.
Touch Approval Device selects Allow Once / Deny; the official card retains full info and entry. A decision on either end syncs the termination to the other.
PC Time Sync Sends time upon connection and reconnection; syncs every 10 minutes during continuous connection; re-sends on system time or timezone changes.
Role Packs Select a directory in the plugin details page and install it to the device via Folder Push V2 without re-flashing firmware.
Connection Management Auto-connect, reconnect, specify deviceAddress, view status, and copy diagnostic info.

Approval requests appear simultaneously on the device and the Harness card. The plugin does not automatically deny when the device is offline, the helper fails, it times out, or the plugin is disabled; pending requests are left to the Harness’s subsequent response chain. BLE sends the approval summary and status to the device screen, which is visible to bystanders. The plugin does not forward full command arguments.

Installation and Activation

In the DSH ecosystem, plugins are managed by the Harness. The community directory page dsh-esp-buddy and the GitHub repository WayAero/dsh-esp-buddy are independent sources of information and are not officially affiliated with DeepSeek / High-Flyer. Please review the source code and the MIT license yourself before installing; the plugin runs with the permissions of the current dsh process.

Method 1: Harness Plugin Page

  1. Open Harness Plugins → Add Plugin.
  2. Enter dsh-esp-buddy to install the npm release; use dsh-esp-buddy@version to specify a version.
  3. Enable the ESP Buddy bundle and the esp-buddy entry within it, and configure the device in the details page.

Desktop and Web have separate profiles; please install to the profile you actually use:

# Desktop
dsh plugin --profile desktop add dsh-esp-buddy

# Web; replace web if using a custom profile
dsh plugin --profile web add dsh-esp-buddy

To upgrade, uninstall from the plugin page, install the target version, then refresh the Web or restart the Desktop.

First Connection and Daily Setup

Follow the reproducible order from the README below.

  1. Prepare hardware, flash, and start the device according to the firmware README; the default Bluetooth name is DeepSeek-XXXX.
  2. Pair the Buddy in Windows Settings → Bluetooth & devices → Add device → Bluetooth and follow the on-screen prompts; the initial MITM pairing is handled by the system.
  3. Enable ESP Buddy in Harness and open the details page; autoConnect is enabled by default, and one scan takes about 10 seconds.
  4. If there are multiple NUS candidates, check names and addresses in “Recent Errors”, write the target to BLE Device Address (config key deviceAddress), and save.
  5. Start a Harness session after connecting; the device updates with activity. Time synchronization is based on the device display (the message has no dedicated ACK).

Common configuration in the details page (effective upon save; changing the address or heartbeat interval will restart the Bluetooth helper):

Config Key Default Purpose
enabled true Enable plugin
autoConnect true Auto connect
deviceAddress Empty Auto-select unique candidate; fix address if filled
approvalTimeoutMs 300000 Device-side approval wait (ms)
heartbeatIntervalMs 3000 Status re-send interval (1000–29000)
rolePackWriteDelayMs 0 Wait after role pack JSONL write (0–4)

If saving is impossible in read-only or remote memory mode, please change the configuration in the local Web or Desktop on the host running Harness.

Role Pack Example

The directory cannot contain subdirectories. The minimal GIF role pack structure is as follows:

my-buddy/
├── manifest.json
├── idle.gif          Required
├── busy.gif          Optional
├── attention.gif     Optional
├── sleep.gif         Optional
└── NOTICE.txt
{ "name": "my-buddy", "mode": "gif" }

The documentation suggests a single GIF of about 84×84, up to 80 frames, ~8 FPS, max 210 KiB, and max 64 colors; firmware support for Folder Push V2 is required. The npm package and repository include a sample dsh-pet-maid; see the NOTICE.txt in the package for material terms (open source use allowed, commercial use prohibited).

Use Cases and Notes

Suitable for: Developers running Harness 0.2.0-rc.2 series on Windows 11 x64 (recommended) with working Bluetooth, and owning an ESP32-S3 Buddy firmware device; those who want a physical desktop screen for session/Token viewing, touch approval, and occasional GIF role changes without re-flashing firmware.

Notes:

  • When sharing the device with Claude Code, you must disable this plugin first, change the device Bluetooth name to start with Claude, and switch to cc-buddy-bridge; exit the bridge daemon before switching back to Harness. The device connects to only one BLE client at a time.
  • Token is aggregated session data from the plugin, not an account bill; context is an estimated value.
  • If the device is not found: confirm the firmware is broadcasting NUS, the system has paired it, and it is not occupied by another profile or bridge.

For the troubleshooting table and Issue submission fields, see the GitHub README.

Conclusion

dsh-esp-buddy connects Harness’s session aggregation, Token views, and approval flows to the ESP32-S3 Buddy: the host pushes status via BLE, syncs decisions between touch and official cards, and supports time synchronization and role pack pushing. Directory page: https://www.skillhub.cn/plugins/WayAero/dsh-esp-buddy; Source code and full documentation: https://github.com/WayAero/dsh-esp-buddy.

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

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

Xiaoye