dsh-matlab
Run the following command in DeepSeek Harness:
dsh plugin install weijianguizhou/dsh-matlab
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install weijianguizhou/dsh-matlab in the DSH Desktop terminal to install this plugin; the source repository is available at https://github.com/weijianguizhou/dsh-matlab . Restart DSH Desktop after installation to activate it.
About this plugin
When an agent needs to run MATLAB code for numerical computation, signal processing, or figure generation, it usually has no direct path to execute that code and collect the output. dsh-matlab closes that gap by giving DSH agents a single-call bridge to the local MATLAB installation, letting the model drive MATLAB as transparently as it would any Python interpreter.
The workflow is a tight one-call loop. The agent passes a snippet of MATLAB code to the matlab.run tool; the plugin writes it to a temporary script, launches it through a matlab -batch subprocess, and captures the full stdout and stderr to return to the model. Every figure the code produces is automatically saved as a PNG, and the file path is included in the result so the model can reference the image directly for downstream reasoning. For safety, the plugin asks the user to approve each run by default, preventing the agent from silently executing arbitrary MATLAB code; in batch or pipeline workflows that gate can be switched off via configuration. When MATLAB exits with a non-zero code, the plugin surfaces a clear error code together with the stderr text, giving the model enough context to revise the code and retry.
If your day-to-day workflow involves asking an agent to run simulations, post-process experimental data, or prototype algorithms in MATLAB without leaving the desktop, dsh-matlab is built for that. It ships as a pure host-side tool plugin: no official source code is touched, everything runs locally, and once the MATLAB path is configured you are ready to go.
Use Cases
- Agent validates a numerical algorithm in MATLAB and retrieves stdout results in one call
- Batch-run signal processing scripts with all figures auto-exported as PNG files
- Iteratively debug MATLAB code in DSH chat, auto-revising based on stderr output
Best For
- Researchers and engineers who want agents to drive local MATLAB directly
- Engineers who need numerical simulation or data post-processing inside DSH workflows
- Developers who want to extend the agent toolbox without touching official source code
Related Plugins
A service-oriented sidebar framework for DSH, offering a full workbench with file explorer, embedded browser, real terminal, Git panel, and extensible plugin services.
A beautiful, practical Claude Code-style TUI plugin with pixel whale top bar, flowing glow title, real-time status line, streaming thought expansion, time rewind, context progress bar and TPS gauge — zero core changes.
The plugin market for DeepSeek Harness: browse/search/one-click install community plugins and themes, with updates, backup/restore, hot disable, diagnostics, and AI fix.
A persistent whale widget on the DSH web UI that shows DeepSeek balance, today's usage, and per-turn cost, with drag-and-snap and sound effects.