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:

  1. Basic Operations

    • add: Add two numbers
    • subtract: Subtract two numbers
    • multiply: Multiply two numbers
    • divide: Divide two numbers
    • exponentiation: Calculate powers, supporting negative integers and decimals
  2. Trigonometric Functions

    • sine: Calculate the sine function
    • cos: Calculate the cosine function
    • tangent: Calculate the tangent function
    • cotangent: Calculate the cotangent function
    • secant: Calculate the secant function
    • cosecant: Calculate the cosecant function
  3. 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 base
    • math_sqrt: Calculate square roots using Python’s built-in math module
    • operator_sqrt: Calculate square roots using the exponent operator
    • complex_sqrt: Calculate complex square roots
  4. Inverse Trigonometric Functions and Factorials

    • arcsin: Calculate the inverse sine function
    • arccos: Calculate the inverse cosine function
    • arctan: Calculate the inverse tangent function
    • factorial_math: Calculate factorials
  5. 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