ClaudeMods
☰
JA
● 0 人がオンライン ・閲覧 0 回
スポンサー作品を投稿
Reddit の投稿 · 投稿者 xzwache

Claude Time Machine:rm・フォーマッタ・コード生成を Bash で実行しても戻せる Claude Code 用の undo

ツール呼び出しの前後でプロジェクトのスナップショットを取る Claude Code プラグイン。/rewind では戻せない Bash 経由の変更も、/tm undo でファイルを復元できます。

翻訳済み

この mod について

作者が紹介する Claude Time Machine は、ローカルで動作する MIT ライセンスの Claude Code プラグインです。ツール呼び出しのたびにプロジェクトのスナップショットを取ります。中身は素の git で、トークンは消費しません。

作った動機はこうです。エージェントが幻覚を起こして Bash で破壊的なコマンドを実行したとき、/rewind が戻せるのはファイルツールで行った編集だけです。

/tm undo は、rm、フォーマッタ、コード生成など Bash 経由で変更されたものも含めてファイルを復元します。

必要なもの: Claude Code 2.1.287 以上、macOS または Linux。インストールはコマンド 2 つです。リポジトリは https://github.com/xzwache/claude-time-machine にあり、投稿にはプレビューのスクリーンショットも付いています。

インストール

インストール方法は元のソースをご確認ください。

原文 / README

Hey folks, I kept running into the same thing: 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/l47u6hp3n3uh1.png?width=1080&format=png&auto=webp&s=2f0c17d01c21fa189dbcd45f5b143518173c5a77 How Claude helped: - Generated most of the code, I set the design and reviewed it. - Claude Code in cloud did a lot of testing 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. Repo: https://github.com/xzwache/claude-time-machine Built it with the new Claude Code mods. I'd be glad to hear what you think: what works, what breaks, what's missing submitted by /u/xzwache [link] [comments]

関連作品