AI Agent Hub
Back to plugins
dsh-turn-delete preview

dsh-turn-delete

Client Updated 2026.08.27

Run the following command in DeepSeek Harness:

dsh plugin install hanshenmesen/dsh-turn-delete

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install hanshenmesen/dsh-turn-delete in DeepSeek Harness, then restart dsh web to install it from https://github.com/hanshenmesen/dsh-turn-delete.

About this plugin

When you work with DeepSeek Harness, conversation context grows with every round. Often you don't need to wipe the entire Session — you just want to remove one specific completed turn, such as a derailed discussion or a round with messy tool calls. dsh-turn-delete is built for this surgical clean-up: it attaches a delete action to each finished top-level turn, letting you precisely remove one complete exchange while keeping the Session itself, its title, workspace association, and all later turns intact. Confirmation is required, the action is disabled while the Session is running, and the removal covers the prompt, assistant messages, and tool records — while the original append-only event log remains fully preserved for audit and replay. A durable zero-content replacement event records the deletion, so refreshing the page or restarting the profile keeps the state, and repeating the same request is idempotent. The plugin also refuses to delete a turn that is still open or has already been merged into a compaction replacement, which prevents accidentally tearing apart model-visible context. Behind the scenes, the Host half registers a dedicated endpoint, claims the Agent's maintenance lease, validates the complete closed-turn span, appends the replacement, and only acknowledges success after sessions.flush(); the browser half hooks into public slots and applies a narrow presentation compatibility layer so the tombstone shows up on the right turn. If you are a DeepSeek Harness user on 0.1.0-rc.6 or rc.7 who values precise control over model context without losing traceability, especially while debugging multi-turn agent workflows or tidying up history, this plugin is a pragmatic enhancement worth trying.

Screenshots

Use Cases

  • Remove one derailed turn while keeping all later turns in the session.
  • Clean up a specific round with messy tool-call records without touching other context.
  • Tidy conversation history to reduce context usage while preserving the original event log.

Best For

  • DeepSeek Harness users who need precise context cleanup without breaking the session.
  • Developers debugging multi-turn agent flows who still want an auditable history.
  • Plugin users maintaining clean conversations in Harness 0.1.0-rc.6 / rc.7 Web profiles.