DSH Plugins Marketplace

DSH Plugins

Plugins

/

Development & Infrastructure

/

dsh-rollback-withdraw

d

dsh-rollback-withdraw

Manifest valid★ 3

Trae-style withdraw for DeepSeek Harness Web: a rollback button on every user/assistant message that restores the workspace code (git commits or hard-link file snapshots) and forks the session back to the last completed turn. Session Rollback Plugin: one-click rollback of code and conversation for each message.

UI (client)hasBundlePatchMachine translated

dsh-rollback-withdraw

Trae-style withdraw for DeepSeek Harness Web. A one-click rollback button on every user question and assistant answer that rewinds both the workspace code and the conversation itself (memory, trajectory, goals) to the state before that message.

简体中文 · English

License Platform


What it does

Every completed turn in a DSH web session becomes a rollback point. Click the undo icon next to any message and the workspace files are restored to the last completed turn before it, while the session is forked at that point and the rolled-back conversation opens automatically — exactly as if that exchange never happened.

  • Workspace code — restored via the best available backend (see below).
  • Conversation — the session is forked at the boundary and the child (rolled-back) session is opened; model memory, trajectory, goals and subagent lineage all match that point in time.
  • First-class git integration — when the workspace is a git repository, checkpoints are real commits, and a withdraw is a git reset --hard + a safe git clean.

Features

  • Withdraw on every message — under every user bubble and on the final assistant message of each completed turn.
  • Two restore backends, chosen automatically:
    • Git mode (default on, one-click toggle): every turn end is committed as rollback checkpoint <seq>; a withdraw restores via git reset --hard + git clean that preserves dependency/build directories. Space-efficient and aligned with normal git workflows.
    • File-snapshot mode: otherwise, hard-link snapshots are taken at every turn end — unchanged files share a single copy across snapshots, so keeping hundreds of turns costs almost nothing.
  • Per-workspace toggle — the git-branch icon in the session header turns git auto-commit on/off; the choice persists in .dsh-rollback/config.json.
  • Loads automatically — packaged as a web-profile bundle (dsh.bundle + dsh.client), it starts with the client; no re-activation after restarts.
  • Two-step confirm — click once to arm (button turns red), click again to execute, so a rollback is never accidental.

Requirements

ItemNotes
OSWindows (uses robocopy + PowerShell 5.1+); other platforms planned
Gitoptional — only needed for git mode
DSHweb profile (dsh web)

Installation

# from npm
dsh plugin --profile web add dsh-rollback-withdraw

# or from this repository
dsh plugin --profile web add github:dyhyfjn/dsh-rollback-withdraw

# or a local build
npm pack && dsh plugin --profile web add ./dsh-rollback-withdraw-0.1.0.tgz

Restart the web app afterwards — plugin-set changes take effect on restart.

Usage

  1. Chat with the agent as usual; a rollback point is recorded automatically after every completed turn.
  2. Hover a message and click the undo icon — click once to arm ("confirm"), click again to execute.
  3. The workspace is restored and the UI switches to the forked, rolled-back session. Continue from there.

The git-branch icon in the session header shows git-mode status:

  • lit (brand color + green dot) = git auto-commit on;
  • dimmed = off, or the workspace is not a git repository (tooltip explains);
  • disabled when the workspace has no git repo.

How it works

  • The host half listens to session/event and records a checkpoint at every turn/end — a git commit, or a hard-link snapshot under <workspace>/.dsh-rollback/snap/<session>/<seq>/.
  • Client buttons talk to the host through a same-origin HTTP route /rollback/rpc (the static-plugin channel that replaces the dynamic harness.handle).
  • A withdraw validates the boundary (the last turn/end before the message), restores the files, then the client forks the session at that sequence and opens the child.
  • The first message of a session cannot be withdrawn (there is no prior turn); messages from before the plugin was installed have no snapshot — the button explains why.

Configuration

KeyWhereDefaultMeaning
gitAutoCommit<workspace>/.dsh-rollback/config.jsontrueuse git commits as rollback points when the workspace is a git repo

Ignored paths (never snapshotted, committed, or deleted): node_modules, .git, dist, build, .next, .venv, __pycache__, .idea, .vscode, coverage, *.pyc, *.log, … (see IGNORE_DIRS / IGNORE_FILES in lib/index.js).

Security note

/rollback/rpc is a same-origin, unauthenticated route on the localhost web server — this tool assumes personal, localhost-only usage. Do not expose the harness port to untrusted networks.

Limitations

  • Windows first (robocopy + PowerShell); macOS/Linux fallbacks are planned.
  • Git mode performs a whole-repository git reset --hard + git clean (ignored directories preserved) — untracked non-ignored files are deleted on rollback.
  • Withdrawing an assistant answer also rewinds the preceding question (rollback returns to the last completed turn end); the platform's fork primitive only cuts at turn boundaries.
  • The source session stays in the sidebar as a branch; there is no auto-archive.

Development

npm pack                 # produce the publishable tarball
node --check lib/index.js lib/client.js   # syntax gate

License

MIT — see LICENSE.

Versions

Latest versionPublishedSize
0.1.0——
0.1.1——

Comments

Loading…

Similar plugins

dsh-rollback

by domitor-syh

TRAE-style conversation rollback — per-turn checkpoints (10-turn sliding window) restore both touched files and truncate model context in place, keeping the same session id. Triggered via model tool,

Tools & CapabilitiesSessions & MessagesDevelopment & InfrastructureManifest valid

★ 2

MIT

TypeScript

Oct 10, 2026

dsh plugin --profile web add @domitor-syh/dsh-rollback

by sharedcare

Codex-style conversation rollback and edit-and-resend plugin for DeepSeek Harness (DSH) Web UI

Sessions & MessagesManifest valid

★ 0

MIT

JavaScript

Sep 11, 2026

dsh plugin --profile web add conversation-rollback

TRAE-style conversation rollback rebuilt for DSH 0.1.7-rc.2: per-turn file checkpoints restore touched files and truncate the model context in place under the same session id. Adds a /rollback doctor

UI & ExperienceManifest valid

★ 1

NOASSERTION

TypeScript

dsh plugin --profile web add @nianchu/dsh-rollback

by keepermttl

DeepSeek Harness 归档会话管理插件:查看/恢复已归档会话(回到原工作区分组)+ 右上角一键关闭 dsh。MIT 许可,欢迎收录到任何插件合集,注明出处即可。

Sessions & MessagesManifest valid

★ 4

MIT

TypeScript

Sep 26, 2026

dsh plugin --profile web add @dsh-external/dsh-archive-viewer

by Anionex

deepseek harness对话和代码状态回退插件 | DSH — rewind conversation and workspace state, powered by a persistent Change Ledger

Sessions & MessagesManifest valid

★ 131

BSD-3-Clause

JavaScript

Oct 1, 2026

dsh plugin --profile web add @anionex/dsh-turn-rewind

by XSJUSTC

DSH (DeepSeek Harness) conversation rewind plugin - rewind to any user message, interrupt a running turn, hide the tail from chat view and model context, cancel freely before sending.

UI & ExperienceManifest valid

★ 11

MIT

JavaScript

Sep 22, 2026

dsh plugin --profile web add @xsj/dsh-rewind