The DSH ecosystem follows the philosophy of “everything is a plugin.” When building agents, you will often encounter scenarios that require local mathematical operations, such as calculating percentages. Relying on an external API for every calculation can increase network latency and introduce the risk of service unavailability. The dsh-percentage plugin is intended to solve this pain point by providing lightweight percentage calculation with no network connection required.
This is a client-side plugin for percentage calculation, maintained by uckkk. It is implemented in pure Node.js, does not depend on any external network services, and executes the calculation logic locally.
Core Features¶
- Percentage Calculation: Provides basic percentage calculation tools.
- Pure Node Implementation: Runs based on the Node.js execution environment.
- No Network Dependency: All calculation logic is completed locally and can be used offline.
Installation and Enablement¶
Use the official installation command to add the plugin to the environment.
dsh plugin add github:uckkk/dsh-percentage
After installation, you need to configure the dsh.profile.bundles field in the profile’s package.json and add "dsh-percentage".
Typical Usage¶
After successful installation, you can use the plugin by directly calling the tool it registers in the session.
Use Cases and Cautions¶
This plugin is suitable for agent scenarios that require frequent local percentage calculations.
Because the plugin executes third-party code with the permissions of the current DSH process, please review the source code carefully before installation.
- License: MIT
- Maintainer: uckkk