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.

Archive Retention — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
A

@momojie-s/dsh-archive-retention

Archive Retention

DSH plugin: Scheduled cleanup of archived sessions — automatically physically deletes physical archive stacks and page-archived sessions after the retention period (7 days by default; configurable in days/hours on the page)

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

npx -y @deepseek-ai/dsh plugin --profile web add github:Momojie-S/dsh-archive-retention#90777e3716c42b7b6f5597a1bee8816d7505b223
READMECompatibilityVersions

Compatibility and provenance

Archive Retention is published as @momojie-s/dsh-archive-retention and currently resolves to version 0.2.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/7/2026

Versions

0.2.0stable
9/7/2026
0.1.0stable
8/29/2026

Related plugins

Loading related plugins…

Latest
0.2.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/12/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

Related plugins

More verified plugins in memory-context.

Memory Plugin@openviking/dsh-memory-pluginOpenViking memory and context bundle for DeepSeek HarnessWeknora@wxg-prc-cpg/dsh-weknoraWeKnora knowledge retrieval tools for DeepSeek Harness (dsh): semantic search, document reading and RAG/agent answers over your own knowledge bases.Memsearch Dsh@zilliz/memsearch-dshMemSearch plugin for DeepSeek Harness: shared markdown memory across agents, with capture, pre-step context injection, memory-recall skill, and a skill-candidate review panel.Reme@agentscope-ai/remeReMe client and memory integrations for TypeScript agents

README

@momojie-s/dsh-archive-retention

DSH 插件:归档会话定期清理——物理归档堆(sessions-archive/)、页面归档的会话记录、以及孤儿子 agent 目录,超过保留期(默认 7 天,页面可改,支持天/小时)自动物理删除。保留期即"宽限期":归档 ≠ 永久保存,到期即焚。

一句话作用

归档(页面归档或物理归档)只进不出,日积月累拖慢 Web GUI(实测 664 条会话列表 ≈ 1s/880KB)。本插件在宿主侧挂一个定时清扫:超过保留期的归档记录自动物理删除,每次落审计清单;保留期(数值+单位)、清扫节奏(cron)、范围开关都在 Web 设置页 → 插件 的"归档自动清理"卡片里直接改,无需碰配置文件、无需重启。

环境要求

  • DSH 0.1.1-rc.2(验证基准);web profile(需要设置页 UI);Windows/Linux/macOS
  • 宿主+客户端双半部 bundle 插件

用法

安装重启后无需任何操作:

  • 清扫节奏:每小时检查一次(可配,最小 15 分钟),超期即删
  • 页面配置:设置 → 插件 → 可配置 → "归档自动清理"卡片:总开关、保留数值+单位(天/小时)、两个范围开关
  • 审计:每次删除在 sessions-archive/_manifests/retention-<时间戳>.json 落清单

清理范围(均可独立开关):

范围对象判据
物理归档堆sessions-archive/<workspace>/<id>/目录最新写入早于保留期
页面归档GUI 归档名单里的会话记录同上,且会话不在内存(挂着的绝不删,重启后补删)
孤儿子 agentsessions/ 里 parentSession 指向的父目录已不存在的子 agent 目录同上(冷 + 不在内存);父目录还在(宽限期内)则等父目录先走,子目录下一轮跟随

绝不触碰:未归档的主会话、正在运行/在内存的会话、_manifests 目录、头部读取失败的目录(无法确认父子关系时宁可不动)。

安装

dsh plugin --profile web add <本仓库路径>
# 或
dsh plugin --profile web add github:Momojie-S/dsh-archive-retention

安装后重启 DSH 生效。

配置

patch config(全部可选;页面改动存设置存储,优先级更高):

字段默认说明
enabledtrue总开关
retentionValue7保留期数值
retentionUnitdays保留期单位:days / hours
cleanSessionsArchivetrue清理物理归档堆
cleanGuiArchivedtrue清理页面归档的会话记录
cleanOrphanSubagentstrue清理孤儿子 agent(父会话目录已不存在的超期子 agent 目录)
sweepCron0 4 * * *清扫节奏(5 段 cron,默认每天 04:00)

验证

DSH 日志出现 archive-retention: active (retention 7d, sweep every 60min, ...);设置页插件区出现"归档自动清理"卡片;把保留期临时调成 1 小时,小时内 sessions-archive/_manifests/ 出现 retention-*.json 即闭环。

机制、安全边界与决策记录见 docs/design/overview.md。