dsh-auto-archive
Auto-archives sessions idle beyond a configurable threshold, with safety guards (never touches live or running sessions), plus a full archived-session management UI: list, unarchive, safe delete and content preview.
按闲置天数自动归档冷会话(带运行中、驻留会话安全护栏),并提供归档会话管理面板:查看、释放、安全删除与内容预览。
How to install
dsh plugin add dsh-auto-archive About
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 同一套兜底) **设置卡片**:开关 / 阈值 / 周期编辑、立即扫描(仅预览)、立即扫描并归档(二次确认)、最近一次扫描审计与待归档预览列表 **手动归档**…
Recommendation signals
Meta
- License
- MIT
- Language
- TypeScript
- GitHub stars
- 0
- mo. downloads
- –
- Last push
- 2026-09-18
- Created
- 2026-09-18
Basic safety check
- Findings
- None
- Sources
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- Topics
- dsh-plugin, dsh-plugins
Related plugins
billion-context
ranxianglei/billion-context
The official billion-context plugin: a context-compression plugin for small context windows (a 100K context is enough), token savings (5x fewer tokens), and month-long single sessions (billions of tokens).
dsh-chat-import
Nwflower/dsh-chat-import
Import full-fidelity chat histories from 13 coding agents (Claude Code, Codex, ChatGPT, Cursor, Gemini, opencode, and more) as resumable DeepSeek Harness sessions, with reverse export back to Claude Code.
dsh-rewind
SiriLee/dsh-rewind
In-place conversation rewind in the same session window without forking (Claude Code /rewind semantics): a per-message ↶ button cuts the model context back to any user message, with an optional Claude-Code-style file restore from disk-persisted before-backups.
dsh-recall-plugin
limbo947/dsh-recall-plugin
Recall any user message: rolls the conversation (official session fork) and workspace files (per-message shadow git snapshots) back to before it, with a diff-preview confirmation panel.