im-Captain/dsh-session-snapshot ↗★ 0
dsh-session-snapshot
在轮次边界自动对 DSH 会话进行完整性验证并留存滚动备份的插件。
AI 分析
核心用途是为每个会话自动创建滚动快照,确保即使发生损坏也最多只损失当前轮次的数据,并支持一键恢复。适合需要对会话历史进行高可靠性备份、防范数据丢失的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:im-Captain/dsh-session-snapshot说明文档
阅读完整 README ↗Configuration
- id: session-snapshot
name: dsh-session-snapshot
config:
keep: 5 # snapshots kept per session before the oldest is pruned
minIntervalMs: 0 # minimum ms between snapshots of one session (0 = every changed turn)
# home: /custom # default: $DSH_HOME (~/.dsh)
Snapshots live under $DSH_HOME/session-snapshots// and are only taken when the log grew and still verifies, so an unchanged or already-corrupt session never spends I/O or overwrites a good copy.