jianyuepei/dsh-session-mindmap ↗★ 0

dsh-session-mindmap

DSH plugin: turn a session into a self-contained interactive HTML mind map. 适合需要将长对话或复杂讨论快速整理成可视化脑图结构的用户。

パッケージ
dsh-session-mindmap
互換性
未検証
Harness ピア範囲
>=0.2.0-rc.2 <0.3.0
バージョン
0.2.0
ライセンス
MIT
最終更新
2026/10/04

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:jianyuepei/dsh-session-mindmap

ドキュメント

README 全文を読む ↗

Usage

Ask the model:

把这个会话整理成脑图

or call the tool yourself:

session_mindmap
  sessionId?  "last" or a session id; defaults to the current session
  kinds?      CSV of topic,conclusion,decision,todo,question,file
  focus?      only summarise this topic
  language?   zh or en; defaults to the plugin config
  force?      ignore the cache and call the model again

or use the command, which never involves the model in deciding anything:

/mindmap                       # current session
/mindmap last                  # most recent session
/mindmap session-abc --reveal  # a specific session, then select it in the file manager
/mindmap --no-open             # write the file quietly
/mindmap --focus=发布方案       # only one topic
/mindmap --kinds=topic,file    # include the files that were touched
/mindmap --lang=en             # one English map, without touching the config
/mindmap list                  # recent sessions with their ids and titles

The command is the intended entry point: it runs even when you do not want to spend a model turn on the request itself.

Configuration

Set these in the plugin row (profile cordis.patch.yml) — a patch replaces the whole config object, so restate every key you want to keep:

- id: session-mindmap
  name: 'dsh-session-mindmap'
  config:
    language: en
    maxNodes: 120
KeyDefaultMeaning
provider / modelemptyEmpty follows the agent's default model. Point these at a cheap model if you generate these often.
kindstopic, conclusion, decision, todo, questionNode kinds to extract. Add file to include the files a session touched.
languagezhNode language: zh or en (the language tool argument overrides it for one run).
maxInputTokens24000Transcript budget for one model call.
maxBlocks8Hard cap on map calls for a long session, plus one merge call.
maxNodes / maxDepth80 / 4Clamps applied to whatever the model returns.
maxOutputTokens / temperature8000 / 0.2Per-call generation settings. A node costs roughly (label + detail) characters, so this cap has to hold the whole answer — see Troubleshooting.
llmTimeoutMs180000Per-call timeout.
outputDir.dsh/mindmapRelative to the session workspace; absolute paths are accepted.
cachetrueReuse the last result while the session has not grown.
openAfterBuildtrueOpen the artifact after a human runs /mindmap. Ignored for model-invoked calls, which leave a deliverable card instead.