dsh-md-export: Export DeepSeek Harness Sessions to Clean Markdown

Preface

After finishing a round of conversation in DeepSeek Harness (DSH), a common need is to keep the content in a repository, notes, or tickets. Manual copying loses structure, and screenshots are not convenient for searching. The community plugin dsh-md-export (maintainer hoshF) provides Export MD / 导出 MD in the session title bar, going through the system save dialog; the same rendering logic also offers CLI and HTTP interfaces for easy scripting. The SkillHub catalog classifies it as a networking tool: hoshF/dsh-md-export.

What Is This

dsh-md-export is positioned to convert the current DSH Web session into a Markdown file following a conventional format. The default output does not include thinking and tool records, making it suitable for archiving as a “readable conversation transcript”; when a complete trajectory is needed, it can be enabled via CLI or HTTP parameters.

The project is hosted on GitHub and licensed under MIT (current version 1.7.2 in package.json). The runtime environment requires Node ≥ 22.15 and DSH 0.2.x; verified session formats include v0 / v3 / v4 (including multi-frame zstd logs). The plugin declares zero external dependencies and no build step, and can be installed directly from a Git URL.

Core Features

The following describes capabilities that are documented in the README and consistent with the implementation.

One-click Export (Web)

Select Export MD (导出 MD in the Chinese interface) in the session title bar, then choose a path in the native save dialog. The suggested filename is the session title (e.g., Refactoring the parser.md), which can be renamed in the dialog; after completion, a toast will indicate the actual filename written. Only one export is allowed at a time.

Output Structure

The default Markdown follows the AfterChat / ChatFormat style: no H1, with the order ## Metadata → ## Conversation → ### References; roles are distinguished by emoji headings (e.g., ### 🧑‍💻 User, ### 🤖 Assistant). Metadata can include model, time, Session ID, workspace path, URL, etc.

The button does not include thinking and tool calls by default. To include reasoning and tool records in the export, use --tools --reasoning in the CLI, or set tools=1&reasoning=1 in the HTTP request (the button still uses default options).

CLI and HTTP

  • CLI entry: bin/dsh-md-export.mjs, sharing the same renderer as the UI.
  • HTTP: GET /api/md-export also uses this renderer, for easy integration.

The plugin reads the DSH host’s local session logs and writes Markdown to your specified path; UI text switches with the application language (English / Chinese).

Installation and Activation

The DSH ecosystem adopts the “everything is a plugin” approach; SkillHub is a community directory site with no official affiliation with DeepSeek / High-Flyer. Before installing, it is recommended to browse the repository source code and LICENSE to confirm they meet your security and compliance requirements — the plugin accesses local sessions and files with the current DSH process permissions.

  1. Open Plugins → Add plugin in the sidebar.
  2. Paste the repository URL:
https://github.com/hoshF/dsh-md-export
  1. Restart DSH, then hard refresh the page (macOS: ⌘⇧R; Windows / Linux: Ctrl+Shift+R).

The README explains that there is no separate npm release package; the application installs the content resolved from the default branch to a specific commit. Update means pasting the same URL again in Plugins → Add plugin and reinstalling; to pin a version, install from a tag instead of the branch. Uninstall by removing dsh-md-export on the Plugins page.

Typical Usage

Export in the App

First perform the export: title bar Export MD → choose save location → confirm. The default result is a “clean” conversation transcript (no thinking / tool blocks).

Command Line

Execute in a directory where the plugin is installed or in an environment where the PATH is available (paths depend on your installation):

node bin/dsh-md-export.mjs                        # latest session
node bin/dsh-md-export.mjs <file|sessionId>       # specified session
node bin/dsh-md-export.mjs --list                 # list sessions
node bin/dsh-md-export.mjs --all -o out.md        # includes extended content like tool, thinking

Default output goes to ~/dsh-transcripts/<title>.md; add --stdout to print to standard output. -o / --out must include a path; when the filename starts with -, you can write ./-name.md. Invalid output parameters will fail before writing the file.

When thinking and tool records are needed, example:

node bin/dsh-md-export.mjs <sessionId> --tools --reasoning --stdout

For more complete format conventions, see the repository docs/FORMAT.md.

Use Cases and Notes

Who it’s for: developers who need to archive DSH conversations to Git, documentation systems, or knowledge bases, and want unified, diff-able Markdown structure; when batch or CI retrieval of transcripts is needed, it can be combined with CLI / HTTP.

Compatibility: targets DSH 0.2.x and the listed session formats; after upgrading DSH or session formats, if export behaves abnormally, check the repository README’s Compatibility section and issues.

Security: export reads local session logs and writes local files; before use, understand the host-side route access rules (the README Security section). Do not install unreviewed plugins in untrusted environments.

Conclusion

dsh-md-export uses one button and one renderer to align Web saving, CLI, and HTTP, outputting readable conventional Markdown. If you are already using DSH for daily development conversations, you can follow the steps above to install from the GitHub URL and try Export MD once in a session.

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

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

Xiaoye