返回目錄

dsh-session-manager

編輯精選維護狀態: 活躍

dream12347/dsh-session-manager

DSH 會話管理外掛:刪除(回收站恢復/徹底清除)、統計、繼續/暫停、開啟日誌目錄、對話頂部抽屜、工作區分組與排序、上下文壓縮閾值設定。DSH session manager: delete with trash/restore/purge, stats, continue/pause, log folder, header drawer, workspace grouping, context compaction threshold.

前往 GitHub
$ dsh plugin --profile web add 'github:dream12347/dsh-session-manager#v0.2.2'

68

星數

11

Fork

TypeScript

語言

MIT

授權條款

2026-08-14

建立於

2026-08-27

最近推送

功能齊全的 DSH 會話管理套件,適用於 DeepSeek Harness Web 介面:刪除/復原/徹底清除、統計、繼續/暫停、fork、工作區分組,以及全域上下文壓縮閾值,無需更動核心程式碼。

DSH 整合

原生執行環境

作者聲明

安全稽核

未稽核

最後核實

2026-09-01

授權條款

MIT

01它能幫你完成什麼?

  • Manage DeepSeek Harness sessions from the Web UI — delete, restore, pause, resume and organize them

    Trash/restore/purge deletes, per-session stats, continue/pause, log-folder open, a header drawer, workspace grouping and a context-compaction threshold — without touching DSH core code

    DeepSeek Harness (dsh) web users who run many sessions and want built-in session lifecycle management

  • Control automatic context compaction across all agent sessions

    A global threshold (17%–90% of the 1M-token window) that auto-compacts and keeps the most recent 16%, applied uniformly to every agent preset's sessions

    Heavy dsh users who hit context-window limits and want uniform compaction behavior

02如何將外掛接入 DeepSeek Harness?

安裝步驟

  1. 01

    Add from GitHub: run `dsh plugin --profile web add 'github:dream12347/dsh-session-manager#v0.2.2'`

    $ dsh plugin --profile web add 'github:dream12347/dsh-session-manager#v0.2.2'

  2. 02

    Add from a local directory: `dsh plugin --profile web add /absolute/path/to/dsh-session-manager`

    $ dsh plugin --profile web add /absolute/path/to/dsh-session-manager

  3. 03

    Add from a tarball: run `pnpm pack`, then `dsh plugin --profile web add /absolute/path/to/dsh-session-manager-0.2.2.tgz`

    $ dsh plugin --profile web add /absolute/path/to/dsh-session-manager-0.2.2.tgz

  4. 04

    Restart `dsh web` after install — the host plugin and client bundle need a restart to load

    $ dsh web

驗證整合成功

作者未說明

03DSH 整合程度與能力邊界

DSH 整合原生執行環境

Native dsh CLI plugin that manages sessions inside the DeepSeek Harness Web UI without patching core code

  • Recycle bin with restore & purge

    deleted sessions→moved to trash (keeps latest 10, auto-purges the oldest), restorable or permanently deleted

    moves deleted sessions out of the active list into trashpermanently deletes session records on purge
  • Workspace grouping & ordering

    sessions grouped by workspace→grouped view sorted by last-used time (newest/oldest toggle); drag a workspace title to reorder

  • Global context-compaction threshold

    all agent preset sessions→auto-compacts at a set fraction (17%–90%) of the 1M-token window, keeping the latest 16%

    applies uniformly to every agent preset's sessionspersists across restarts
  • Continue, pause & fork sessions

    an existing or running session→one-click open-and-close panel; pause stops the current turn; fork a child session via official `sessions.fork`

04適合誰?何時不該用?

適合

  • DeepSeek Harness (dsh) web users who run many sessions and want built-in session lifecycle management
  • Heavy dsh users who hit context-window limits and want uniform compaction behavior

不適合

  • Each compaction keeps only the most recent 16% of the original text, dropping the older context; this is applied automatically once the threshold is reached.

05相容性、維護與安全提醒

  • Only sessions that are currently 'thinking' cannot be deleted; an open but idle session may still be deleted.
  • Each compaction keeps only the most recent 16% of the original text, dropping the older context; this is applied automatically once the threshold is reached.
2026-08-142026-08-27v0.2.2

MIT · latest release v0.2.2 (2026-08-20), last push 2026-08-27

06常見問題

如何在 DeepSeek Harness 中安裝 dsh-session-manager?

在 dsh CLI 中執行 `dsh plugin --profile web add 'github:dream12347/dsh-session-manager#v0.2.2'`,然後重新執行 `dsh web`,讓宿主套件與客戶端 bundle 重新載入。也可從本地目錄或 tarball 加入。

它會修改 DeepSeek Harness 核心程式碼嗎?

不會。README 說明它在不修改 DSH 核心程式碼的前提下管理工作階段——只在現有 Web 介面中新增設定分欄與對話頂端抽屜。

資源回收筒有什麼作用?

被刪除的工作階段會進入資源回收筒,保留最近 10 條(超出自動清除最早一條),每條都能復原或徹底清除。

上下文壓縮閾值如何運作?

這是一項通用設定(佔 100 萬 token 視窗的 17%–90%),達到閾值自動壓縮並保留最近 16% 原文;對所有 Agent 預設的工作階段統一生效,且重啟後自動應用。

能管理子代理工作階段嗎?

可以——子代理工作階段在非執行狀態下可刪除;即使主工作階段已刪除、子代理成為「孤兒」,也會出現在會話管理中直接清理。

08資料與來源

  • 作者聲明github.comadfd5473bad3…

    在 DeepSeek Harness Web 界面中全面**管理会话**

  • 作者聲明github.comadfd5473bad3…

    不修改 DSH 核心代码。

  • 作者聲明github.comadfd5473bad3…

    dsh plugin --profile web add 'github:dream12347/dsh-session-manager#v0.2.2'

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

🏆

最佳 DeepSeek Harness 外掛

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

廣告

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

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