MIT 许可的 TypeScript 插件,为 DeepSeek Harness 增加按轮次删除能力:删掉一个完整的已关闭轮次,同时保留 Session、后续轮次与只追加事件日志。通过官方 dsh CLI 一条命令即可安装,重启 `dsh web` 后生效。
DSH 适配
原生运行时
作者声明
安全审计
未审计
最后核验
2026-08-27
许可证
MIT
01它能帮你完成什么?
在 DeepSeek Harness 会话中删除一个完整的已关闭轮次,而不删除或替换整个 Session
所选轮次的 prompt、助手消息与工具记录从 Session 当前的模型表面移除;Session id、标题、工作区关联、后续轮次与只追加事件日志保持不变
使用 DeepSeek Harness(dsh web)的用户,希望从对话历史里移除某一轮,同时保留 Session 及其他轮次
清理对话中间的某轮内容,同时保留同一 Session 及其后续轮次
同一 Session 与其后续轮次保持不变;删除由一条持久的零内容替换事件记录,刷新页面或重启 profile 后依然保留
需要从较长的 DeepSeek Harness 会话中剔除某一轮对话、又不想从头开始的用户
02如何接入 DeepSeek Harness?
安装步骤
- 01
npm(推荐方式):`dsh plugin --profile web add dsh-turn-delete`
$ dsh plugin --profile web add dsh-turn-delete
- 02
GitHub 方式:`dsh plugin --profile web add github:hanshenmesen/dsh-turn-delete`
$ dsh plugin --profile web add github:hanshenmesen/dsh-turn-delete
- 03
预构建 GitHub Release 方式:`dsh plugin --profile web add https://github.com/hanshenmesen/dsh-turn-delete/releases/latest/download/dsh-turn-delete.tgz`
$ dsh plugin --profile web add https://github.com/hanshenmesen/dsh-turn-delete/releases/latest/download/dsh-turn-delete.tgz
- 04
安装后重启 `dsh web`。
$ dsh web
验证接入成功
作者未说明
回滚
- 卸载命令:`dsh plugin --profile web remove dsh-turn-delete`
03DSH 适配与能力边界
通过官方 dsh CLI 安装注册的原生插件(`dsh plugin --profile web add dsh-turn-delete`),为 dsh web 增加按轮次删除操作
按轮次删除(trash 操作)
已完成的普通 Session 轮次→所选轮次从 Session 当前的模型表面移除
将所选轮次的 prompt、助手消息与工具记录从 Session 当前的模型表面移除写入一条持久的零内容替换事件来记录这次删除删除确认与运行中保护
针对某个轮次的删除请求→删除需要确认;Session 运行期间删除被禁用
幂等删除
重复执行同一删除请求→重复执行同一请求是幂等的
04适合谁?何时不该用?
适合
- 使用 DeepSeek Harness(dsh web)的用户,希望从对话历史里移除某一轮,同时保留 Session 及其他轮次
- 需要从较长的 DeepSeek Harness 会话中剔除某一轮对话、又不想从头开始的用户
不适合
- 目标轮次仍处于打开状态、或已被压缩合并到包含其他历史的替换内容中时,插件拒绝删除——这可以防止只删除部分模型可见上下文。
05兼容性、维护与安全提示
- 目标轮次仍处于打开状态、或已被压缩合并到包含其他历史的替换内容中时,插件拒绝删除——这可以防止只删除部分模型可见上下文。
- trash 操作只出现在已完成的普通 Session 轮次上,子代理(subagent)记录不会暴露该操作。
MIT · 活跃维护中(最新发布 v0.1.0,2026-08-17)
06常见问题
dsh-turn-delete 怎么安装?
npm 推荐方式:`dsh plugin --profile web add dsh-turn-delete`;GitHub 方式:`dsh plugin --profile web add github:hanshenmesen/dsh-turn-delete`;也可以直接添加预构建 Release 的 tgz 链接。安装后重启 `dsh web`。卸载用 `dsh plugin --profile web remove dsh-turn-delete`。
会从我的会话里删掉什么?
所选轮次的 prompt、助手消息与工具记录会从 Session 当前的模型表面移除。Session id、标题、工作区关联、后续轮次以及原始的只追加事件日志保持不变。
什么时候能看到删除操作?
trash 操作只出现在已完成的普通 Session 轮次上,子代理(subagent)记录不会暴露它。删除需要确认,Session 运行期间删除会被禁用。
删除后刷新页面或重启会丢失吗?
不会。一条持久的零内容替换事件会记录该删除,刷新页面或重启 profile 后依然保留。重复执行同一删除请求是幂等的。
有没有不能删除的轮次?
目标轮次仍处于打开状态、或已被压缩合并到包含其他历史的替换内容中时,插件会拒绝删除,避免只删除部分模型可见上下文。
07相关的 DSH 工作流
memos
作者 memtensor
面向 LLM 与 AI 智能体的自进化记忆系统,提供超持久记忆、混合检索与跨任务技能复用,可显著节省 Token。
dsh-anchored-standard
作者 xiaobright
DeepSeek Harness 两阶段预设:先最小对齐引导,再启用完整标准工具集。
mem9
作者 mem9-ai
每轮自动回忆 + 后台智能摄取 + 五个记忆工具,为 DSH 加持记忆。
mindmemos
作者 mindscale-noah
为 DSH 智能体提供跨会话持久记忆,每轮自动召回相关上下文并回写经验,通过模式学习与技能蒸馏持续进化。
08数据与来源
Delete one complete closed turn from a DeepSeek Harness conversation without deleting or replacing the Session.
From npm (recommended):
dsh plugin --profile web add dsh-turn-delete
页面基于项目公开文档、仓库元数据和 DSH Plugins 的结构化解析生成;最后核验于 2026-08-27。发现错误?提交更正。
最佳 DeepSeek Harness 插件
从全目录挑出的 12 个值得优先安装的插件,覆盖各个分类。
