DeepSeek Harness follows the ecosystem philosophy of “everything is a plugin.” When building agents that involve mathematical logic, directly calling external APIs often introduces latency, while local computation is more efficient. dsh-is-perfect specifically addresses the need for “perfect number determination,” giving the DSH process local mathematical computation capabilities.

Plugin Positioning

This is a DSH plugin for determining perfect numbers. It is maintained by istone, implemented in pure Node, and does not depend on any network resources.

Core Features

  • Pure Node Implementation: All computation logic is completed locally, with no network requests.
  • Perfect Number Determination: Determines whether a given positive integer is a perfect number (that is, a number equal to the sum of all its proper divisors).

Installation and Enablement

Use the official installation command to add this plugin:

dsh plugin add github:uckkk/dsh-is-perfect

After the plugin is installed, the DSH process will gain the corresponding computation logic.

Typical Usage

After the plugin is loaded, the DSH process can perform perfect number checks. Because it uses pure local computation, processing speed mainly depends on system performance and is not affected by network status. Developers can directly call the relevant logic in code to handle mathematical requests.

Notes

  • Dependency Environment: Please ensure that the current environment meets the following dependency version requirements:
    • @deepseek-ai/cordis: ^4.0.1 or higher
    • @deepseek-ai/dsh-tools: >=0.1.0-rc.6
  • Code Review: The plugin runs with the permissions of the current DSH process. It is recommended to review the source code before installation to confirm that its behavior meets security expectations.
  • Open Source License: This project is open-sourced under the MIT License.

Summary

For DSH developers who need to handle specific mathematical logic, dsh-is-perfect provides a lightweight, standalone, and network-independent solution. The related code is hosted in a GitHub repository.