dsh-turn-delete
从 DeepSeek Harness 会话中删除一个完整已结束回合而不删除会话;删除动作出现在每个已完结回合的最末助手回复旁
hanshenmesen
@hanshenmesen
⬇ 1
★ 2
main
安装
dsh plugin --profile web add github:hanshenmesen/dsh-turn-delete
需要可复现安装时,可在仓库后追加 #commit 固定提交。
从 DeepSeek Harness 会话中删除一个完整已结束回合而不删除会话;删除动作出现在每个已完结回合的最末助手回复旁
该插件未提供要点说明,请参考仓库 README。
deepseekdeepseek-harnessdshdsh-plugin
- 安装并启动 DeepSeek Harness:
npx @deepseek-ai/dsh web - 在终端执行上面的安装命令(CLI 会解析插件并核验来源)
- 用 dsh plugins list 确认已安装,必要时重启 Harness 生效
插件以当前 dsh 进程的权限运行,安装时可能执行代码。请先通读仓库源码与许可证,确认无破坏性命令与越权访问;本站只做索引,不对第三方插件安全性作担保。
| 代码仓库 | github.com/hanshenmesen/dsh-turn-delete |
| 许可证 | MIT |
| 主要语言 | main |
| 下载量 | 1 |
| GitHub 星标 | 2 |
| 最近推送 | 2026-08-18 |
| 收录日期 | 2026-09-19 |
| 分类 | 会话与消息 |
事实信息来自公开插件目录快照(2026-10-01),介绍文案由本站再加工。
以下为插件仓库 README 全文(原始内容,由公开目录抓取整理)。
# dsh-turn-delete English | [中文](README.zh.md) Delete one complete closed turn from a DeepSeek Harness conversation without deleting or replacing the Session. The action appears beside the final assistant response for each completed top-level turn. ## Demo Delete the middle turn after confirmation while keeping the same Session and its later turn. This was recorded through the real DeepSeek model flow on DeepSeek Harness `0.1.0-rc.7`.  ## Install From npm (recommended): ```sh dsh plugin --profile web add dsh-turn-delete ``` From GitHub: ```sh dsh plugin --profile web add github:hanshenmesen/dsh-turn-delete ``` From a prebuilt GitHub Release: ```sh dsh plugin --profile web add https://github.com/hanshenmesen/dsh-turn-delete/releases/latest/download/dsh-turn-delete.tgz ``` Restart `dsh web` after installation. To remove it: ```sh dsh plugin --profile web remove dsh-turn-delete ``` ## Behavior - A trash action appears only on completed ordinary Session turns. Subagent transcripts do not expose it. - Deletion requires confirmation and is disabled while the Session is running. - The prompt, assistant messages, and tool records for the selected turn are removed from the Session's current model surface. - The Session id, title, workspace association, later turns, and original append-only event log remain intact. - A durable zero-content replacement event records the deletion. Reloading the page or restarting the profile preserves it. - Repeating the same request is idempotent. The plugin refuses deletion when the target turn is still open or has already been merged into a compaction replacement with other history. This prevents deleting only part of model-visible context. ## Design The Host half registers `POST /dsh-turn-delete`, claims the target Agent's maintenance lease, validates the complete closed-turn surface span, appends a zero-content replacement, and waits for `sessions.flush()` before acknowledging success. The browser half contributes to the public `conversation.chat.assistant-actions` and `conversation.chat.turnTail` slots. A Conversation definition projects the durable tombstone onto the target Turn. DeepSeek Harness does not yet expose a public whole-Turn visibility hook, so the tail contribution applies a narrow presentation compatibility layer to the Chat rows between adjacent Turn tails. Model context deletion does not depend on that compatibility layer. ## Compatibility - DeepSeek Harness `0.1.0-rc.6` and `0.1.0-rc.7` - Node.js 22.19 or newer - Web profile and Web-based desktop shells DeepSeek Harness is in developer preview. After upgrading Harness, verify the plugin once with a disposable Session containing three short turns and delete the middle one. ## Development ```sh npm install npm run check dsh plugin --profile web add -w link:/absolute/path/to/dsh-turn-delete ``` `npm run check` type-checks and builds both plugin halves, runs the unit/UI tests, and verifies the npm package contents. ## Security Like every DSH plugin, this package runs with the Harness process's permissions. Review the source before installing third-party plugins. The deletion changes future model context but deliberately retains the original append-only events for audit and replay. ## License MIT
数据来源:公开的 DeepSeek Harness 插件目录与各插件 GitHub 仓库。本站为独立第三方目录,与 DeepSeek、幻方(High-Flyer)及插件作者均无隶属或背书关系。