DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Time Machine — DeepSeek Harness 插件(DSH Plugin)
← Plugins

@goodandready/dsh-time-machine

Time Machine

用于智能检查点、工作区安全防护和即时回滚的 DSH 插件

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add @goodandready/dsh-time-machine@0.1.20
README兼容性版本

兼容性与来源证明

Time Machine 以 @goodandready/dsh-time-machine 发布,当前版本为 0.1.20。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/9/20

版本

0.1.20stable
2026/9/19
0.1.19stable
2026/9/18
0.1.18stable
2026/9/17
查看其余 16 个版本收起版本
0.1.17stable
2026/9/16
0.1.15stable
2026/9/13
0.1.14stable
2026/9/10
0.1.13stable
2026/9/10
0.1.12stable
2026/9/9
0.1.11stable
2026/9/9
0.1.10stable
2026/9/8
0.1.9stable
2026/9/6
0.1.8stable
2026/9/5
0.1.7stable
2026/9/2
0.1.6stable
2026/8/31
0.1.5stable
2026/8/31
0.1.4stable
2026/8/31
0.1.2stable
2026/8/31
0.1.3stable
2026/8/31
0.1.1stable
2026/8/31

相关插件

正在加载相关插件…

最新版
0.1.20
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
142.1 kB
文件数
11
Surface
web
许可证
MIT
发布源
npm
GitHub
★ 0
周下载
866
安全扫描
✓ v0.1.20 扫描通过
最近提交
2026/9/19
查看源码 ↗项目主页 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录

相关插件

继续浏览 developer-tools 分类下经过校验的插件。

Web App@deepseek-ai/dsh-web-appdsh 浏览器界面捆绑包:位于 dsh-base 之上的 Web 补丁层,加上运行时粘合插件(提供前端 dist、Web 界面提示符、bash 运行时变量和 URL 行)Sdk Minimal@deepseek-ai/dsh-sdk-minimal独立的最小 SDK 配置包:JSON-RPC、一个 DeepSeek 适配器、持久化 Shell 和 JSONL 会话Sdk App@deepseek-ai/dsh-sdk-appdsh SDK 配置包:基于 dsh-base 提供 stdio JSON-RPC 服务和进程生命周期管理Subagent Codex@deepseek-ai/dsh-subagent-codex基于官方 app-server 协议的一次性 Codex 子代理提供程序

README

📦 @goodandready/dsh-time-machine

Automated Shadow Git Snapshots, Workspace Time-Travel & Instant Rollback for DeepSeek Harness

🇬🇧 English • 🇷🇺 Русский • 🇨🇳 中文说明

⭐ If you like this plugin, please star it on GitHub — it shows me that the plugin is useful to you and motivates me to keep developing it.

🐛 If you find a bug or would like to request a feature, open a GitHub issue in any language — I will review your proposal and implement useful suggestions in a future plugin version.

⚡ Overview

dsh-time-machine provides an automated safety net and instantaneous rollback engine for DeepSeek Harness workspaces.

Autonomous agents frequently execute complex multi-file refactorings, run mutating shell commands, or install dependencies. When an unexpected regression or broken state occurs, manual git reversion can be messy and risk losing untracked files or user git history.

dsh-time-machine creates lightweight shadow git snapshots in the background without modifying user git commits or branches, providing 1-click interactive rollback, visual file diffs, and automatic recovery prompts on command failure.

graph LR
    subgraph AgentAction [DSH Agent Mutating Operations]
        Agent[🤖 Agent: Edits Files / Runs Commands] --> Trigger{Pre-Action Hook}
    end

    subgraph TimeMachine [dsh-time-machine Core Engine]
        Trigger --> ShadowGit[Shadow Git Snapshot Engine]
        ShadowGit --> Snapshots[(In-Memory Checkpoint Timeline)]
        Snapshots --> DiffEngine[Visual Workspace Diff Calculator]
    end

    subgraph SafetyNet [Restoration & Web UI Studio]
        DiffEngine --> Sidebar[🕒 Time Machine Sidebar Tab]
        Snapshots --> Rollback[⏪ 1-Click Instant Workspace Rollback]
        Rollback --> CleanState[Restored Pristine Working Tree]
        Trigger -.->|Command Error| AutoHeal[🩹 Auto-Heal Rollback Prompt]
    end

    style AgentAction fill:#1e1e2e,stroke:#89b4fa,stroke-width:2px,color:#cdd6f4
    style TimeMachine fill:#181825,stroke:#cba6f7,stroke-width:2px,color:#cdd6f4
    style SafetyNet fill:#11111b,stroke:#a6e3a1,stroke-width:2px,color:#cdd6f4

