Introduction¶
DeepSeek Harness (DSH) uses a plugin-based architecture, allowing developers to extend functionality according to business requirements. During model inference or agent development, it is often necessary to perform secondary calculations on model outputs or business data. To address this need, dsh-gross-margin provides localized financial metric calculation capabilities.
What Is It¶
This is a DSH plugin focused on gross margin calculation. The plugin is maintained by user uckkk and is implemented purely with Node.js, without relying on external networks. It aims to provide accurate financial calculation results for sessions or workflows.
Core Features¶
- Gross Margin Calculation: Supports parameter-based input, performs precise calculations, and returns detailed results.
Installation and Enablement¶
Use the following command to install the plugin:
dsh plugin add github:uckkk/dsh-gross-margin
After installation, the plugin registers the corresponding tools, which can be invoked directly in a session.
Typical Usage¶
After installation, simply invoke the tool registered by the plugin in a session.
Use Cases and Notes¶
This plugin is suitable for scenarios that require quick gross margin calculation locally or within a session. Because it is implemented purely with Node.js, the calculation process does not involve network requests.
Notes:
- The plugin runs with the permissions of the current DSH process. It is recommended to check the source code and license before installation.
- Ensure the runtime environment meets its peerDependencies requirements (such as @deepseek-ai/cordis and @deepseek-ai/dsh-tools).
References¶
- Plugin catalog: https://www.skillhub.cn/plugins/uckkk/dsh-gross-margin
- Source code: https://github.com/uckkk/dsh-gross-margin