dsh-session-mindmap: Converting DeepSeek Harness sessions into standalone interactive HTML mind maps

Preface

In DeepSeek Harness (DSH), sessions tend to be long, with key information (conclusions, decisions, to-dos) scattered across dozens of conversation turns. Reading through the full transcript during retrospectives is inefficient. The dsh-session-mindmap plugin aims to solve this problem by generating a standalone HTML mind map file from the current session, making important information instantly visible.

What Is This

dsh-session-mindmap is a DSH client plugin maintained by jianyuepei. Its core function is to convert DeepSeek Harness sessions into standalone HTML mind maps. The generated file requires no network, fonts, or CDN — it is fully usable offline. Through incremental generation and state caching, it ensures accuracy while reducing model invocation overhead.

Installation and Activation

Before installing, ensure your DSH version is 0.2.0-rc.2 or higher. Install via the plugin manager:

dsh plugin add dsh-session-mindmap

After installation, the plugin registers the /mindmap command and related tools.

Typical Usage

The plugin can be triggered via the command line or directly in conversation with the model. Here are available command examples:

  • /mindmap: Generate a mind map for the current session.
  • /mindmap last: Generate a mind map for the most recent session.
  • /mindmap session-abc --reveal: Generate a mind map for a specified session ID and automatically select it in the file manager.
  • /mindmap --no-open: Silently generate the file without auto-opening it.
  • /mindmap --focus=发布方案: Generate a mind map focusing only on a specific topic.
  • /mindmap --kinds=topic,file: Include file-type nodes.
  • /mindmap --lang=en: Specify the output language (defaults to the configured language).
  • /mindmap list: List recent session IDs and titles.

Core Capabilities

  1. Offline and Standalone: The generated HTML file is fully self-contained, drawn with inline SVG, and has no external dependencies — it can be viewed offline or shared with others.
  2. Interactive Features: Supports node collapsing, drag-to-pan, scroll-to-zoom, search highlighting, and hovering to view the node source (e.g., conversation segment).
  3. Export: Supports exporting the mind map as PNG, Markdown, and Mermaid formats.
  4. Incremental Generation: If a mind map has already been generated for a session, running it again will show node changes (e.g., 13 → 18 nodes · +6 · -1) and mark newly added nodes.
  5. Smart Caching: Results are cached based on session state; when the session has no new content, model invocations are skipped to avoid duplicate costs.

Configuration and Caching

The plugin supports parameter settings in the configuration file. For example, setting the default language and maximum node count:

- id: session-mindmap
  name: 'dsh-session-mindmap'
  config:
    language: en
    maxNodes: 120

Result files are stored by default in the <session workspace>/.dsh/mindmap/ directory. The plugin automatically handles incremental updates and saves state in the .cache directory.

Notes

  • DSH Version Requirement: DSH 0.2.0-rc.2 or higher is required.
  • Mermaid Rendering Limitation: The DSH Web GUI does not support rendering Mermaid code blocks, so the mind maps generated by the plugin do not include Mermaid rendering themselves, but they support exporting to Mermaid code.
  • Data Reading: Session data is read via ctx.sessionQuery; disk logs must be decompressed to obtain complete information.
  • Error Handling: If the model returns a failure, the plugin reports an error and terminates; no fallback outline will be generated.
  • Privacy and Permissions: The plugin only reads session content and sends it to the configured model; data is only written to the session workspace and does not involve any other external transmission.

Conclusion

dsh-session-mindmap provides an efficient way to transform long conversations into structured documents. Through offline files, incremental updates, and interactive viewing, it helps developers better organize the flow of their sessions. For more details, please refer to the plugin directory or the GitHub repository.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye