Introduction¶
The design philosophy of DeepSeek Harness (DSH) is “everything is a plugin,” allowing developers to enhance agent capabilities by adding extension components. When performing data analysis or scientific computing, directly invoking calculation capabilities in a conversation is more efficient than writing code snippets. xby-math-genie-calc is a plugin designed for this use case.
Plugin Overview¶
xby-math-genie-calc is a DSH client plugin maintained by xby-skill. It brings Python’s scientific computing capabilities into the DeepSeek Harness environment, providing an execution interface that ranges from basic arithmetic to complex mathematical functions.
Installation and Enablement¶
Use the following command to install the plugin. By default, the web profile is used (--profile web).
dsh plugin --profile web add github:xby_skill/xby-math-genie-calc
Core Features¶
The plugin provides the following calculation capabilities:
-
Basic Operations
add: Add two numberssubtract: Subtract two numbersmultiply: Multiply two numbersdivide: Divide two numbersexponentiation: Calculate powers, supporting negative integers and decimals
-
Trigonometric Functions
sine: Calculate the sine functioncos: Calculate the cosine functiontangent: Calculate the tangent functioncotangent: Calculate the cotangent functionsecant: Calculate the secant functioncosecant: Calculate the cosecant function
-
Logarithms and Roots
natural_log: Calculate the natural logarithm (base e)common_log: Calculate the common logarithm (base 10)custom_log: Calculate the logarithm based on a given basemath_sqrt: Calculate square roots using Python’s built-in math moduleoperator_sqrt: Calculate square roots using the exponent operatorcomplex_sqrt: Calculate complex square roots
-
Inverse Trigonometric Functions and Factorials
arcsin: Calculate the inverse sine functionarccos: Calculate the inverse cosine functionarctan: Calculate the inverse tangent functionfactorial_math: Calculate factorials
-
Configuration
set_xby_apikey: Set the API key in chat. This operation is automatically persisted and remains valid after a restart.
Typical Usage¶
In the DSH chat window, you can directly invoke the above commands.
- Set API Key:
set_xby_apikey(the key must be obtained in advance from the Xiaobenyang official website) - Numeric Calculation: For example,
add 10 5,subtract 20 8 - Function Calculation: For example,
sine 0.5,natural_log 10
Use Cases and Precautions¶
This plugin is suitable for scenarios that require frequent mathematical calculations, such as assistance with student assignments or preliminary processing of research data.
Before use, register on the Xiaobenyang official website and obtain an API key. The plugin runs with the permissions of the current DSH process. Please review the source code and license before installing.
Summary¶
xby-math-genie-calc provides DSH with native scientific computing capabilities. For more details, please visit:
* Plugin Directory Page
* GitHub Repository