hatter123 / dsh-math

已收录

Scientific computing plugin for DeepSeek Harness: numeric + symbolic math (mathjs + Algebrite)

master其他 查看源代码

安装

npx -y @deepseek-ai/dsh plugin --profile web add github:hatter123/dsh-math

此安装命令根据 GitHub 仓库地址生成,是未经验证的安装起点。

README

维护者编写的文档快照。

在 GitHub 查看 ↗
提交版本 c78227c同步于 2026年8月18日

dsh-math

Scientific computing plugin for DeepSeek Harness. It registers a single math tool that covers both numeric computation and symbolic algebra (CAS), so an agent can evaluate expressions and derive/simplify formulas without leaving the conversation.

Features

The math tool takes an operation, an expression, and an optional variable.

operationdescriptionengine
evalnumeric expression: units, matrices, statistics, complex numbers, big numbersmathjs
simplifysimplify an expressionAlgebrite
expandexpand an expressionAlgebrite
factorfactor a polynomialAlgebrite
derivativedifferentiate with respect to a variableAlgebrite
integralsymbolic indefinite integralAlgebrite
solvefind the roots of a polynomialAlgebrite

Two engines share the work: mathjs handles numeric evaluation (units, matrices, statistics, complex numbers, big numbers), and Algebrite handles symbolic algebra (integration, factoring, and equation solving that mathjs does not provide).

Install

From npm:

dsh plugin --profile web add dsh-math

From a git host (requires the repository's prepare script to build, or pin a commit):

dsh plugin --profile web add github:owner/dsh-math

Usage

The agent calls the math tool automatically when it needs a computation. Examples of what it can answer:

  • determinant: det([[1,2],[3,4]])-2
  • unit conversion: 5 cm to inch1.9685039370078743 inch
  • big number: 2^1001.2676506002282294e+30
  • derivative: derivative(x^2, x)2*x
  • integral: integral(x^2, x)1/3*x^3
  • solve: roots(x^2 - 3x + 2)[1,2]

License

MIT

仓库信息

开发语言
JavaScript
许可证
MIT
最后更新
2026年8月17日 09:38

谨慎安装

请检查源代码、权限、生命周期脚本、依赖与网络访问;不受信任的插件应先在隔离环境中测试。