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 Justmalharv0.1.0MITIn 2 marketplaces
Snapshots the working tree into hidden git refs at the start of every turn, with /checkpoints to list them and /undo-turn to roll back.
Code that runs inside Claude Code on every session, as you, unsandboxed.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Checkpoints to keepkeep
Newest N refs under refs/claude-checkpoints are kept; older ones are deleted.
numberdefault 20
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it runs programs.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
2 marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Takes a hidden git snapshot of your working tree at the start of every turn, and gives you /checkpoints to list them and /undo-turn to roll the tree back to the latest one.
turn.start, command.run and $.process.run driving plain git, $.command.register, and $.ui.ask as a confirmation gate before a destructive action.
Headless claude -p with the mod loaded in a throwaway repo (a.txt committed, wip.txt untracked), asked to create notes.txt. Before the turn's edit, one ref appeared:
4ca5ef7 commit refs/claude-checkpoints/1791077022-2280d44f-9391-44e3-912f-89e3fcb59e5a
tree: a.txt wip.txt (notes.txt did not exist yet)
status afterwards: ?? notes.txt, ?? wip.txt (index and stash untouched)
/undo-turn and /checkpoints were exercised against real git through the mod's own scripts (see Notes), not in an interactive session.
turn.start: builds a commit of the whole working tree (tracked + untracked, honouring .gitignore) through a temporary GIT_INDEX_FILE (read-tree HEAD, add -A, write-tree, commit-tree -p HEAD) and points refs/claude-checkpoints/<epoch>-<turnId> at it. Your index, HEAD, branches, stash and files are never touched; only that ref and the object database are written. Then it deletes every checkpoint ref beyond the newest keep (default 20)./checkpoints: name, age, and git diff --shortstat between each checkpoint and the working tree now (untracked files included)./undo-turn [name]: shows the diffstat and the files it would delete, asks via $.ui.ask (Restore / Cancel; dismissed counts as Cancel), writes refs/claude-checkpoints/pre-undo-<epoch> first so the undo is itself undoable (/undo-turn pre-undo-<epoch>), restores contents with git restore --source=<commit> --worktree -- . (index and HEAD untouched), then removes only files that are untracked now, absent from the checkpoint tree, and newer than the checkpoint commit. No git clean, no reset --hard. Registered without immediate, so it waits for the turn to end.What claude plugin validate reports:
hooks: turn.start, session.start, command.run{command=checkpoints}, command.run{command=undo-turn}
calls: $.clock.now (via epoch), $.command.register, $.process.run (via sh), $.ui.ask
Requires Claude Code 2.1.289 or later, git 2.23+ (git restore) and bash on PATH. Setting keep is under the plugin's /config rows.
claude --plugin-dir ./mods/auto-checkpoint
$: snapshot with index byte-identical afterwards, pre-existing untracked file captured, ignored files excluded, pruning to the cap, undo removing only new files, redo via pre-undo-*, no-repo and empty-repo (root commit). The unit tests use a scripted fake git; the live -p run covers turn.start only.git gc prunes pruned refs' objects.pre-undo-<epoch> name (the first is overwritten). Sub-second turns tie-break by ref name when pruning.bash script run by the mod, with the repo found from the session directory (nested repos and submodules are not snapshotted separately).AbovePrompt band.None.
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 justmalhar/awesome-claude-mods --plugin auto-checkpoint