dyhyfjn/dsh-rollback-withdraw ↗★ 0
dsh-rollback-withdraw
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. 会话撤回插件:每条消息一键回滚代码与对话。
AI 分析
适合需要频繁调试代码和回退对话的开发者。通过一键回滚代码和会话,能有效避免因模型生成错误代码而手动撤销的繁琐操作。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:dyhyfjn/dsh-rollback-withdrawドキュメント
README 全文を読む ↗Usage
- Chat with the agent as usual; a rollback point is recorded automatically after every completed turn.
- Hover a message and click the undo icon — click once to arm ("confirm"), click again to execute.
- 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.
Configuration
| Key | Where | Default | Meaning |
|---|---|---|---|
gitAutoCommit | /.dsh-rollback/config.json | true | use 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).