Introduction¶
When developing DeepSeek Harness (DSH) agents, you often need to handle numerical calculations and unit conversions. If you need to convert units such as length, weight, temperature, data size, or time, manually writing the logic increases maintenance costs. The following section introduces a pure Node.js solution maintained by uckkk.
Plugin Introduction¶
dsh-unit belongs to the “web tool” category and provides standard unit conversion capabilities. It is a pure Node.js plugin, mainly solving the problem of automatically converting units when agents process physical quantities or data sizes.
Core Features¶
The main tool provided by the plugin is convert_unit.
Installation and Enablement¶
You can enable it by installing it with the official command. Run the following command:
dsh plugin add dsh-unit
After successful installation, the plugin automatically adds "dsh-unit" to dsh.profile.bundles in package.json under the profile.
Typical Usage¶
In a conversation, simply call the tool registered by the plugin. For example:
10 公里等于多少英里
→ 调用 convert_unit(value=10, from="km", to="mi")
Use Cases and Notes¶
This plugin is suitable for agents that frequently handle unit conversions. Since the plugin runs third-party code locally, review the source code and license (MIT) yourself before installation.
Conclusion¶
Through the convert_unit tool, the plugin simplifies the implementation of unit conversions. For more details, refer to the Plugin Directory or the GitHub Repository.