cokiscarazo-rgb/dsh-session-management 预览 preview

cokiscarazo-rgb/dsh-session-management

Plugin插件 Native原生 ⭐ 4 MIT Sessions & Context会话与上下文

Project Overview项目介绍

This repository is a native session management plugin built exclusively for DeepSeek Harness (DSH) Web. It adds missing functionality that the official DSH distribution does not provide, including the ability to truly delete local chat logs, restore archived sessions, and bulk export session data. To install the plugin, you need to have Node.js and pnpm pre-installed on your local system, and you can choose to install it from npm or directly from the GitHub source code. After installation completes, you must restart dsh web for the plugin to take effect correctly.

The plugin addresses three common pain points users face with long-term use of official DSH. Official DSH only hides sessions instead of deleting them from disk, does not allow users to restore archived sessions, and only supports exporting sessions one at a time. It also adds options to sort archived sessions by creation or update date, toggle between ascending and descending order, and bulk operate all sessions within a group directly from the management window. This plugin adds the ability to unarchive sessions individually or in bulk, delete targeted groups of archived sessions, and export all sessions in one click, with output format fully compatible with the official DSH specification.

The plugin is released under the open-source MIT license, so it is free to use and modify. There are a few small limitations to note when using it: running sessions are automatically skipped when deleting to avoid logs being written back, and shared image attachments that are used across multiple sessions are not deleted when you delete a session that uses them. If you run into issues during installation, you can check the common troubleshooting section in the README for solutions to common errors like missing pnpm, outdated cache, or missing configuration entries.

dsh-session-management 是专为 DeepSeek Harness(DSH)Web 打造的原生会话管理插件,用于补足 DSH 官方缺失的会话管理能力,支持归档管理聊天会话、真正删除本地聊天记录、批量导出会话数据。它支持按工作区或月份分组管理归档会话,界面语言会跟随 DSH 系统设置自动切换中英双语,可一键完成全量归档操作。

官方 DSH 目前存在三个核心痛点:无法真正删除聊天记录(仅隐藏不删除磁盘文件)、归档后无法恢复会话、导出只能逐个手动操作。本插件针对这些痛点逐一补齐,支持单个或批量取消归档、删除指定组的归档会话、一键批量导出所有会话,导出格式与官方完全兼容,可直接用于官方工具查看或迁移。

安装该插件需要提前安装 Node.js 和 pnpm,可通过 npm 或 GitHub 源码两种方式安装,安装完成后需要重启 dsh web 才能生效。插件遵循 MIT 开源协议,免费使用,删除会话时不会删除可能被多会话共享的图片附件,运行中的会话会自动跳过删除,避免日志被写回。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 4 stars - very few users, little community feedback星标只有 4,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add dsh-session-management

把 cokiscarazo-rgb/dsh-session-management 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-session-management · DSH 会话管理

中文 | English

会话管理设置页

dsh-session-management 是 DeepSeek Harness(DSH)Web 的会话管理插件,补足官方会话管理的缺失能力。在「设置」面板内集中管理聊天会话:归档、取消归档、真正删除本地聊天记录、批量导出数据。支持中英双语,随 DSH 语言设置即时切换。

已归档聊天管理弹窗

为什么需要这个插件

DSH Web 官方目前不提供完整的会话管理,长期使用会遇到三个痛点:

  • 会话无法真正删除:官方只提供「归档」,归档只是把会话从侧边栏隐藏,聊天记录仍完整保留在磁盘上,没有任何入口可以真正删掉它们;
  • 归档后无法恢复:官方没有「取消归档」功能,会话一旦归档就再也找不回来,只能「看不见但永远存在」;
  • 导出只能逐个手动:官方导出一次只能导出一个会话,会话攒多了要逐个点击很多次。

本插件逐一补齐:真删(删除磁盘上的会话日志文件)、恢复(单个 / 按组批量取消归档)、批量导出(与官方格式完全一致的 ZIP)。

能力 DSH 官方 装本插件后
归档会话 支持 支持,另有一键全量归档
取消归档 无入口 单个 / 按工作区 / 按月份批量
真正删除聊天记录 仅隐藏,不删除 删除磁盘日志文件,运行中会话自动跳过
导出会话数据 单个手动导出 一键批量导出,格式与官方字节级兼容

功能

已归档的聊天管理

点击「管理」打开管理窗口,两种分组视图随心切换:

  • 按工作区:每个工作区一个分组,组内按时间排序;
  • 按月份:按年月分组(2026年8月、2026年7月…),月份自动携带年份,跨年归档一目了然。

支持按创建日期 / 更新日期排序(升序 / 降序)、分组折叠与一键展开、按组批量操作——取消归档该组、删除该组已归档的聊天(仅作用于该组的归档会话,不影响未归档记录)。

分组与排序 组头批量操作
归档管理弹窗 归档管理弹窗

归档所有聊天

一键归档全部会话:记录完整保留,仅从侧边栏列表隐藏,随时可在管理窗口取消归档。

删除所有聊天

真正删除本地聊天记录:删除磁盘上的会话日志文件(session.jsonl / session.jsonl.zstd 及对偶文件),并同步清理工作区记账与归档标记。运行中的会话自动跳过,防止日志被写回。

导出数据

一键批量导出全部会话:自动遍历所有根会话(含其子代理会话),逐个生成与官方格式一致的 ZIP 归档(dsh-session-<id>.zip),无需再一个个手动点击。

  • 内容完整:会话日志、子代理会话与媒体附件一并打包;
  • 格式兼容:字节级兼容官方导出格式,可直接用官方工具查看或迁移;
  • 删除前备份:可先「导出数据」再「删除所有聊天」,清理的同时留住需要的数据。

中英双语

界面文案随「设置 → 通用设置 → 语言」即时切换,中英文档与界面同步维护。

安装

DSH 插件通过 profile 挂载(dsh web 对应 web profile)。安装后需重启 dsh web 生效。

前置要求:Node.js(含 npm);dsh plugin 依赖 pnpm(缺失时见下方「常见问题」)。

方式一:从 npm 安装(推荐)

插件已发布到 npm(dsh-session-management)。安装命令取决于你如何运行 dsh:

  • 全局安装 dsh(dsh 命令可直接使用):

    dsh plugin --profile web add dsh-session-management
    
  • 通过 npx 运行 dsh(未全局安装,平时用 npx @deepseek-ai/dsh web 启动):

    npx -y @deepseek-ai/dsh plugin --profile web add dsh-session-management
    

装完重启 dsh web,打开「设置」即可看到「会话管理」入口。升级:将 add 换成 update(非全局安装时同样加 npx -y @deepseek-ai/dsh 前缀)。

版本提示:若 npm/pnpm 的元数据缓存或镜像源同步延迟,导致安装到旧版本(提示 declares no dsh.bundle),请指定最新版本号重装:

npx -y @deepseek-ai/dsh plugin --profile web add dsh-session-management@<最新版本号>

查询最新版本:npm view dsh-session-management version。

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-notify-yimit 下一个 Next dsh-ios-app →