ワンクリックで
chkpt
// Filesystem checkpoint automation — save, restore, list, delete workspace snapshots and auto-protect work during risky operations.
// Filesystem checkpoint automation — save, restore, list, delete workspace snapshots and auto-protect work during risky operations.
| name | chkpt |
| description | Filesystem checkpoint automation — save, restore, list, delete workspace snapshots and auto-protect work during risky operations. |
| user-invocable | true |
| allowed-tools | ["Bash","Read","Glob","Grep","AskUserQuestion"] |
See references/store-layout.md for the current store structure and inspection recipes.
See references/cli-commands.md for command details and error handling.
See references/automation-patterns.md for when to suggest save/restore.
When you detect a risky operation is about to happen (see references/automation-patterns.md), suggest a checkpoint:
chkpt save -m "before: <description>"After milestones (feature complete, tests passing), suggest saving the known-good state.
If an operation fails and a recent checkpoint exists, suggest restore as a recovery option.
When the user requests a checkpoint operation, execute it:
chkpt save [-m <message>], report snapshot ID and statschkpt list [--limit N], present the tablechkpt restore <id> --dry-run first, show changes, ask for confirmation via AskUserQuestion, then run actual restore only after approvalchkpt delete <id>See references/cli-commands.md for argument details and output formats.
When the user wants to examine checkpoint internals:
chkpt list --full first so you know the real snapshot IDs in the current workspace${CHKPT_HOME:-~/.chkpt}/stores/*/catalog.sqlitesnapshots and comparing IDs or timestamps from chkpt list --fullsnapshot_files, blob_index, packs/, and trees/ as neededSee references/store-layout.md for the current layout and SQLite inspection recipes.