In the development workflow of DeepSeek Harness (DSH), API latency is an important metric for measuring agent performance. Existing observation solutions often lack the ability to perform precise calculations by parameter. The dsh-api-budget plugin is designed to address this issue by providing parameter-based API latency budget calculation capabilities.
Plugin Overview¶
The plugin is maintained by the developer istone, and its core function is to provide precise API latency budget calculations. It is implemented in pure Node.js, does not depend on an external network environment, and can directly return detailed calculation results locally.
Core Features¶
The plugin registers a tool named api_budget. This tool supports precise calculations by parameter and returns detailed calculation results.
Installation and Dependencies¶
Before installing, make sure the environment meets the dependency requirements.
dsh plugin add github:uckkk/dsh-api-budget
The dependencies are as follows:
* @deepseek-ai/cordis (the version must be ^4.0.1)
* @deepseek-ai/dsh-tools (the version must be >=0.1.0-rc.6)
Typical Usage¶
After the plugin is installed, you can use it by directly invoking the plugin-registered tool api_budget in the session.
Notes¶
- Runtime Permissions: The plugin runs with the permissions of the current DSH process. Before installation, be sure to check the source code and license.
- License: It is licensed under the MIT License.
Summary¶
dsh-api-budget provides developers with a lightweight, network-independent API latency budget tool, suitable for scenarios that require fine-grained control over calculation logic.