Introduction¶
The core philosophy of DeepSeek Harness (DSH) is “everything is a plugin.” When building agents, if specific business logic, such as annual leave calculation, needs to be integrated, hard-coding it directly in the code is neither flexible nor easy to maintain. This article introduces the dsh-leave-days plugin, which provides parameter-based annual leave calculation.
What Is This¶
dsh-leave-days is a DSH plugin for calculating annual leave days, maintained by uckkk. By using the plugin registration method, the tool supports precise calculation based on parameters and returns detailed results without relying on a network environment.
Core Features¶
- Precise parameter-based calculation: Supports calculating annual leave days by passing parameters.
- Detailed results: The calculation process and results are returned in a structured way.
- Pure Node implementation: Built on Node.js at the underlying layer.
- No network dependency: Runtime does not depend on external network requests.
Installation and Activation¶
Installing the plugin requires using the official command. Run the following in the terminal:
dsh plugin add github:uckkk/dsh-leave-days
After installation, you can invoke the tool registered by the plugin in a DSH session.
Typical Usage¶
According to the plugin documentation, after installation, the tool is automatically registered into the current DSH session. Users can invoke the tool directly in the conversation to use it, without additional parameter or interface configuration.
Use Cases and Caveats¶
Use Cases:
Suitable for developers who need to integrate automatic annual leave calculation logic into agent workflows.
Caveats:
1. Environment dependencies: The plugin depends on @deepseek-ai/cordis (^4.0.1) and @deepseek-ai/dsh-tools (>=0.1.0-rc.6) to run.
2. Permission check: Because DSH plugins run with the current process permissions, be sure to review its GitHub source code (link) and license before installing or invoking it.
Summary¶
dsh-leave-days provides a lightweight annual leave calculation solution, suitable for scenarios that require quickly integrating this type of business logic in a DSH environment. For more details, refer to the plugin catalog or its GitHub repository.