DSH Plugins Marketplace

DSH Plugins

Plugins

/

Sessions & Messages

/

dsh-session-md-export

y

dsh-session-md-export

Identified★ 1

把 DSH 会话一键导出成可读的 Markdown / Export a DeepSeek Harness session as readable Markdown, dialogue only.

dsh-session-md-export

把 DeepSeek Harness 的会话一键导出成可读的 Markdown。

One-click export of a DeepSeek Harness session as a readable Markdown file — dialogue only, no tool noise.

npm license

它解决什么

DSH 内置的 /export 下载的是会话日志 ZIP(原始 JSONL + 附件),面向备份和排障,人读不了。

这个插件补的是另一条腿:你要的是能直接读、能贴进 Obsidian/Notion/飞书、能喂给另一个模型的那份 Markdown。所以它只保留对话本身,把所有工具调用、工具输出、思考过程、系统提示都丢掉。

安装

dsh plugin --profile desktop add dsh-session-md-export

或在 DSH 里「插件 → 添加插件」输入包名 dsh-session-md-export,重启后生效。

使用

两种方式,行为完全一样:

  • 会话头部按钮:会话标题栏最右侧的下载图标,点一次直接下载。
  • 命令:在输入框敲 /md。

文件名是 <会话标题>-<yyyyMMdd-HHmm>.md,中文标题走 RFC 5987 编码,不会乱码。

导出内容

保留丢弃
用户消息正文工具调用与工具结果
助手正文思考过程(reasoning)
ask_user_question 的问答系统提示、注入的运行时上下文
压缩点标记命令、任务、重试等日志事件

ask_user_question 是唯一的例外:它的回答只存在工具结果里,但那是用户说的话,丢掉会让记录失真,所以按「问题短标签:答案」还原成用户发言。

输出示例

# 帮我把这个会话导出成 Markdown。

> session-fixture · 2025-10-21 06:40

**👤 用户**

帮我把这个会话导出成 Markdown。

**🤖 助手**

先看看当前会话的日志结构。

结构清楚了,直接渲染就行。

**👤 用户**

格式:Markdown
还有什么要补充的?:越简单越好

完整示例见 docs/sample.md。

设计取舍(为什么没有 frontmatter、为什么不给工具摘要、为什么不做 full 档)见 docs/design.md。

两条提醒

  • issue 里请勿附带真实会话的导出文件或日志,复现问题用合成数据即可。
  • 导出的 Markdown 忠实保留你在会话里输入过的全部内容(可能含密钥、内部信息),对外分享前请自查。

兼容性

  • 需要 DSH >=0.2.1-rc.3 <0.3.0。
  • 只在 Web 界面提供按钮;命令与下载路由同样只在 Web 载体上注册。

开发

npm test

测试是自包含的:test/fixture.jsonl 是一份合成会话日志,不依赖本机任何会话,覆盖渲染、边界情况和路由装配。

许可证

MIT

Comments

Loading…

From the same category

billion-context

by ranxianglei

基本稳定可用 100K tokens is enough. Universal context-compression proxy for ALL AI coding agents,10w上下文足矣

Sessions & MessagesManifest valid

★ 3.2k

MIT

TypeScript

Oct 28, 2026

dsh plugin --profile web add billion-context

A DeepSeek coding agent harness: persistent shell, Ultra subagents, auto approval, Chrome MCP and session telemetry

Sessions & Messages

★ 1k

MIT

JavaScript

Index only — not installable

by Han-1413141

DeepSeek Harness session cost meter plugin: session/daily cost, budget, history, OpenCode Go quota, official & custom-provider balance, Codex-like token heatmap, peak/off-peak pricing with pre-switch

Sessions & MessagesManifest valid

★ 556

↓ 26k/wk

MIT

JavaScript

Oct 26, 2026

dsh plugin --profile web add dsh-cost-meter

by Yuuyuko-uu

DSH 鱼的记忆:给会话一份会淡忘的长期记忆,每条都带时间

Development & InfrastructureMemory & ContextSessions & MessagesManifest valid

★ 319

MIT

JavaScript

Oct 28, 2026

dsh plugin --profile web add dsh-fish-memory

by Nwflower

Import 14+ external agent chat histories (Claude Code, Codex, ChatGPT, Cursor, Gemini, Reasonix, opencode, ZCode, Grok Build, OpenClaw, Pi, Hermes, Kimi CLI, DSH) into DeepSeek Harness as resumable se

Sessions & MessagesManifest valid

★ 259

MIT

JavaScript

Oct 25, 2026

dsh plugin --profile web add dsh-chat-import

by MichengAI

DSH Archive Manager — 在 DeepSeek Harness 中安全查看、恢复和管理已归档会话 · Safely view, restore, and manage archived sessions in DSH

Sessions & MessagesManifest valid

★ 256

Apache-2.0

JavaScript

Oct 27, 2026

dsh plugin --profile web add @michengai/dsh-archive-manager