rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:icyaaaww/dsh-time-machine
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
An undo button for DeepSeek Harness workspace edits.
Inspect a turn's changes, select files, and restore their earlier content while keeping the conversation. A third-party plugin built using DSH's documented bundle and client extension APIs; not an official DeepSeek product.
中文说明 · Download v0.1.0 · Report a problem

This screenshot uses a deterministic test checkpoint. Automatic turn capture is covered by production-service integration tests.
Requires DSH 0.2.1-alpha.1, Cordis 4.0.5-alpha.1, Node 24+ and Git. Tested on Windows. Other pre-stable runtime versions are not claimed compatible. This first release is for local Git workspaces and bounded UTF-8 text files.
Download dsh-time-machine-0.1.0.tgz from Releases, then run:
dsh plugin --profile web add /absolute/path/dsh-time-machine-0.1.0.tgz
dsh --profile web --dump-config
Restart the Web host after installation. For Desktop, use its own plugin management and matching bundled runtime. The tarball includes compiled Host and lazy-CJS browser modules; no install-time build scripts are required.
After an agent changes a local Git workspace, select Open change timeline beside the composer. Inspect a turn, optionally select individual files and refresh the preview, then explicitly confirm undo. Later edits cause a conflict instead of being overwritten. Undo creates another checkpoint, so it can itself be undone. Chat history remains intact, and a persisted inbox notice tells the agent to inspect the restored files.
Human commands: /time_machine, /time_machine preview <id>, /time_machine undo <preview-token>, /time_machine name <id> <label>, /time_machine recover. Preview tokens are single-use, session-bound, and expire after five minutes by default. Commands operate only while the receiving agent is idle. Model tools cannot invoke restoration through this plugin.
The time-machine row accepts storageRoot (default $DSH_HOME/plugins/time-machine, falling back to ~/.dsh/plugins/time-machine), maxFileBytes (2 MiB), maxFiles (5,000), maxStoreBytes (512 MiB per repository), maxRecords (2,000 per repository), timeoutMs (30,000), maxDiffChars (60,000), and previewTtlMs (300,000). Configure storageRoot explicitly when the launcher home differs from its environment. Storage must be outside the repository. Limits stop new captures rather than silently evicting checkpoints.
dsh.bundle.patch mounts one function plugin with named name/inject/Config/apply exports. Runtime identity dependencies are declared as both peers and development dependencies. Registrations are Cordis effects; disposal removes admission and drains in-flight operations. Browser UI uses the official conversation.input.dock and keyed conversation.chat.commandview slots, typed locale dictionaries and the lazy window.__ModuleLoader__.load({id,factory}) module format.
Snapshot records and content-addressed objects live outside the repository. git ls-files discovers tracked and non-ignored untracked files without changing Git state. SHA-256 plus permission modes identify file versions. A write-ahead journal precedes restoration; recovery rolls back applied files only if they still match one of the recorded versions. The plugin uses the existing command/run, command/done, and durable Agent inbox vocabulary, so removal does not introduce unknown custom Session event types.
npm ci --ignore-scripts
npm run typecheck
npm run build
npm test
npm pack
Tests cover real temporary repositories, the official YAML Loader, production Agent and command services, durable inbox notification, uninstall lifecycle, browser factory loading, and React interaction. The implementation has been executed on Windows; macOS/Linux require additional platform acceptance.
After a human restoration, an appended time-machine context notice identifies the checkpoint and restored paths, asks the agent to inspect files before editing and rerun tests when necessary. The notice enters the persistent Agent inbox and the Session is flushed. It does not wake the model.
One path-list notice per restoration/recovery. Capturing snapshots and viewing changes perform no model requests.
Append-only context. Existing conversation history is not rewritten.
/time_machine recover. Existing user edits that differ from the journal block recovery.CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek、deepseek-harness。