zoyluoblue/deepseek-harness-rewind0

@zoytown/dsh-rewind

在每次对话交互时将工作区快照保存到影子 Git 仓库的 DeepSeek Harness 插件,允许用户将文件恢复到任意历史交互节点。不影响用户自身的 Git 仓库。

AI 分析

核心用途是为工作区提供自动版本控制和回滚保护。适合在运行 Agent 时担心代码或文件被误改、需要随时撤销修改的用户。运行环境必须安装 Git。

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

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:zoyluoblue/deepseek-harness-rewind

Configuration

Edit the dsh-rewind row in your profile's cordis.yml:

- id: dsh-rewind
  name: '@zoytown/dsh-rewind'
  config:
    gitTimeoutMs: 60000
    retentionDays: 30
    maxSessions: 50
    listLimit: 200
    exposeTool: 'off'
OptionDefaultMeaning
gitTimeoutMs60000Deadline for one git command. Raise it for very large workspaces.
excludescommon dependency and build directoriesExtra paths never saved, applied to every workspace on top of your .gitignore. Set to [] to rely on your .gitignore alone.
retentionDays30Sessions whose newest snapshot is older than this are dropped.
maxSessions50How many sessions to keep per workspace, newest first.
listLimit200Most snapshots shown at once.
exposeTool'off'Whether the model can use rewind. See below.

Letting the agent rewind itself

exposeTool is 'off' by default, which keeps rewind a human-only capability.

ValueThe agent can
'off'nothing — rewind is yours alone
'read-only'read its own history (rewind_list)
'full'also restore the workspace (rewind_restore)

'full' is genuinely useful — "this approach is wrong, put the files back and start over" is a recovery move no amount of prompting replaces — and genuinely risky: an agent that misjudges can discard work you wanted. Every restore still saves the overwritten state first, so it is reversible, but the decision to enable it should be yours and deliberate.