DeepSeek Harness plugin

dsh-session-cleaner-lijianui

Session management plugin for DeepSeek Harness (dsh): list / delete / archive & restore sessions, with a built-in "Archived" group and a delete confirm dialog (real delete, not trash). 为 DeepSeek

Jump to install

Source facts

Repository
lijian-ui/dsh-session-cleaner
Latest update
Aug 17, 2026
Category
Memory
GitHub stars
1
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/lijian-ui/dsh-session-cleaner
Plugin: dsh-session-cleaner-lijianui
Author: lijian-ui

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer2 files
README.mdSource · read only

@lijian-ui/dsh-session-cleaner

> 为 DeepSeek Harness (dsh) 提供会话管理:列表(含标题)/ 点击预览 / 真删除(二次确认)/ 归档分组与恢复。 > Session management for dsh: list (with titles), click-to-preview, real delete (with confirm), archive group & restore.

官方 dsh 只有"归档"没有"删除",且归档后会话从所有视图隐藏、无恢复入口(会话记录仍占磁盘)。本插件修复这两个问题,并补上会话的可识别性(标题 + 内容预览),避免误删:

  • 会话列表(带标题):文件层扫描 ~/.dsh/sessions,显示会话标题(从日志 session/title 事件提取)、时间、大小、状态;分组:全部 / 已归档 / 游离
  • 点击预览:点击会话行弹出内容预览(最近 12 条对话,用户/助手气泡),预览内可直接删除
  • 真删除:删除会话目录 + 投影缓存(projcache)+ workspace 状态三处清理;二次确认弹窗,明确"永久删除、不可恢复"
  • 归档分组:归档走官方 workspace.archiveSession RPC(官方列表即时隐藏);恢复/删除读写官方 workspace.json(官方 UI 重启后同步)

安装

# 开发期(link 联调)
dsh plugin --profile web add ./extensions/session-cleaner
# 或发布后
dsh plugin --profile web add @lijian-ui/dsh-session-cleaner

使用

启动 dsh 后打开设置 → 会话管理

![会话管理界面](image/screenshot_2026-08-17_10-52-18.png)

  • 顶部:会话总数与总占用,右上「刷新」重新扫描 / 「打开配置文件」定位官方 workspace.json
  • 标签页:全部 / 已归档 / 游离(数字徽标实时统计)
  • 每行:点击 → 预览弹窗(标题、ID、创建时间、大小 + 最近对话);行内按钮:归档(官方列表即时隐藏)/ 恢复(移出归档)/ 删除(二次确认,真删除)
  • 预览弹窗底部也有「删除此会话」入口

边界说明

  • 归档:走官方 API,官方侧边栏即时隐藏(无需重启)
  • 恢复 / 删除:官方无对应 API,插件直接操作文件层,官方侧边栏在 dsh 重启后同步(插件页面本身即时准确)
  • 删除永久删除(不经过回收站),插件会在确认框明确警告
  • 会话日志是多帧 zstd 格式,插件按帧完整解压读取标题与内容

许可

MIT © lijian-ui