dsh-plugin-mermaid
Run the following command in DeepSeek Harness:
dsh plugin install sijidoubi/dsh-plugin-mermaid
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install sijidoubi/dsh-plugin-mermaid in your terminal to install this plugin. Source repository: https://github.com/sijidoubi/dsh-plugin-mermaid
About this plugin
When a DeepSeek Harness agent explains architecture, walks through a workflow, or writes technical documentation, it often needs flowcharts, sequence diagrams, or class diagrams. Previously the agent could only paste raw Mermaid source code into its reply, forcing the reader to copy it into an external tool to see the actual graphic. dsh-plugin-mermaid closes that gap: once installed, the agent calls the mermaid_render tool right after writing Mermaid code and receives an SVG image it can embed directly in the response, so the end user sees the rendered diagram with zero extra steps.
The entire rendering pipeline runs in-process: mermaid 11 handles parsing and layout, jsdom supplies the DOM layer, and the plugin patches the missing SVG text measurement APIs with a per-character width model that correctly sizes mixed CJK-Latin labels and multi-line text. No browser, no network access, fully offline. Tested and working for flowchart, sequenceDiagram, classDiagram, and pie. When rendering fails the tool returns the parser line number and expected token so the agent can self-correct and retry. In Web-chat mode images are served as absolute http URLs via a lightweight route; in headless mode a data-URI fallback is provided instead.
This plugin is ideal for anyone who wants their DeepSeek Harness agent to produce visual explanations inline-system design overviews, API call timelines, distribution breakdowns, and more. Pair it with dsh-image-zoom to click any rendered image and zoom in on details, bringing the experience close to a dedicated diagramming tool.
Use Cases
- Embedding flowcharts and class diagrams when the agent explains system architecture
- Illustrating API call sequences in technical documentation
- Presenting data distributions with inline pie charts
Best For
- Authors writing technical docs in DeepSeek Harness
- Developers who want their agent to produce inline diagrams
- dsh users running in offline or browser-less environments
Related Plugins
Free web search plugin for DeepSeek Harness with web search, X search, and page fetch; no signup or API key required, with automatic multi-engine failover.
AnySearch-powered web and vertical search plugin for DeepSeek Harness, offering real-time search, cleaned URL content, concurrent batch search via native web_search/web_fetch, no API key required.
Pixel-perfect webpage clone tool that uses an agent harness to turn any webpage into a scored, full-page React replica.
A bilingual cost-tracking plugin for DeepSeek Harness with session/daily cost, budget, official & custom provider balance, coding plan quotas, peak/off-peak pricing alerts, and history stats.