Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Joys-Dawnv1.3.0Apache-2.0In 1 marketplace
Single-slot undo for Claude's in-session changes, covering Bash-driven filesystem mutations that native /rewind misses.
Claude loads one when your task matches it, or you run it by name.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code plugin that lets you undo everything Claude changed since your last prompt — including changes made by Bash commands (npm install, build scripts, git operations, file deletions) that Claude's built-in /rewind doesn't cover.
/plugin marketplace add Joys-Dawn/toolwright
/plugin install timewright@Joys-Dawn/toolwright
No configuration needed — hooks activate automatically.
Type /undo after Claude makes changes you want to revert.
/undo
If a request reached Claude via wrightward/Discord (between turns), the UserPromptSubmit hook didn't fire and there's no fresh snapshot to undo to. Use /snapshot first if needed to capture the current state, then proceed.
/snapshot
Claude will show you exactly what will change:
You'll be asked to confirm before anything is applied.
timewright snapshots your working tree at the start of every Claude turn, so /undo reverts changes from all mutating tools:
rm -rf, migrations, git reset, sed/awk rewrites, etc.)Read-only tools (Read, Grep, Glob) don't trigger snapshots — they're free.
Important: timewright respects .gitignore and excludes directories like node_modules/, dist/, build/, etc. This means /undo cannot restore the contents of those directories. For example, if Claude runs npm install, the changes to package.json and package-lock.json are covered, but the installed packages in node_modules/ are not. Re-run npm install after undoing if needed.
/undo restores every file to the snapshotOnly one snapshot exists at a time. Each new prompt replaces the previous snapshot.
The snapshot captures your in-progress work too. If you had unsaved edits, uncommitted changes, or untracked files when Claude started its turn, /undo restores those — not just the last git commit.
timewright respects your .gitignore and also excludes:
node_modules/, dist/, build/, .next/, and other build output directories.env and .env.local (secret files are never copied into the snapshot).git/ internalsNon-secret dotenv files like .env.example and .env.template are included normally.
/undo does NOT cover/undo rewinds your project directory, not your machine. Anything outside the git repo is out of scope:
~, C:\, or other user/system directories that Claude touched via Bash (e.g., echo x > ~/.bashrc, edits to C:\Users\you\AppData\...)cd'd into mid-sessionThe snapshot is bounded to the git repo where Claude was launched. Only files inside that repo (that git would list via ls-files or that are dirty) are captured — and only those are restored on /undo.
If you (or another tool) run git commands that move HEAD between the snapshot and the undo (e.g., git checkout, git reset, git rebase), timewright warns you before applying. The undo would restore files to a state that assumed the old HEAD — which may not be what you want.
If some files can't be restored (locked by another process, permission issues), timewright reports exactly which files failed and which succeeded. Nothing is silently skipped.
All timewright state lives in .claude/timewright/ inside your project:
snapshot/ — the file tree snapshotsnapshot.json — metadata (timestamp, git HEAD at snapshot time)stale.d/ — internal flag directoryThis directory is automatically excluded from snapshots and git.
Apache-2.0
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub joys-dawn/toolwright --plugin timewrightPlugins from other owners that cover similar ground