Feature Request: Built-in /revert skill for git-based code rollback
Resolved 💬 3 comments Opened May 18, 2026 by wisteenio Closed May 22, 2026
Problem
Currently, Esc Esc can only undo the last message and must be used immediately. Once you've moved several messages forward and realize the code changes went in the wrong direction, there's no built-in way to roll back multiple steps of file changes without manually using git.
Proposal
Add a built-in /revert skill that:
- Runs
git statusto show all current file changes made during the session - Lets the user review what was changed
- Reverts the code changes (via git) while preserving the conversation history
Use Cases
- You've had a multi-turn conversation and Claude made several file edits, but the overall direction was wrong
- You want to keep the conversation context but undo the code changes
Esc Escis too limited (only last message, must be used immediately)
Comparison with Esc Esc
| | Esc Esc | /revert skill |
|---|---|---|
| Scope | Last message only | All accumulated changes |
| Timing | Must use immediately | Any time |
| Conversation | Also undone | Preserved |
| Visibility | None | Shows git diff before reverting |
Current Workaround
Users can implement this as a custom skill, but it would be more useful as a built-in feature accessible to all users.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