Bundle
dsh-save-session
DSH(DeepSeek Harness)插件:会话标题栏一键导出当前会话 —— 「保存 MD」下载纯净 Markdown,「保存 HTML」下载带左侧目录、表格与代码块渲染的网页。自动过滤模型思考过程与工具调用记录,只保留用户与助手的正文,适合归档、分享与撰写报告。
- Source
- jh1016248
- License
- MIT
- Updated
- Updated 25 days ago
Readme
# dsh-save-session [](https://dsh-plugin.org/plugins/jh1016248/dsh-save-session) 一个 DeepSeek Harness (DSH) 插件:在会话头部提供两个一键下载按钮,把当前会话导出为 Markdown 或渲染后的 HTML。 ## 功能 - **⬇ 保存 MD** — 下载 `session-<时间戳>.md` - **⬇ 保存 HTML** — 下载 `session-<时间戳>.html` - Markdown 已渲染(标题 / 代码块 / 列表 / 引用 / 链接 / GFM 表格 / 行内代码 / 粗斜体) - 左侧目录面板:每条消息一行(角色 + 单行预览),点击跳转;窄屏自动隐藏 - 同时注册模型工具 `save_session_md`:对话中说"保存当前会话为 md"即可,可选 `path` 参数, 默认写入会话工作目录 ## 内容规则 导出**只包含用户消息与助手正文**。以下内容一律过滤: - 模型思考过程(reasoning) - 工具调用与工具结果 - 注入的上下文 / 子代理报告 ## 安装 ```sh dsh plugin --profile web add dsh-save-session ``` 然后重启 profile(`dsh web`),按钮出现在会话标题栏右侧操作行。 ## 工作原理 - Host:`sessionQuery.readSurface` 读取会话消息 → 过滤 → 生成 md / html; `webServer` 注册 `GET /plugins/dsh-save-session/download?session=<id>&format=md|html` 按需生成并作为附件下发;`tools` 注册 `save_session_md`。 - Client:在 `conversation.session.header.actions` 槽位注册两个纯 `<a download>` 链接, 无需 RPC。 ## License MIT
Install
dsh plugin --profile web add github:jh1016248/dsh-save-session
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install dsh-save-session from the hub
- This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.