GeoSyntax/dsh-plugin-time-machine ↗★ 0
dsh-plugin-time-machine
提供会话与工作区快照、回滚及分支管理 适合需要安全回滚、多分支尝试及工作区状态保护的复杂任务。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:GeoSyntax/dsh-plugin-time-machine说明文档
阅读完整 README ↗Configuration
最小配置如下:
config:
autoSnapshot: true
restoreMode: safe # safe | merge | force
enableWebUI: true
workspaceLockTimeoutMs: 30000
restorePlanTtlMs: 900000
常用增强项包括:
autoPreCommandSnapshot: true:在 DSH 高风险工具前创建pre-commandcheckpoint。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。