In the plugin ecosystem of DeepSeek Harness (DSH), common hardware status monitoring needs in client applications often require developers to implement low-level logic themselves. The dsh-battery-health plugin provides a way to quickly integrate battery health detection through the command line. Its core advantage is a pure Node.js implementation with no additional network requests.

This is a DSH plugin maintained by uckkk, used to detect the battery health status of a device. It returns battery health recommendations through precise calculation, making it suitable for use in agents or tools that need to monitor hardware status.

Core Features

  • battery_health: The core tool registered by the plugin, used to perform battery health detection.
  • Parameter-based precise calculation: It performs calculations based on input parameters, rather than simple status checks.
  • Clear recommendations: It returns specific health information and recommendations.

Installation and activation

Run the following command in a terminal or the DSH interactive interface:

dsh plugin add github:uckkk/dsh-battery-health

After installation, the plugin registers the battery_health tool in the current session and can be used without restarting the process.

Typical Usage

After successful installation, directly call the tool registered by the plugin in a session.

Applicable Scenarios and Notes

  • Applicable scenarios: Scenarios where an agent or tool needs to quickly retrieve battery health information for a device.
  • Permission notes: The plugin runs with the permissions of the current DSH process. Ensure the process has permission to access hardware information.
  • Dependency environment: Implemented in pure Node.js and has no network dependency, but it relies on the local system’s battery detection capability.
  • License: The plugin is released under the MIT license and can be freely used within the applicable scope.

As a lightweight component in the DSH ecosystem, the plugin provides developers with battery health detection capabilities that do not depend on the network. For more details, see the GitHub repository.