qianshe/dsh-assistant-optimization ↗★ 0
dsh-assistant-optimization
助手优化插件,可将渲染错误的思考/推理内容折叠为可收起区块,并支持行内渲染 Mermaid 图表。
AI 分析
核心用途是优化 DSH Web 的对话渲染体验。适合需要清晰查看模型推理过程、频繁交互 Mermaid 流程图的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:qianshe/dsh-assistant-optimization说明文档
阅读完整 README ↗Usage
After installation, the plugin works automatically — no extra steps needed.
- Reasoning fold — When a model outputs `` (or any marker you configure), the reasoning text before it is collapsed into a "Think" disclosure. Click to expand/collapse.
- Mermaid — Any
```mermaidcode block in the conversation renders as an SVG diagram. Use the toolbar buttons (zoom in/out/reset), scroll wheel to zoom, or mouse/touch drag to pan. - Custom markers — Go to Settings → General → Thinking Tag Markers to add or remove split markers (different models may use different tags).
Configuration
| Setting | Default | Description |
|---|---|---|
| Markers | ["](https://github.com/qianshe/dsh-assistant-optimization/blob/84ccb69e7285130d2d6b1b37414c60f8a6dff42d/lib/client.js) | Strings that split reasoning from body text. Text before a marker becomes a collapsible block. Multiple markers supported. |
Configuration
| Setting | Default | Description |
|---|---|---|
| Markers | ["](https://github.com/qianshe/dsh-assistant-optimization/blob/84ccb69e7285130d2d6b1b37414c60f8a6dff42d/lib/client.js) | Strings that split reasoning from body text. Text before a marker becomes a collapsible block. Multiple markers supported. |