dsh-math
by hatter123
DeepSeek Harness 科学计算插件:数值 + 符号运算(mathjs + Algebrite)
Scientific computing plugin for DeepSeek Harness: numeric + symbolic math (mathjs + Algebrite)
安装
dsh plugin --profile web add github:hatter123/dsh-mathGitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗
安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。
README
DeepSeek Harness 的科学计算插件。它注册一个 math 工具,同时覆盖数值计算与符号代数(CAS),让 agent 无需离开对话即可求值表达式、推导与化简公式。
功能
math 工具接收 operation(操作)、expression(表达式)和可选的 variable(变量)。
| operation | 说明 | 引擎 |
|---|---|---|
eval |
数值表达式:单位换算、矩阵、统计、复数、大数 | mathjs |
simplify |
化简表达式 | Algebrite |
expand |
展开表达式 | Algebrite |
factor |
因式分解多项式 | Algebrite |
derivative |
对变量求导 | Algebrite |
integral |
符号不定积分 | Algebrite |
solve |
求多项式的根 | Algebrite |
两个引擎分工:mathjs 负责数值求值(单位、矩阵、统计、复数、大数),Algebrite 负责符号代数(积分、因式分解、解方程——这些是 mathjs 不提供的)。
安装
从 npm:
dsh plugin --profile web add dsh-math
从 Git 仓库(需要仓库提供 prepare 脚本以构建,或固定到某个 commit):
dsh plugin --profile web add github:owner/dsh-math
用法
agent 在需要计算时会自动调用 math 工具。它能回答的示例:
- 行列式:
det([[1,2],[3,4]])→-2 - 单位换算:
5 cm to inch→1.9685039370078743 inch - 大数:
2^100→1.2676506002282294e+30 - 求导:
derivative(x^2, x)→2*x - 积分:
integral(x^2, x)→1/3*x^3 - 解方程:
roots(x^2 - 3x + 2)→[1,2]
许可证
MIT
原始 README: https://github.com/hatter123/dsh-math/blob/master/README.zh.md ↗
同类插件
查看全部 →
dsh-anchored-standard
两阶段 DeepSeek Harness 预设:先 Minimal 对齐的 bootstrap,再切完整 Standard 工具(Project2 98/99)

PicGo-Core
极致的图片上传引擎,CLI 与 API 双支持

awesome-deepseek-harness
DeepSeek Harness(DSH)及其优秀社区插件的精选指南。

awesome-deepseek-harness
DeepSeek Harness (DSH)生态系统:来自dsh-external/hub和公共dsh-plugin主题的精选插件、工具和基础设施。

AI-Novel-Writer
本地优先 AI 小说创作工作台,提供 Windows/macOS 桌面版与 DeepSeek Harness 插件开发预览,支持角色、大纲、章节蓝图、审稿修稿和本地模型。

mcp-for-stata
MCP-for-Stata:把 Stata 集成进你的 agent