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

@dsh-external/turn-rewind

Turn-level conversation and workspace rewind for DeepSeek Harness, powered by a persistent Change Ledger

AI 分析

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

パッケージ
@dsh-external/turn-rewind
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/08/14

インストール

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

ドキュメント

README 全文を読む ↗

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.