将当前 DSH 对话或选定轮次导出为干净、易读的 Markdown。
安装
# npm 包(预构建)
dsh plugin --profile web add dsh-conversation-exporter
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:liuyuelintop/dsh-conversation-exporter
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本。请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
该插件的 README 只有英文版本。
DSH Conversation Exporter adds two local export actions to DeepSeek Harness (DSH) Web. Export Chat downloads the whole current conversation as clean, readable Markdown in one click. Select turns… exports a chosen subset of whole conversation turns. A turn means the Human message or messages plus the corresponding final Assistant response; selected turns keep their original chronological order, and unselected turns are omitted.
Demo
Export directly from DSH Web

Clean Markdown output

V0.3 Selective Turn Export
Choose only the whole conversation turns you want to keep.

Selected turns preserve rich Markdown, including Mermaid diagrams.

Unselected turns are omitted while the original chronological order is preserved.

Export Chat vs. Session Log
Export Chat is an additive action; it does not replace or modify DSH's official Session Log export.
| Export Chat | Official Session Log | |
|---|---|---|
| Purpose | Reading and AI handoff | Debugging, recovery, and replay |
| Contents | Human messages and final assistant answers | Raw events, chunks, tool activity, metadata, and attachments |
| Format | One Markdown file | ZIP of JSONL artifacts and media |
Use Export Chat when you want the conversation. Use Session Log when you need a lossless record of how DSH produced it.
Install and activate
For DSH installations run through npx @deepseek-ai/dsh, add the plugin to the web
profile:
npx @deepseek-ai/dsh plugin --profile web add dsh-conversation-exporter@latest
Adding the package to the web profile activates its host and browser components. If DSH
Web is already running, stop it and restart it so the profile is recomposed:
npx @deepseek-ai/dsh web
Use
- Open a conversation in DSH Web.
- Select Export Chat to download the whole current conversation immediately, or Select turns… to choose whole turns from a chronological list.
- If using the selector, all turns start selected. Use Select all or Clear as needed, then choose Export selected turns. Export remains disabled when none are selected.
- Your browser downloads
<session-title>--<short-session-id>.md, for exampleProject-Architecture-Guide--2002da4d.md.
The latest readable DSH session title becomes the Markdown H1 and a safe, readable
filename stem: <session-title>--<short-session-id>.md. The export uses blockquoted
Human and Assistant labels and preserves message Markdown. If one message leaves a
fenced code block open, the exporter closes that fence before the next transcript
section. An unanswered turn is marked with > Response incomplete., and an image-only
human message is retained as [Image omitted].
Privacy
Exporting is local-only. The plugin reads the selected DSH session through the local DSH runtime and returns the Markdown to the same local Web application. It has no upload, cloud storage, telemetry, or analytics path. The repository contains only hand-written, sanitized test conversations. The selector receives only short previews derived from the already-filtered conversation. The selector and Markdown export exclude reasoning, tool calls and results, injected context, runtime metadata, and raw Session Log data.
Limitations
- Exports the current session only, in Markdown only.
- Selects whole conversation turns only; Human and Assistant bubbles cannot be selected independently.
- Keeps human-authored text and the final assistant answer; attachments, reasoning, tool activity, injected context, subagent logs, and intermediate responses are omitted.
- Preserves message Markdown verbatim except for a deterministic closing fence added when a message otherwise ends inside a fenced code block.
- Images are not embedded; an image-only human message is represented by the
[Image omitted]placeholder.
Compatibility
DSH is developer-preview software and its plugin APIs may change. V0.3 targets
@deepseek-ai/dsh@0.1.0-rc.6; a later DSH version may require an exporter update.
Development
Requires Node.js 20 or newer.
To install the plugin from a local checkout for contributor or development testing:
npx @deepseek-ai/dsh plugin --profile web add .
Run the project verification locally:
npm run verify
This runs the complete test suite, JavaScript syntax checks, and an npm package dry-run.
Licensed under the MIT License.
链接
同类插件
Anionex/dsh-turn-rewind★ 83
对话回退:基于持久 Change Ledger 回滚会话与工作区状态。
Nwflower/dsh-chat-import★ 71
把 13 家 coding agent(Claude Code、Codex、ChatGPT、Cursor、Gemini、opencode 等)的完整对话历史导入为可续聊的 DeepSeek Harness 会话,并支持反向导出回 Claude Code。
whyihaveyou/dsh-suite#plugin-session-export★ 42
把 append-only 会话日志导出为按轨迹来源分组的可读 Markdown 或 HTML。
Chinesezjc/dsh-interconnect★ 34
跨实例互联:经 interconnect 服务在多个 DSH 实例间转发消息与事件。
Moeblack/dsh-message-edit★ 32
基于分支的消息编辑、reroll、重试与版本时间线。
hellodigua/dsh-share★ 27
一键分享你的对话。