dyhyfjn/dsh-rollback-withdraw ↗★ 0
dsh-rollback-withdraw
为 DeepSeek Harness Web 提供类似 Trae 的会话撤回功能。在每条消息旁提供回滚按钮,可一键恢复工作区代码并回滚对话至上一个完成的轮次。
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).