Anionex/dsh-turn-rewind65

@anionex/dsh-turn-rewind

DeepSeek Harness 轮次级对话与工作区回滚插件,由持久化变更账本驱动。

AI 分析

核心用途是提供对话和本地文件状态的精确回滚(撤销)功能。适合在 Agent 执行复杂任务出错时,需要一键恢复到之前健康状态的开发场景。

包名
@anionex/dsh-turn-rewind
版本
0.1.1
许可证
BSD-3-Clause
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Anionex/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.