DeepSeek Agent
插件市场其他插件dsh-turn-delete
DEEPSEEK HARNESS PLUGIN

dsh-turn-delete

Delete one complete turn from a DeepSeek Harness session without deleting the session

插件介绍

Delete one complete turn from a DeepSeek Harness session without deleting the session

deepseekdeepseek-harnessdshdsh-plugin

项目详情摘要

dsh-turn-delete English | 中文 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): From GitHub: From a prebuilt GitHub Release: Restart `dsh web` after installation. To remove it: 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

摘自项目公开 README,可能随上游仓库更新。

安装方法

建议先在测试 Profile 中安装,并检查权限、安装脚本和依赖。

npx -p @deepseek-ai/dsh dsh plugin --profile web add github:hanshenmesen/dsh-turn-delete

使用前检查

  • 确认项目符合 DSH bundle 规范,而不只是相关仓库。
  • 阅读许可证和安装脚本,检查网络、文件及执行权限。
  • 备份配置,并确保插件能够安全卸载或回滚。