DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Auto Archive — DSH Plugin for DeepSeek Harness
← Plugins
A

dsh-auto-archive

Auto Archive

Auto-archive for DeepSeek Harness: periodically archives sessions idle beyond a threshold, plus full archived-session management (list/unarchive/delete/detail) in the web UI. · DSH 自动归档:按闲置天数自动归档会话,含归档管理面板。

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:wzn16/dsh-auto-archive#48388be17721afa1620a7ba4b11e97db4c8fffd9
READMECompatibilityVersions

Compatibility and provenance

Auto Archive is published as dsh-auto-archive and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
9/18/2026

Versions

0.1.0stable
9/18/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
9/18/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

Related plugins

More verified plugins in productivity-workflow.

Acp App@deepseek-ai/dsh-acp-appThe dsh ACP profile bundle: automation-only JSON-RPC stdio and process lifecycle over dsh-baseWeb All@linxin666/dsh-web-allDSH Web UI 全家桶聚合插件:一键安装全部功能插件(task-board / git-graph / pet / remote-web-ui / web-ui-settings / skin-center / community-plugins / compat shim)。compat 桥接层已并入本包(src/client),无需独立 compat npm 包。Codex Ui@michengai/dsh-codex-uiDSH Codex UI — 为 DeepSeek Harness Web 提供 Codex 风格侧栏、工作区会话树、全局搜索和轮次导航 · A Codex-style sidebar, workspace session tree, global search, and turn navigation for DSH WebAutomation@michengai/dsh-automationExecute coding tasks on a schedule in an independent DSH Session, with dual-entry management via a Web settings page and Agent.

README

dsh-auto-archive

DSH 会话自动归档插件 —— 在原 dsh-archived-sessions(归档会话管理)基础上加入后台自动归档引擎,按闲置时长把冷会话自动移入归档区。

在 Harness 的「设置 → 归档会话」页面提供:

自动归档(新增)

  • 闲置阈值:会话文件超过 N 天未写入(默认 14 天)即自动归档;mtime 取会话目录内所有代际日志(session.jsonl.zstd / session.v3.jsonl.zstd 等)的最新写入时间
  • 后台定时扫描:默认每天 1 次(可调 0.25–365 天),Harness 启动 3 分钟后跑首轮;扫描不重叠
  • 安全护栏(自动归档只碰完全冷掉的会话):
    • 正在运行回合的会话永不触碰
    • 仍驻留内存(live)的会话一律跳过,哪怕文件已安静多日
    • 手动排除清单(excludeIds)里的会话永不自动归档
    • 已在归档区的会话天然幂等跳过
  • 归档通道:优先走官方 workspaceRegistry.archiveSession(),异常时降级为 storage 域直写 + 私有缓存同步(与 dsh-session-manager 同一套兜底)
  • 设置卡片:开关 / 阈值 / 周期编辑、立即扫描(仅预览)、立即扫描并归档(二次确认)、最近一次扫描审计与待归档预览列表
  • 手动归档:会话清单逐个「归档」/「永不自动归档」(排除清单 UI 化),无需等闲置阈值

归档会话管理(继承自原插件)

  • 查看所有已归档会话(标题、创建时间、所属目录、磁盘路径、占用空间)
  • 释放(取消归档)—— 单个、批量、一键全部
  • 从硬盘删除 —— 单个、批量、一键清空(两步确认)
  • 点击标题展开预览会话内容(用户 / 助手 / 工具消息)

⚠️ 安全提示:本插件包含「从硬盘删除会话文件」能力,删除不可恢复。自动归档只做归档(可逆),删除始终需要手动触发。安装前请自行审阅源码。

状态持久化

配置与最近一次扫描审计存于 harness 根目录的 dsh-auto-archive.json(根目录由会话产物路径自动推导,如 ~/Library/Application Support/dsh-desktop/harness/dsh-auto-archive.json),原子写入,可直接手工编辑后重启。

安装(本地 link 方式)

# 1. profile 依赖加入本地链接
cd ~/Library/Application\ Support/dsh-desktop/harness/profiles/web
pnpm add "link:/path/to/dsh-auto-archive"

# 2. 重启 DSH,设置面板出现「归档会话」页与「自动归档」卡片

或从 GitHub 安装(推荐,克隆后 link):

# 1. 克隆仓库到本地任意位置
git clone https://github.com/wzn16/dsh-auto-archive.git

# 2. profile 依赖加入本地链接(路径换成你自己的克隆位置)
cd ~/Library/Application\ Support/dsh-desktop/harness/profiles/web
pnpm add "link:/path/to/dsh-auto-archive"

# 3. 重启 DSH,设置面板出现「归档会话」页与「自动归档」卡片

开发

npm install        # typescript 等构建依赖(运行时零外部依赖)
npm run build      # tsc 宿主 + tsc client + ModuleLoader 包装
npm run typecheck

源码结构:

  • src/auto-archive.ts — 自动归档引擎:配置持久化、扫描/归档、调度器
  • src/index.ts — 宿主半:/dsh-archived/* JSON API(list/unarchive/delete/detail + auto-status/auto-config-set/auto-scan)、路由注册、调度器生命周期
  • src/client.tsx — Web 设置页:自动归档卡片 + 归档会话管理表格

致谢与许可

归档管理部分基于 MuWinds 的 dsh-archived-sessions(MIT)改写;自动归档引擎与降级归档逻辑参考了 dsh-session-manager 对 registry 缓存一致性的处理经验。本项目 MIT。