DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Matlab — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
M

dsh-matlab

Matlab

DeepSeek Harness plugin: matlab.run tool — run MATLAB code via matlab -batch and return output plus saved figures.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:weijianguizhou/dsh-matlab#e0ed814b3b4141a629a6ca23243126209ea56d42
READMECompatibilityVersions

Compatibility and provenance

Matlab is published as dsh-matlab and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
8/21/2026

Versions

0.1.0stable
8/21/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
MIT
Source
github
GitHub
★ 1
Weekly downloads
0
Last push
8/20/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in developer-tools.

Web App@deepseek-ai/dsh-web-appThe dsh browser-surface bundle: the web patch layer over dsh-base plus the runtime glue plugin (frontend dist serving, web-surface prompt, bash runtime variables, URL line)Sdk Minimal@deepseek-ai/dsh-sdk-minimalThe standalone minimal SDK profile bundle: JSON-RPC, one DeepSeek adapter, persistent shell, and JSONL sessionsSdk App@deepseek-ai/dsh-sdk-appThe dsh SDK profile bundle: stdio JSON-RPC serving and process lifecycle over dsh-baseSubagent Codex@deepseek-ai/dsh-subagent-codexOne-shot Codex subagent provider over the official app-server protocol

README

dsh-matlab

DSH(DeepSeek Harness)插件:给 Agent 提供 matlab.run 工具——直接跑 MATLAB 代码并返回输出和图片。

特性

  • matlab.run 工具:传 MATLAB 代码 → 写入临时 .m 脚本 → matlab -batch 执行 → 返回 stdout/stderr。
  • 自动存图:代码产生的所有 figure 自动保存为 PNG,返回文件路径(存于工作区 .dsh-matlab/figures/)。
  • 安全审批:MATLAB 可执行任意代码,默认每次调用前请求用户批准(可关闭)。
  • 本地执行:跑在你本机的 MATLAB 上(路径可在插件配置里改)。
  • 零侵入:纯 host 工具插件,不修改任何官方代码。

安装

在目标 profile 中作为 link 依赖安装并加入 bundle 层:

dsh plugin --profile desktop add link:/path/to/dsh-matlab

或在 profiles/<name>/package.json 手动加入依赖,并确保它出现在 dsh.profile.bundles 列表中。装完重启 DSH Desktop 即生效。

配置

插件行可带 config(示例,加在你的 profile 的组合配置里):

- id: matlab
  name: dsh-matlab
  config:
    matlabPath: "D:\\Program Files\\MATLAB 2025\\bin\\matlab.exe"   # MATLAB 可执行文件
    timeoutMs: 120000
    requireApproval: true

不配置则用默认值(检测到的本机 MATLAB 路径)。

开发构建

npm install   # 安装运行时依赖
npm run check # 语法检查

工作原理

  1. matlab.run 接收 code(MATLAB 代码)和可选 workdir。
  2. 把代码写到工作区 .dsh-matlab/run-*.m,末尾追加存图代码段。
  3. 通过 host 子进程通道执行 matlab -batch "run('...')",捕获 stdout/stderr。
  4. 把 .dsh-matlab/figures/ 下的 PNG 列进结果返回给模型。
  5. 退出码非 0 时以 MATLAB_RUN_FAILED 报错,错误信息含 MATLAB stderr,模型可据此改代码重试。

目录结构

src/host/index.js  工具定义(defineTool)与审批钩子
cordis.patch.yml   bundle 补丁:插入插件行

License

MIT