DSH Plugins
返回列表
🖥️

dsh-mermaid

客户端 更新于 2026.08.16

在终端中运行以下命令:

dsh plugin install GongYuanCaiJi/dsh-mermaid

将以下提示词粘贴到 DeepSeek Harness 对话框中:

在 DeepSeek Harness 终端中运行 dsh plugin install GongYuanCaiJi/dsh-mermaid 即可完成安装,插件源码位于 https://github.com/GongYuanCaiJi/dsh-mermaid 。

插件介绍

In the DeepSeek Harness web client, mermaid fences that appear in a conversation are currently shown only as raw code blocks; to see the actual diagram you have to copy the syntax into an external renderer. dsh-mermaid removes that friction: whether the message comes from the user or the assistant, any mermaid fence is automatically rendered as an inline SVG diagram with no extra steps.

The rendering pipeline reuses Mermaid official parser for syntax validation, so errors surface as warnings directly beneath the diagram instead of failing silently. Supported diagram types include flowchart, sequenceDiagram, classDiagram, erDiagram, and stateDiagram. Every rendered diagram ships with a collapsible source block for quick review or editing, and the /mermaid command lets you re-render the last assistant message on demand. Results are cached at (session, turn) granularity so repeats are not recomputed, and oversized fences exceeding 400 lines or 20000 characters are skipped with a notice to keep the page responsive.

If you frequently draw flowcharts, sequence diagrams, or class diagrams alongside AI in Harness conversations and want mermaid syntax to appear as visual diagrams right in the chat instead of copying it to another window, this plugin is built for exactly that workflow — lightweight, backend-free, and ready to use out of the box.

使用场景

  • 对话中粘贴或生成 mermaid 代码块时,自动渲染为内联 SVG 流程图
  • 与 AI 协作设计系统架构时,在聊天界面直接预览 sequence、flowchart、class 等图
  • 快速校验 mermaid 语法,解析错误直接显示在图形下方,无需跳转外部工具

适合人员

  • 在 DeepSeek Harness 中频繁使用 mermaid 语法绘制流程图的开发者
  • 需要与 AI 协作生成架构图但希望免去复制粘贴到外部渲染器的用户
  • 偏好轻量、无后端依赖的图表可视化工具的 Harness 用户