🌟 Key Capabilities

1. 🛡️ Lightweight Shadow Git Snapshots

  • Captures the full working tree, staged changes, and untracked files using isolated Git shadow tree references;
  • Zero interference with user commit history, current active branch, or repository staging area;
  • Maintains a rolling history of the most recent checkpoints with clear timestamps, session scoping, and labels.

2. ⏪ Instant Safe Rollback (time_machine_checkpoint_rollback)

  • Restores the entire workspace or specific files to any previous checkpoint in milliseconds;
  • Uses non-destructive checkout-index and clean without moving HEAD or rewriting branch history;
  • Can be triggered programmatically by the agent or interactively by the user in the UI.

3. 🔍 Visual Snapshot Diff Inspector (time_machine_diff)

  • Computes file-by-file visual diffs comparing current workspace state against any checkpoint;
  • Highlights added, deleted, and modified lines with clean line numbers and statistics.

4. 🕒 Interactive Sidebar & Settings Timeline (lib/client.js)

  • Seamlessly integrates into DSH Web UI sidebar and settings tab;
  • Displays a chronological timeline of session checkpoints with 1-click "Rollback", "Diff", and "Delete" buttons.

5. 🩹 Auto-Heal on Command Failure

  • Automatically records checkpoints when a tool or command fails, preserving recovery options.

4. Selective File Rollback & Staging Safety (v0.1.15)

  • Single File Restore: Restore individual files corrupted by an agent without losing progress in other files via time_machine_file_rollback or Diff Modal UI.
  • Staging Safety Guard: Preserves user uncommitted git add index (stagedTreeHash) across turns.
  • Pre-Tool Auto-Checkpoints: Captures checkpoints automatically prior to high-risk tools (bash, execute_command, apply_patch).
  • Structured File Diff Navigation: Monospace side-by-side file tree with line addition/deletion statistics.

🛠️ Agent Tools Reference (7 Tools)

Tool NameParametersDescription
time_machine_checkpoint_createlabel?: string, sessionId?: stringCreates a shadow git workspace checkpoint before risky edits or operations
time_machine_checkpoint_listsessionId?: stringLists all recent workspace checkpoints newest first
time_machine_checkpoint_rollbackid: string, confirm: booleanSafely reverts workspace files back to specified checkpoint without altering branch HEAD
time_machine_difffrom: string, to?: stringReturns unified file diff between current workspace and target checkpoint
time_machine_checkpoint_deleteid: string, confirm: booleanPermanently deletes a single checkpoint and purges its git reference
time_machine_checkpoint_prunesessionId?: string, keep?: numberPrunes session checkpoints, keeping only the newest N checkpoints

📦 Quick Installation

dsh plugin --profile web add @goodandready/dsh-time-machine

⚙️ Configuration Reference (settings.yaml)

dsh-time-machine:
  autoSnapshotEnabled: true    # Automatically take checkpoints before file modifications
  maxSnapshots: 20             # Maximum rolling checkpoints retained in memory
  autoHealPrompt: true         # Prompt for rollback when a command fails

📋 Release Notes

