返回目录

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'

69

星标

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 插件,绝不滥发。