hkkz9522/dsh-session-manager

DeepSeek Harness 的会话管理器:在确认后删除对话并管理存档。

Project Overview项目介绍

dsh-session-manager is a native web plugin built exclusively for DeepSeek Harness (DSH) that adds extended session management capabilities to the DSH client. It is listed in the official dsh-market and the awesome-dsh-plugin directory, so users can install it directly from the built-in Plugin Marketplace inside DSH with a single click. For users who prefer command line installation, you can run the dsh plugin command to add it from npm or the GitHub repository, then restart DSH Web and force refresh the browser to activate the plugin.

Once installed, users get quick access to common operations right in the title area of the current session, with one-click buttons to archive, unarchive, move, or delete the open session. For bulk management, you can open the dedicated session manager panel in the sidebar footer, which lists all active and archived sessions and lets you run operations on any individual entry. The most useful feature for many users is agent preset migration, which repairs broken sessions that can’t resume because their original preset was renamed or removed, making it ideal for any DSH user that manages multiple long-running sessions.

This plugin is released under the open source MIT license, so it is free to use, modify, and distribute. All delete operations are permanent, so the UI always prompts for confirmation to prevent accidental data loss. Move and preset migration operations do not terminate live sessions or agents, they keep in-memory state intact and update stored metadata directly, so no manual refresh of the chat panel is required. Subagent sessions and temporary blank placeholders are excluded from all modification operations, and the plugin has a peer dependency on Cordis version 4.x.

dsh-session-manager 是一款专门为 DeepSeek Harness (DSH) 开发的原生网页端会话管理插件,提供会话归档/取消归档、删除、跨工作区移动以及代理预设迁移等核心功能。该插件已上架 DSH 官方插件市场和 awesome-dsh-plugin 收录列表,用户可直接在 DSH 内的插件市场搜索安装,也可通过 DSH CLI 命令行从 npm 或 GitHub 源添加安装,安装后重启 DSH Web 即可启用功能。

普通用户可在会话标题区域右侧找到快速操作入口,支持一键归档/取消归档、移动会话到目标工作区或删除当前会话。也可在侧边栏底部找到会话管理器面板,浏览所有活跃和已归档会话,对任意会话执行打开、归档、移动、迁移预设或删除操作。当原代理预设被重命名或移除导致会话无法恢复时,用户可通过预设迁移功能修复会话,非常适合需要整理大量会话、维护会话上下文的 DSH 日常用户使用。

本插件采用 MIT 许可开源免费使用,删除操作不可逆,UI 会弹出二次确认防止误删。移动和预设迁移操作不会终止当前活跃的代理或会话,会保留内存中的会话状态,直接更新存储内容,无需手动刷新聊天界面。子代理会话和临时空白会话占位符不支持删除、移动和迁移操作,当前已验证适配多个 DSH 版本,依赖 Cordis 4.x 及以上版本运行。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 26 stars - an early-stage project星标 26,属于早期项目
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:hkkz9522/dsh-session-manager

把 hkkz9522/dsh-session-manager 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-session-manager — session manager for DeepSeek Harness

English | 中文

npm version GitHub CI Awesome DSH Plugin

0 Overview

DeepSeek Harness session manager: delete, archive, move sessions across workspaces, migrate presets, favorites, review-later, search, filter, sort, prioritize, add tags and notes, and batch-manage sessions.

Verified with the current official DSH Web UI and Desktop app. Both environments use the same plugin's Host/client functionality; environment-specific installation notes are documented below.

1 Features

1.1 Session lifecycle management

  • Delete is irreversible and always asks for confirmation. Subagent sessions and transient blank placeholders (no persisted artifact) cannot be deleted.
  • Archive / Unarchive moves a session in and out of the active list without touching its disk content.
  • Move to workspace keeps history, title, archive state and derived-session relationships intact, rewrites the session's cwd to the target workspace, and updates the live writer's header in place so any pending tool calls keep landing on the new path.
  • Migrate Agent preset rewrites the latest agent-preset/selected event (or the session header if no such event exists) so a session whose preset was renamed or removed can resume. Message history is never altered.

1.2 Session shortcuts

  • Favorites / Review-later are manual flags that survive archive and session end; neither is cleared automatically.
  • Search matches title, session ID, note and tags case-insensitively, trims whitespace, and never reads chat history.
  • Filters and sorting combine a workspace selector (All / Ungrouped / specific) with an archive filter (All / Active / Archived), then layer favorites / review, tag and priority filters on top. Sort by recently updated (default), least recently updated, newest created, oldest created, or priority (1 → 5).
  • Priority is a dropdown 1 Highest, 2 High, 3 Normal, 4 Low, 5 Lowest, default 3 (Normal); legacy null priorities are normalized to 3.
  • Tags / Notes: up to 20 tags per session (≤ 32 characters each) and a 2000-character note. Both English , and Chinese , are separators, whitespace is trimmed, duplicate tags are merged case-insensitively.
  • AI-assisted tagging is manual and opt-in: Copy Prompt writes a structured prompt (Chinese or English, matched to the active UI) to the clipboard; Import parses the clipboard JSON (tolerating Markdown fences, conversational wrappers, smart quotes, stray backslashes and a leading BOM), validates it against the same limits, and populates the editor fields. Neither button calls a model automatically.
  • Annotations live in plain text under the DSH home (dsh-session-manager/annotations.v1.json), keyed by session ID. Same-origin client instances stay in sync via BroadcastChannel. Saves are durable across crashes; revision conflicts surface a "load latest" prompt.

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-subagent-monitor 下一个 Next dsh-skill-hub →