deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
这是一个移植(port)自 pi-mermaid(MIT,Gurpartap Singh)的 DeepSeek Harness 插件。 上游在 Pi 的 TUI 里把 Mermaid 渲染成 ASCII 图;dsh 没有 TUI 渲染器,所以本移植把同一套解析与校验逻辑接到 dsh 的 web client,渲染成 SVG 图。上游文字是英文而受众是中文使用者——「100% 原样复制」规则禁止翻译,这里照实说明。
graph / flowchart、sequenceDiagram、classDiagram、erDiagram、stateDiagram(-v2)/mermaid 命令手动重渲染最后一条助手消息对话里的
```mermaid
graph TD
Start --> End
```
会变成一张真正的 SVG 流程图(而不是代码块)。sequenceDiagram、classDiagram 等类型同样支持。
⚠️ 尚未发布到 npm。以下二选一:
- 本地路径:先
npm install再dsh plugin add ../dsh-mermaid- GitHub 源码:
dsh plugin add github:GongYuanCaiJi/dsh-mermaid(需要 allowBuilds 允许prepare构建)
# 本地路径安装(装进内置的 web profile,即 dsh 的网页客户端)
cd dsh-mermaid && npm install
dsh plugin --profile web add ../dsh-mermaid
dsh --profile web
# 或 GitHub 源码安装
dsh plugin --profile web add github:GongYuanCaiJi/dsh-mermaid
dsh --profile web
安装后在 web client 里发送一段包含 ```mermaid 围栏的消息,图就会出现在该轮对话的末尾。
| 方式 | 说明 |
|---|---|
| 自动渲染 | 对话中出现 ```mermaid 围栏(用户或助手)即自动渲染 |
/mermaid 命令 |
手动渲染最后一条助手消息里的 Mermaid 围栏 |
{ name, apply });ctx.on('session/event') 取代 pi.on('input'/'agent_end');renderMermaidSVG 取代 renderMermaidAscii(同一个 beautiful-mermaid 包);TUI 渲染器改为 web client 槽(turnTail slot)喜欢这个插件的话,也请给上游 pi-mermaid 一个 star ⭐
MIT © 2026 Gurpartap Singh (pi-mermaid) · © 2026 GongYuanCaiJi (dsh port)
A DeepSeek Harness plugin that renders ```mermaid fenced blocks in chat as SVG diagrams in the web client.
This is a port of pi-mermaid (MIT, by Gurpartap Singh). Upstream renders Mermaid as ASCII art inside Pi's TUI; dsh has no TUI renderer, so this port keeps the same parsing/validation logic and renders SVG diagrams in the dsh web client instead. The README is bilingual because the upstream text is English while the audience is Chinese — the "copy 100% verbatim" rule forbids translation, so this note states it plainly.
graph / flowchart, sequenceDiagram, classDiagram, erDiagram, stateDiagram(-v2)/mermaid command re-renders the last assistant messageA chat message containing
```mermaid
graph TD
Start --> End
```
becomes a real SVG flowchart instead of a code block. sequenceDiagram, classDiagram and friends work the same way.
⚠️ Not published to npm yet. Pick one:
- Local path:
npm installfirst, thendsh plugin add ../dsh-mermaid- GitHub source:
dsh plugin add github:GongYuanCaiJi/dsh-mermaid(needs allowBuilds sopreparecan build)
# local path (installs into the built-in `web` profile, the dsh web client)
cd dsh-mermaid && npm install
dsh plugin --profile web add ../dsh-mermaid
dsh --profile web
# or GitHub source
dsh plugin --profile web add github:GongYuanCaiJi/dsh-mermaid
dsh --profile web
After installing, send a message containing a ```mermaid fence in the web client — the diagram appears at the end of that turn.
| Way | Description |
|---|---|
| Auto | Any ```mermaid fence in chat (user or assistant) renders automatically |
/mermaid |
Manually render Mermaid fences in the last assistant message |
{ name, apply }); ctx.on('session/event') instead of pi.on('input'/'agent_end'); renderMermaidSVG instead of renderMermaidAscii (same beautiful-mermaid package); the TUI renderer became a web client slot (turnTail)If you like this plugin, please also star the upstream pi-mermaid ⭐
MIT © 2026 Gurpartap Singh (pi-mermaid) · © 2026 GongYuanCaiJi (dsh port)
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。