
cokiscarazo-rgb/dsh-session-management
51Last commit Aug 15, 2026
dsh-session-management DSH plugin
dsh-session-management complements DSH Web's built-in session management by adding missing features: true deletion of chat logs from disk, unarchive of archived sessions, and bulk export. It integrates into the Settings panel and supports bilingual UI (Chinese/English) that switches with DSH language settings.
How to install the dsh-session-management DSH plugin
dsh plugin --profile web add dsh-session-managementCopying does not run this command. Review the repository and version before installing the dsh-session-management DSH plugin.
dsh-session-management DSH plugin data source
dsh-session-management DSH plugin snapshot date: Aug 16, 2026
discovered
What the dsh-session-management DSH plugin can do
- Archive all chats with one click, hiding them from sidebar while keeping records intact.
- Unarchive individual sessions or batch unarchive by workspace or month.
- Truly delete local chat records by removing session log files from disk; running sessions are skipped.
- Batch export all sessions as ZIP archives, byte-compatible with official export format.
- Manage archived chats in a popup window with grouped views (by workspace or by month) and sorting options.
Where the dsh-session-management DSH plugin fits
- Free up sidebar clutter by archiving old chats and restoring them later when needed.
- Permanently delete sensitive chat logs after use, ensuring no residual data remains on disk.
- Export all sessions in bulk before cleanup to keep a backup without manual per-session export.
- Organize archived sessions by workspace or month to quickly find and restore specific conversations.
- Switch between Chinese and English UI seamlessly for multilingual teams.
Who the dsh-session-management DSH plugin is for
- Power users of DSH Web who manage many chat sessions and need bulk operations.
- Users concerned about data privacy who want to truly delete chat records instead of just hiding them.
dsh-session-management DSH plugin limitations
- Only works with DSH Web profile; not applicable to other DSH profiles.
- Running sessions cannot be deleted to prevent log corruption.
- Image attachments are content-addressed and may be shared across sessions; deleting a session does not delete the attachments.
- Sub-agent sessions are independent records; deleting a parent session does not cascade the deletion.
- Requires Node.js and pnpm (for dsh plugin command) to install.
dsh-session-management DSH plugin: from the repository README
Quoted from the cokiscarazo-rgb/dsh-session-management README, the upstream source of the dsh-session-management DSH plugin. Copyright remains with the original authors.
中文 | [English](README.en.md)  dsh-session-management 是 DeepSeek Harness(DSH)Web 的会话管理插件,**补足官方会话管理的缺失能力**。在「设置」面板内集中管理聊天会话:归档、取消归档、**真正删除本地聊天记录**、批量导出数据。支持中英双语,随 DSH 语言设置即时切换。  ## 为什么需要这个插件 DSH Web 官方目前不提供完整的会话管理,长期使用会遇到三个痛点: - **会话无法真正删除**:官方只提供「归档」,归档只是把会话从侧边栏隐藏,聊天记录仍完整保留在磁盘上,没有任何入口可以真正删掉它们; - **归档后无法恢复**:官方没有「取消归档」功能,会话一旦归档就再也找不回来,只能「看不见但永远存在」; - **导出只能逐个手动**:官方导出一次只能导出一个会话,会话攒多了要逐个点击很多次。 本插件逐一补齐:**真删**(删除磁盘上的会话日志文件)、**恢复**(单个 / 按组批量取消归档)、**批量导出**(与官方格式完全一致的 ZIP)。 | 能力 | DSH 官方 | 装本插件后 | | --- | --- | --- | | 归档会话 | 支持 | 支持,另有一键全量归档 | | 取消归档 | 无入口 | 单个 / 按工作区 / 按月份批量 | | 真正删除聊天记录 | 仅隐藏,不删除 | 删除磁盘日志文件,运行中会话自动跳过 | | 导出会话数据 | 单个手动导出 | 一键批量导出,格式与官方字节级兼容 | ## 功能 ### 已归档的聊天管理 点击「管理」打开管理窗口,两种分组视图随心切换: - **按工作区**:每个工作区一个分组,组内按时间排序; - **按月份**:按年月分组(`2026年8月`、`2026年7月`…),月份自动携带年份,跨年归档一目了然。 支持按创建日期 / 更新日期排序(升序 / 降序)、分组折叠与一键展开、按组批量操作——取消归档该组、**删除该组已归档的聊天**(仅作用于该组的归档会话,不影响未归档记录)。 | 分组与排序 | 组头批量操作 | | --- | --- | |  |  | ### 归档所有聊天 一键归档全部会话:记录完整保留,仅从侧边栏列表隐藏,随时可在管理窗口取消归档。 ### 删除所有聊天 **真正删除**本地聊天记录:删除磁盘上的会话日志文件(`session.j
Read the full READMERepository license: MIT
dsh-session-management DSH plugin questions
How do I install dsh-session-management?
You can install it via npm: run `dsh plugin --profile web add dsh-session-management` if you have dsh installed globally, or use `npx -y @deepseek-ai/dsh plugin --profile web add dsh-session-management` if you run dsh via npx. After installation, restart `dsh web` for the plugin to appear in Settings.
Can I delete all my chat history permanently?
Yes, the plugin offers a 'Delete all chats' feature that removes session log files from disk. Running sessions are automatically skipped to prevent data loss. It is recommended to export your data first if you want to keep a backup.
Why don't I see the 'Session Management' entry in Settings after installation?
Make sure you have restarted `dsh web` after installing the plugin. Also verify that `$DSH_HOME/profiles/web/cordis.patch.yml` contains an insert entry with `id: dsh-session-management`. If the issue persists, reinstall the plugin.
How do I batch unarchive archived sessions?
Open the Manage popup from Settings. You can view archived chats grouped by workspace or month. Use the group header buttons to unarchive all sessions in that group, or unarchive individual sessions by clicking the unarchive icon next to each.
Does the plugin support exporting all sessions at once?
Yes, the 'Export Data' feature exports all root sessions (including sub-agent sessions) into individual ZIP archives. The format is byte-compatible with the official DSH export, so you can import them back or view them with official tools.