Skip to main content

undo-redo

Use the undo_redo tool to rewind or reapply buffered file changes or inspect diffs without UI navigation. Use when you need to adjust or verify changes in the current session history.

소스 정보

저장소
Dwsy/agent
최근 소스 활동
2026년 2월 6일 06:27
감지된 SKILL.md 언어
영어
스타
23
포크
3

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
undo-redo
description
Use the undo_redo tool to rewind or reapply buffered file changes or inspect diffs without UI navigation. Use when you need to adjust or verify changes in the current session history.
# Undo/Redo (LLM Tool) ## When to use - You need to roll back or reapply buffered filesystem changes without asking the user to navigate the session tree. - You need a diff for a specific file across conversation leaves. - You need a list of all buffered diffs. ## Tool actions `undo_redo` supports the following actions: - `undo`: move to the previous leaf and restore files. - `redo`: move to the next leaf and restore files. - `list_diffs`: list all buffered diffs across leaves. - `diff`: show a diff for a specific file. - `path` is required. - `leafId` is optional (defaults to the current leaf). ### Examples ```json {"action":"undo"} ``` ```json {"action":"redo"} ``` ```json {"action":"list_diffs"} ``` ```json {"action":"diff","path":"src/index.ts"} ``` ```json {"action":"diff","leafId":"abcd1234","path":"README.md"} ``` ## Important behavior difference vs commands The tool does not trigger UI navigation and does not rebuild the current turn context. This keeps the current KV cache intact and avoids editor/tree updates. The new leaf and restored files will be applied for the next user prompt when pi rebuilds context. If the user wants immediate UI navigation and context replay, instruct them to use `/undo` or `/redo` instead.
GitHub에서 보기