为 Claude Code 做的撤销插件,覆盖 Bash 的 rm、格式化和代码生成改动
Original title: Built an undo for Claude Code that also covers Bash (rm, formatters, codegen)
The title and summary in the selected language are awaiting translation.
作者做了一个 Claude Code 插件,在每次工具调用前后对项目做快照,用 /tm undo 把文件恢复,包括通过 Bash 改动的部分,弥补 /rewind 只覆盖文件工具编辑的缺口。
| | Hey folks, The thing I kept running into: the agent would hallucinate, run something through Bash and break local changes I hadn't pushed yet. /rewind doesn't help there, it only covers edits made with the file tools. I made a small plugin that snapshots the project around every tool call. /tm undo puts the files back, including what was changed through Bash. It's local, plain git underneath, no tokens. Free and open source (MIT). Install is two commands, they're in the README. Repo: https://github.com/xzwache/claude-time-machine How Claude helped: Built it with the new Claude Code mods. If you try it, tell me where it breaks. submitted by /u/xzwache to r/ClaudeCode[link] [留言] |
Source: Reddit · ClaudeCode / Codex / VibeCoding · reddit.com