dsh-wolfram
学习研究 活跃维护

dsh-wolfram

hatter123/dsh-wolfram

Call Wolfram Mathematica from DeepSeek Harness

1
Stars 标星
0
Forks 分支
1
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
3 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:hatter123/dsh-wolfram
git clone https://github.com/hatter123/dsh-wolfram.git
git clone git@github.com:hatter123/dsh-wolfram.git
README.md main

dsh-wolfram

Call Wolfram Mathematica (or the free Wolfram Engine) from DeepSeek Harness. It registers a wolfram tool that runs Mathematica code through wolframscript and returns the result.

Prerequisites

Install Wolfram Mathematica or the free Wolfram Engine, which provides the wolframscript command. Verify it works:

wolframscript -code "Integrate[Cos[x], x]"

Install

dsh plugin --profile web add dsh-wolfram

Usage

The agent calls the wolfram tool automatically with one expression argument (a string of Mathematica code).

Examples:

  • integral: Integrate[Cos[x], x]Sin[x]
  • solve: Solve[x^2 - 1 == 0, x]{{x -> -1}, {x -> 1}}
  • limit: Limit[Sin[x]/x, x -> 0]1
  • series: Series[Exp[x], {x, 0, 3}]1 + x + x^2/2 + x^3/6 + O[x]^4

How it works

The plugin uses Node's built-in child_process module to run wolframscript -code <expression> and captures the standard output. It has no npm dependencies.

License

MIT