dsh-turn-delete: A Session Turn Deletion Plugin for DeepSeek Harness
hanshenmesen/dsh-turn-delete
A DSH plugin to delete one complete turn from a session without removing the session, with confirmation and idempotency.
Delete one complete closed turn from a DeepSeek Harness session without deleting the whole session, preserving the rest of the conversation history.
dsh plugin --profile web add github:hanshenmesen/dsh-turn-delete- Category
- Sessions & Messages
- Platform
- DSH-Plugin
- Author
- hanshenmesen
- Distribution
- Plugin
dsh-turn-delete Key Features
dsh-turn-delete Repository

dsh-turn-delete Repo Summary
dsh-turn-delete is a session management plugin (DSH plugin) for DeepSeek Harness that removes one complete closed turn from a conversation without deleting the entire session. It solves the problem of cleaning up or correcting conversation history while preserving the rest of the session. The plugin adds a delete action next to the final assistant response of each completed top-level turn, with confirmation and safety checks. Maintained by hanshenmesen, it is licensed under MIT, written in TypeScript, and last updated in 2026-08.
What core features does the dsh-turn-delete DSH plugin support?
The plugin offers the following capabilities:
- Shows the delete action only on completed ordinary session turns; subagent transcripts do not expose it.
- Requires confirmation before deletion and is disabled while the session is running.
- Removes the prompt, assistant messages, and tool records for the selected turn, while preserving the session ID, title, workspace association, later turns, and the original append-only event log.
- Records deletion via a durable zero-content replacement event that persists across page reloads and profile restarts.
- Idempotent: repeating the same request has no additional effect.
How do I install dsh-turn-delete?
Install from GitHub:
dsh plugin --profile web add github:hanshenmesen/dsh-turn-delete
Restart dsh web after installation. To remove it:
dsh plugin --profile web remove dsh-turn-delete
Which DeepSeek Harness versions and platforms are compatible with dsh-turn-delete?
The plugin is compatible with DeepSeek Harness 0.1.0-rc.6 and 0.1.0-rc.7, requires Node.js 22.19 or newer, and supports the Web profile and Web-based desktop shells. Since Harness is in developer preview, after upgrading, verify the plugin with a disposable session containing three short turns and delete the middle one.
What is the design of dsh-turn-delete?
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, and a narrow presentation compatibility layer is applied to Chat rows between adjacent Turn tails. Model context deletion does not depend on that compatibility layer.
How secure is dsh-turn-delete?
Like every DSH plugin, this package runs with the Harness process's permissions, so 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.