GeoSyntax/dsh-plugin-time-machine ↗★ 0

dsh-plugin-time-machine

Coordinated session/workspace checkpoints, safe rewind, DAG branching, and reflection for DeepSeek Harness 适合需要安全回滚、多分支尝试及工作区状态保护的复杂任务。

Package
dsh-plugin-time-machine
Compatibility
Unverified
Cordis peer range
^4.0.1
Version
0.2.0
License
MIT
Last updated
Sep 19, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:GeoSyntax/dsh-plugin-time-machine

Configuration

最小配置如下:

config:
  autoSnapshot: true
  restoreMode: safe # safe | merge | force
  enableWebUI: true
  workspaceLockTimeoutMs: 30000
  restorePlanTtlMs: 900000

常用增强项包括:

  • autoPreCommandSnapshot: true:在 DSH 高风险工具前创建 pre-command checkpoint。
  • enableAgentWriteLedger: true:登记原生 write、edit、str_replace_editor 结果。
  • preserveVerifiedHandEditsByDefault: true:默认保留有账本证据的人工修改。
  • shadowStore: true:把插件 Git objects 放入独立 shadow store。
  • stateEncryptionKeyEnv、shadowStoreEncryptionKeyEnv、quarantineEncryptionKeyEnv:分别保护 DAG/session、shadow objects 和 quarantine。
  • maxSnapshots、maxStorageBytes、retentionMaxAgeMs:限制快照数量、空间和自动保留年龄。

完整配置、错误码和迁移说明见 docs/PROBLEM.md、DESIGN.md 和 docs/TEST_PLAN.md。