AI Agent Hub
Back to plugins
🤖

dsh-tool-calculator

Model Inference Updated 2026.08.25

Run the following command in DeepSeek Harness:

dsh plugin install omdsh-dev/dsh-tool-calculator

Paste the following prompt into your AI chat to install this plugin:

In DeepSeek Harness, you can install this plugin using the command 'dsh plugin install omdsh-dev/dsh-tool-calculator', with the full source URL at https://github.com/omdsh-dev/dsh-tool-calculator.

About this plugin

In the daily reasoning of DeepSeek Agents, arithmetic calculation has always been a pain point. While the built-in bash tool can handle simple arithmetic via echo, each invocation spawns a new process, which is particularly slow on Windows and leads to significant cumulative latency with frequent use. Moreover, bash's limited arithmetic syntax does not support functions like sqrt, sin, or cos, forcing Agents to guess or write extra scripts for complex calculations, hurting efficiency and accuracy.

To address these issues, the dsh-tool-calculator plugin offers a safe and efficient mathematical expression evaluator. Built with a hand-written recursive descent parser, it completely avoids dangerous operations like eval or new Function, ensuring secure execution. With zero dependencies and zero process overhead, it performs calculations in milliseconds through pure function calls, supporting basic arithmetic operations, common math functions (e.g., abs, sin, log), and constants PI and E, covering most elementary mathematical needs.

This plugin is ideal for DeepSeek Agent developers and users, especially those requiring frequent mathematical calculations or complex expression handling. Whether for simple arithmetic verification or scientific computation, it provides stable, fast calculation support, enhancing the overall performance and user experience of the Agent.

Use Cases

  • Quickly execute Agent arithmetic tasks without process overhead
  • Calculate complex math expressions involving trigonometric or logarithmic functions
  • Perform risk-free mathematical evaluation in security-sensitive environments

Best For

  • Developers and users of DeepSeek Agents
  • AI application builders needing efficient, secure math calculations
  • Software engineers focused on performance and security