DeepSeek Harness (DSH) extends its features through a plugin mechanism. In client-side scenarios, directly retrieving low-level device information (such as battery status) typically requires additional system operations. This article introduces the dsh-battery-life plugin, which is implemented in pure Node.js and provides battery life estimation capabilities for DSH sessions.
This is a client-side plugin named dsh-battery-life, maintained by the developer uckkk. It is designed to address the need to obtain the current device battery level in the DSH environment and calculate the estimated battery runtime. The plugin does not rely on the network and runs entirely locally.
Core Features¶
The plugin provides a tool named battery_life. This tool supports precise calculations based on parameters and returns detailed battery status results.
Installation and Activation¶
Run the following command in the terminal to install it:
dsh plugin add github:uckkk/dsh-battery-life
Typical Usage¶
After installation, you can use it by invoking the tool registered by the plugin within a DSH session. The specific calculation logic and parameter handling are managed internally by the tool.
Use Cases and Notes¶
This plugin is suitable for developers who need to retrieve system battery information while running the DeepSeek Harness client. Because the plugin runs with the permissions of the current DSH process, be sure to review the source code and the license (MIT) before use.
Summary¶
dsh-battery-life is a lightweight battery runtime estimation tool that helps developers integrate system hardware status query capabilities into the DSH ecosystem. For more details, refer to the plugin directory or the GitHub source code:
* Plugin Directory
* GitHub Repository