v0.1.16 — Security Hardening & Sidebar Tab Deduplication

  • Security (Gitea #38): Converted isTrustedSettingsRequest to a strict fail-closed model, verifying loopback IP (127.0.0.1, ::1), sec-fetch-site (same-origin, none), request origin matching host, and bearer tokens. Enforced HTTP method restrictions across all REST routes: all 5 mutating endpoints (/create, /delete, /prune, /rollback, /rollback-file) strictly require POST and return 405 Method Not Allowed otherwise, while read routes (/snapshots, /diff) strictly require GET.
  • Fixed (GitHub #2): Resolved sidebar duplicate registration exception (tab kind "time-machine" is already registered) in DSH >= 0.1.6-alpha.1 when both native sidebarRightTabs and betterSidebar are present. Unified tab registration under a single shared guard with native sidebar precedence and safe error suppression.

v0.1.15 — Selective File Rollback, Staging Safety & Rich Diff Modal

  • Added in v0.1.15: Selective single-file rollback (time_machine_file_rollback tool and /rollback-file HTTP route) enabling surgical restoration of specific modified files without touching the rest of the workspace.
  • Added in v0.1.15: Staging area isolation via stagedTreeHash, protecting staged files during snapshot creation and rollback.
  • Added in v0.1.15: Interactive file browser in Diff Modal with per-file stat and diff patch preview.
  • Added in v0.1.15: Automated pre-tool checkpoints (auto:pre-tool:<tool>) triggered before tool executions that could modify the workspace.
  • Changed in v0.1.15: Strict compliance with DSH localization standard (pure en/zh client bundle, external Russian translations registered via goodandready/dsh-russian-lang).

v0.1.12 — Fix Oversized Clock Icon in Native Sidebar Guide

  • v0.1.14: Complete visual alignment with the dsh-clinebot design token standard: full light/dark theme support using --dsw-alias-* tokens, primary and danger action buttons, status badges for settings card and timeline, dark modal unified diff viewer with backdrop blur. Added CSRF protection (isTrustedSettingsRequest) for all mutating HTTP routes, hooked orphaned Git index cleanup (cleanupOrphanedIndices) into plugin initialization, and added autoHealPrompt error checkpoint support to the legacy event bus fallback.
  • v0.1.13: Deprecated and removed top-level settings.section fallback to prevent occupying the flat global settings sidebar in DeepSeek Harness Web UI; plugin settings strictly reside in collapsible settings.plugin.item card. Harmonized settings scope resolution using safe ctx.get('settingsScope') proxy access.
  • Fixed in v0.1.12: Replaced function-based icon with dedicated TimeMachineIcon component supporting both props object { size, className } and numeric argument, with explicit inline sizing (width, height, display: inline-block, flex: none) to prevent overflow in the Right Sidebar Guide card.

v0.1.11 — Dual Sidebar Support: Native DSH Right Sidebar & BetterSidebar

  • Added in v0.1.11: Support for native DSH Right Sidebar (sidebarRightTabs + sidebar.right.pane.tab) introduced in DSH 0.1.5-alpha.1, including guide page registration with custom icon.
  • Preserved in v0.1.11: Legacy betterSidebar integration retained with deterministic surface-scoped registrations, preventing ID collisions or duplicate mounts when both surfaces exist.
  • Added in v0.1.11: Graceful degradation to plugin settings card when neither sidebar surface is available.

v0.1.10 — Stability, Dynamic CWD, Unified Diff & Architecture Polish

  • Added in v0.1.10: Dynamic / session-aware cwd resolution: TimeMachine tools and REST endpoints automatically locate the active session workspace or accept explicit target directory.
  • Added in v0.1.10: Unified diff support (format: "patch" | "stat") with size limits (up to 256KB) and clean truncation warnings.
  • Added in v0.1.10: Async execution queue on Git mutation engine to completely eliminate lockfile collisions under concurrent agent operations.
  • Added in v0.1.10: Single-batch Git ref querying using git for-each-ref replacing $O(N)$ sequential git log processes for instant snapshot listings.
  • Added in v0.1.10: Redundant commit deduplication: auto-snapshots are safely skipped if the working tree has not changed.
  • Added in v0.1.10: Startup cleanup of temporary tm_index_* staging files.
  • Changed in v0.1.10: Settings UI card streamlined, directing snapshot inspection to the dedicated Time Machine sidebar tab.
  • Changed in v0.1.10: Comprehensive error logging replacing silent exceptions.

v0.1.9 — Event Bus Harmonization & Dependency Cleanup

  • Changed in v0.1.9: Harmonized event bus subscriptions to prevent duplicate checkpoints. Native DSH session/event bus takes precedence, with legacy ctx.events used strictly as a fallback when ctx.on is unavailable.
  • Changed in v0.1.9: Removed unused @deepseek-ai/dsh-credentials from peerDependencies.
  • Added in v0.1.9: Standardized project design contract in docs/design/DESIGN.md.

v0.1.7 — Critical Safety, Staging Isolation & Native Event Bus

  • Changed in v0.1.7: Safe workspace rollback via read-tree + checkout-index + clean -fd. Rolling back to a checkpoint never modifies branch HEAD or severs git commit history.
  • Changed in v0.1.7: User staging area protection. Checkpoints now isolate git index creation through GIT_INDEX_FILE, preventing disruption of pre-staged files in .git/index.
  • Changed in v0.1.7: Native DSH session event integration. Subscribed to session/event bus for automated checkpoints on turn/start, approval/asked, turn/end, and command errors.
  • Changed in v0.1.7: Automatic Git ref cleanup on snapshot eviction to eliminate disk ref leaks.
  • Changed in v0.1.7: Direct working directory diff computation when comparing checkpoints with uncommitted changes.
  • Changed in v0.1.7: Strict compliance with DSH Plugin Authoring guidelines: form fields are enabled only when settings status is ready.
  • Added in v0.1.7: WebServer request body size limit (1MB max payload) for DoS protection.
  • Added in v0.1.7: Complete Chinese localization (zh) in frontend interface.

📄 License

MIT © GooDAnDReaDY