lintsinghua

Oops — Development skill for Claude Code

Development community

Agent 的 Ctrl+Z:一键精准撤销/重做.

How to install Oops

This entry records only its repository, not the path inside it, so there is no exact command to give. Open lintsinghua/oops and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Oops does

Agent 的 Ctrl+Z:一键精准撤销/重做。Ctrl+Z for Agent: precise undo & redo in one step. Works inside Claude Code, Codex, Gemini CLI and Cursor CLI.

Alternatives in Development

README

oops

Agent 的 Ctrl+Z:一键精准撤销/重做
Claude Code、Codex、Gemini、Cursor 对文件做的任何改动都能撤销,rm -rf 也不例外。

Go Platforms Agents Release License: MIT

English · 简体中文

**Agent 改乱了你的项目?一句 /oops,一键回到对话前。**

  • 整轮撤回:Agent 一轮改了 30 个文件?一条命令,全部还原。
  • 你的改动不丢:自动区分 Agent 与你的修改,只撤回 Agent 的部分。
  • 随时反悔:撤回、重做都支持,完整时间线前后自由切换。
  • 不碰 .git:独立快照,Git 历史一行不改。
  • 在 Agent 里直接用:通过 hook 接入 Claude Code、Codex、Gemini CLI、Cursor CLI,无需切换工具,在对话中输入 /oops 即可撤回。

两个场景:在 Claude Code 里用 /oops 撤销,以及在完整时间线里撤销和重做。

curl -fsSL https://raw.githubusercontent.com/lintsinghua/oops/main/install.sh | sh
oops init                         # 一次接好本机所有 Agent,之后就不用管了

为什么需要 oops

编程 Agent 已经可以自己执行 shell 命令了。有时候那条命令是 `rm -rf`、`git clean -fdx`,或者对四十个文件跑一遍 `sed -i`,而被改的文件从来没提交过。

Agent 自带的保护网在这些场景下并不够用: