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.

Chat Figure — DSH Plugin for DeepSeek Harness
← Plugins
C

dsh-chat-figure

Chat Figure

DSH 聊天内原生图解与练习 / native in-chat diagrams and quizzes for DeepSeek Harness:把 ```figure / ```tree / ```quiz 代码块渲染成随主题自适应的 HTML,不用图片也不用 Mermaid

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

npx -y @deepseek-ai/dsh plugin --profile web add github:Wh1stle05/dsh-chat-figure#ff5cc8eae6b15e264f98b613268a8669fb039515
READMECompatibilityVersions
结构图进程树选择题
判分
深色主题

Compatibility and provenance

Chat Figure is published as dsh-chat-figure and currently resolves to version 0.2.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
10/19/2026

Versions

0.2.0stable
10/19/2026
0.1.0stable
10/19/2026

Related plugins

Loading related plugins…

Latest
0.2.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
10/19/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
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

Related plugins

More verified plugins in ui-customization.

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)Experimental Agent Team Web Profile@deepseek-ai/dsh-experimental-agent-team-web-profileExperimental Web profile layer for Agent Teams Remote and UI pluginsAb Chartdsh-ab-chartChart rendering tool with the browser card that draws its calls, in one publishable plugin packageBetter Sidebardsh-better-sidebarBetter Sidebar for DSH — file tree, editor, changes, tasks and side chat in one column, separate for every conversation. Also exposes a service other plugins use to register sidebar tabs and file viewers.

README

dsh-chat-figure

简体中文 | English


在 DSH 对话里画示意图、层级树和选择题。三种代码块会被渲染成真实 HTML:文字是真文字,可选中、可缩放、跟随明暗主题,选择题可以直接点着作答。零依赖,不联网,不调用模型。

功能

块用途产出
%%figure流程、结构、对比盒子、箭头、注释、标签、图注
%%tree进程树、目录树、调用层级缩进即层级,父节点加粗、叶子变淡
%%quiz随堂测验单选、提交判分、解析、进度、成绩页

效果

流程结构图层级树
结构图进程树
选择题(一次一题)答完立即判分
选择题判分
深色主题

深色主题

用法

块的第一行是哨兵,决定渲染成什么;围栏语言写什么都行。

%%figure

```figure
%%figure
title: fork() 之后:一分为二
sub: 父子各有独立 PID,内存先共享同一批物理页
arrow: fork()
row
box gray: 父进程 Bash | PID 1000 · fork() 返回 1001
box blue: 子进程 Bash(副本) | PID 1001 · fork() 返回 0
note: 返回值不同,同一份代码因此走向不同分支
pills: Copy-on-Write, PID, 地址空间
foot: 复制的是“进程状态”,不是磁盘上的程序。
```
行含义
title: / sub:居中标题 / 灰色副标题
arrow: 标签 或 arrow竖向箭头,标签可省略
row开始一行并列盒子,后续 box 归入该行
box [gray|blue|green|amber|plain] [wide]: 标题 | 副标题盒子;wide 强制整行
note: / pills: / foot: / gap居中注释 / 胶囊标签 / 底部图注 / 空隙

%%tree

```tree
%%tree
systemd (PID 1)
  uvicorn.service | PID 1000
    Worker 1 | PID 1001
    Worker 2 | PID 1002
```

缩进两格一层;标题 | 备注 的备注以灰色小字跟在后面。

%%quiz

```quiz
%%quiz
tag: Linux 小测验
q: Linux 中,kill -9 发送的是什么信号?
A. SIGTERM (15)
B. SIGKILL (9)
C. SIGSTOP (19)
D. SIGINT (2)
answer: B
why: -9 就是 SIGKILL,内核直接终止,既不能捕获也不能忽略。
```
  • 顶部是标签 + 第 n / N 题 + 进度条;
  • 单选 → 「提交答案」→ 判分并展开解析 → 「下一题」;
  • 最后一题后是成绩页:答对 x/N、逐题回顾、重做、复制结果;
  • 加一行 mode: list 改为一次显示整卷。
关键字含义
q: / 问题:开始一道新题
A. ~ H.选项
answer: / 答案:正确项
why: / 解析:判分后展示的解释
tag: / title:卡片顶部标签 / 标题

工作原理

  1. 识别:读代码块第一行,%%figure / %%tree / %%quiz 决定用哪个渲染器;
  2. 解析:逐行读指令,生成中间结构——空行和 # 注释忽略,流式输出中未闭合的块按已有内容先渲染;
  3. 渲染:生成普通 DOM,颜色全部从 currentColor 派生,深浅主题共用一套规则;内容变化时原地替换旧节点;
  4. 状态:选择题的选项、当前题号、完成态写入 localStorage,键是块内容的哈希,刷新和重渲染都能恢复;
  5. 调度:MutationObserver 监听会话 DOM,出现新代码块就处理一次。

安装

# 1. 链进 profile
ln -s /path/to/dsh-chat-figure ~/.dsh/profiles/web/node_modules/dsh-chat-figure

# 2. 在 profile 的 patch 层追加一行
cat >> ~/.dsh/profiles/web/cordis.patch.yml <<'YAML'
- insert:
    - id: chat-figure
      name: 'dsh-chat-figure'
YAML

刷新页面即生效,无需重启 dsh web。

限制

  • 仅支持 DSH Web,浏览器需支持 color-mix()(Chrome 111+ / Safari 16.2+ / Firefox 113+);
  • 渲染后会隐藏原始代码块,只显示图形;
  • 不支持 Mermaid 语法;
  • 判分在浏览器本地完成,模型看不到你的作答——用「复制结果」回传,或直接说明错题。

更新日志 · MIT