hezi2020/dsh-plugin-wiki--plugins-dsh-turn-rewind0

@dsh-external/turn-rewind

基于持久化变更账本的 DSH 轮次级对话与工作区回滚插件。

AI 分析

核心用途是提供对话和工作区文件的轮次级回滚与自动检查点恢复。适合在复杂 Agent 任务中需要随时撤销错误修改、回溯历史状态的开发和调试任务。需在 DSH profile 中挂载并重启。

包名
@dsh-external/turn-rewind
版本
0.1.0
许可证
MIT
最近更新
2026年8月14日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:hezi2020/dsh-plugin-wiki#0f911a1b7aef331b19607a60c884be50e910c0ab&path:plugins/dsh-turn-rewind

Configuration

Override configuration in the profile patch layer:

- id: turn-rewind
  config:
    storageDir: ~/.dsh/change-ledger/v1
    maxRestorePoints: 50
    maxTurnCheckpointsPerSession: 30
    maxFiles: 20000
    maxFileBytes: 16777216
    maxSnapshotBytes: 536870912
    planTtlMs: 900000
    staleLockMs: 30000

All size and user-point retention limits fail loudly. Automatic turn checkpoints have a separate per-session retention window and prune only their own oldest checkpoints; user and rescue restore points are never silently pruned. When omitted, storageDir resolves to $DSH_HOME/change-ledger/v1 and falls back to ~/.dsh/change-ledger/v1; it must not overlap the managed worktree.