What is undo-last?
undo-last is a Claude Code mod by rathialok901 that saves files before Claude edits them so /undo-last can put back the last turn's changes. It is listed under Interface and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | rathialok901 |
| Repository | rathialok901/claudemods |
| Popularity | no public popularity data yet |
| Category | Interface |
| Security | High risk (48/100) |
| Rank | #8,030 of 9,397 Claude Code mods; #3,364 in Interface |
| License | MIT |
| Last commit | 2026-10-16 |
| Hooks | 4 events |
| Sees | Edit calls, Write calls, every prompt |
| Draws on | nothing |
Is undo-last safe to install?
undo-last scores 48/100 on the MCPMods security check: High risk. Things to review: starts processes outside the sandbox; writes files or config; reads environment variables; watches every prompt or event. It passed 3 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes files or config | Review |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Doesn't drive Claude | Pass |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.now | |
$.command.register | |
$.env.get | reads env vars |
$.fs.exists | reads files |
$.fs.read | reads files |
$.fs.stat | reads files |
$.fs.write | writes files |
$.process.run | runs processes |
$.state.get | |
$.state.set |
How do I install undo-last?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/rathialok901/claudemods claude plugin validate ./claudemods/plugins/undo-last
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add rathialok901/claudemods && claude plugin install undo-last@claudemods
Or ask Claude to set it up
Paste this into Claude Code and it installs undo-last for you:
Install the "undo-last" Claude Code mod from https://github.com/rathialok901/claudemods/tree/main/plugins/undo-last. Run claude plugin validate on it first and show me what it can access before you enable it.
More from rathialok901/claudemods
This repository has at least 9 Claude Code mods on MCPMods.
- agent-dashboard: Live pane of subagents: type, task, elapsed time, tool calls and status (Low risk)
- auto-compact: Compacts the conversation once context passes a threshold (/compact-at) (Low risk)
- budget-guard: Daily spend budget: warns as you approach it and asks before going over (/budget) (Low risk)
- done-sound: Chime when a long turn finishes, a different sound when it fails (Low risk)
- explain-risky: Explains risky commands in one plain-English line while their approval prompt is open (Low risk)
- guardrails: Blocks destructive commands and access to secret files, for Claude and its agents (/guardrails) (Low risk)
- long-term-memory: Remembers session summaries, decisions and preferences across sessions, in a file you can edit (/brain) (Review before installing)
- mascot: A little character above the prompt that reacts to what Claude is doing (/mascot) (Low risk)