
Bash(rm, 포매터, 코드 생성)까지 되돌리는 Claude Code용 undo를 만들었습니다
Reddit 사용자가 공개한 오픈소스 Claude Code 플러그인 claude-time-machine입니다. 도구 호출 전후로 프로젝트 스냅샷을 찍어서, /rewind가 다루지 못하는 Bash를 통한 파일 변경도 /tm undo로 복원할 수 있습니다.

이 mod 소개
글이 다루는 문제는 이렇습니다. 에이전트가 환각을 일으켜 Bash로 무언가를 실행하면서, 아직 push하지 않은 로컬 변경을 망가뜨릴 수 있습니다. 그런데 /rewind는 파일 도구로 한 편집만 되돌립니다.
작성자는 도구 호출마다 프로젝트 스냅샷을 찍는 작은 플러그인을 만들었습니다. /tm undo로 Bash를 통한 변경을 포함해 파일을 복원할 수 있습니다.
- 로컬에서 동작하며 내부는 평범한 git
- 토큰을 쓰지 않음
- Claude Code 2.1.287 이상, macOS 또는 Linux 필요
- 무료 오픈소스, MIT 라이선스
- 설치는 README에 있는 명령 두 줄이 전부
저장소: https://github.com/xzwache/claude-time-machine
설치
설치 방법은 원본 출처를 확인하세요.
원문 / README
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. https://preview.redd.it/vnutp4a6ipth1.png?width=2108&format=png&auto=webp&s=a79747a1fc780553b51e10d516668e6ca798429b It's local, plain git underneath, no tokens. Needs Claude Code 2.1.287+, macOS or Linux. 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: - Generated most of the code, I set the design and reviewed it. - Claude Code in cloud did a lot of the testing: it wrote the tests and ran them for me Built it with the new Claude Code mods. If you try it, tell me where it breaks. submitted by /u/xzwache [link] [comments]
