Introduction

In the plugin-oriented architecture of DeepSeek Harness (DSH), handling date logic usually requires writing additional scripts or calling external APIs. The dsh-date-calc plugin encapsulates common date calculation logic as local tools, reducing dependence on external services.

Plugin Overview

This plugin is maintained by uckkk and is a pure Node.js implementation of a date calculation tool. By running locally, it provides date interval calculation, date addition/subtraction, and weekday lookup features, making it suitable for agent scenarios that require precise date handling.

Core Features

The plugin provides the following three main tools:
* date_diff: Calculates the number of days between two dates.
* date_add: Adds or subtracts time from a specified date.
* weekday: Queries the weekday for a specified date.

Installation and Activation

Use the following command to install the plugin:

dsh plugin add dsh-date-calc

Or use the GitHub address:

dsh plugin add github:uckkk/dsh-date-calc

After installation, the plugin automatically adds "dsh-date-calc" to dsh.profile.bundles in the profile’s package.json. Once installation is complete, the tools registered by the plugin can be invoked in the session.

Typical Usage

After installation, you can directly call the tool functions. For example, to calculate how many days are between two dates:

date_diff(from="2026-08-16", to="2026-09-01")

Notes

The plugin runs locally with the permissions of the current DSH process. Be sure to review its source code before installation to ensure it meets security requirements.

Summary

dsh-date-calc provides lightweight date calculation capabilities for the DSH ecosystem. See the community catalog or the GitHub repository for more plugin details.