返回目錄

dsh-turn-delete

編輯精選維護狀態: 活躍

hanshenmesen/dsh-turn-delete

刪除會話中的一整輪對話而不刪除整個會話。

前往 GitHub
$ dsh plugin --profile web add dsh-turn-delete

101

星數

0

Fork

TypeScript

語言

MIT

授權條款

2026-08-17

建立於

2026-08-18

最近推送

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?

安裝步驟

  1. 01

    npm(建議方式):`dsh plugin --profile web add dsh-turn-delete`

    $ dsh plugin --profile web add dsh-turn-delete

  2. 02

    GitHub 方式:`dsh plugin --profile web add github:hanshenmesen/dsh-turn-delete`

    $ dsh plugin --profile web add github:hanshenmesen/dsh-turn-delete

  3. 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

  4. 04

    安裝後重新啟動 `dsh web`。

    $ dsh web

驗證整合成功

作者未說明

復原

  • 移除指令:`dsh plugin --profile web remove dsh-turn-delete`

03DSH 整合程度與能力邊界

DSH 整合原生執行環境

透過官方 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)記錄不會暴露該動作。
2026-08-172026-08-18v0.1.0

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 後依然保留。重複執行同一刪除請求是冪等的。

有沒有不能刪除的輪次?

目標輪次仍處於開啟狀態、或已被壓縮合併到包含其他歷史的替換內容中時,外掛程式會拒絕刪除,避免只刪除部分模型可見上下文。

08資料與來源

  • 作者聲明github.com4716bcbdee27…

    Delete one complete closed turn from a DeepSeek Harness conversation without deleting or replacing the Session.

  • 作者聲明github.com4716bcbdee27…

    From npm (recommended):

  • 作者聲明github.com4716bcbdee27…

    dsh plugin --profile web add dsh-turn-delete

此頁面根據專案公開文件、儲存庫中繼資料與 DSH Plugins 的結構化解析所產生;最後核實於 2026-08-27。發現錯誤?提交更正。

🏆

最佳 DeepSeek Harness 外掛

從全目錄挑出的 12 個值得優先安裝的外掛,涵蓋各個分類。

DSH Plugins 是獨立的 DeepSeek Harness 外掛市集,與 DeepSeek 官方無關,也不代表官方背書。第三方外掛未經安全稽核,安裝前請審查原始碼。

每週取得最新的 DeepSeek Harness 外掛,絕不濫發。