Agent Skills
› regent-vcs/re_gent
› rewind
rewind
GitHub用于将工作区和对话状态回退到之前的指定步骤,支持通过步骤哈希定位。在回退前自动创建备份,防止数据丢失,适用于从错误中恢复或探索替代方案。
触发场景
用户希望撤销最近的更改并恢复到历史状态
用户想要尝试不同的操作路径或修复因误操作导致的问题
安装
npx skills add regent-vcs/re_gent --skill rewind -g -y
SKILL.md
Frontmatter
{
"name": "rewind",
"description": "Rewind workspace and conversation to a previous re_gent step. Non-destructive with automatic backup. Use when recovering from mistakes or exploring alternative paths.",
"allowed-tools": "Bash(rgt rewind *)",
"argument-hint": "<step-hash>",
"disable-model-invocation": true
}
⚠️ Warning: This will restore files and conversation state to the specified step.
Automatic backup is created at .regent/backups/ before rewinding.
Rewind to a step:
rgt rewind $ARGUMENTS
The step hash can be shortened (first 7+ characters).
After rewinding, the current conversation transcript will be saved and the workspace files will match the target step's state.
版本历史
- 359b264 当前 2026-07-24 11:31


