name: chkpt description: Filesystem checkpoint automation — save, restore, list, delete workspace snapshots and auto-protect work during risky operations. user-invocable: true
This plugin provides 4 MCP tools: checkpoint_save, checkpoint_list, checkpoint_restore, checkpoint_delete. All tools require a workspace_path parameter.
See references/store-layout.md for the current store structure and inspection recipes.
See references/cli-commands.md for CLI fallback reference.
See references/automation-patterns.md for when to suggest save/restore.
Mode 1: Proactive Automation
When you detect a risky operation is about to happen (see references/automation-patterns.md), suggest a checkpoint:
- Inform the user why a checkpoint would be helpful
- Propose saving with a descriptive message
- If user agrees, use the
checkpoint_saveMCP tool with the workspace path and message - If user declines, proceed without saving
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.
Mode 2: Direct Operations
When the user requests a checkpoint operation:
- Save — Use
checkpoint_saveMCP tool withworkspace_pathand optionalmessage. Report snapshot ID and stats from the response. - List — Use
checkpoint_listMCP tool withworkspace_pathand optionallimit. Present the results. - Restore — ALWAYS use
checkpoint_restorewithdry_run: truefirst, show changes, ask for confirmation via AskUserQuestion, then call again withdry_run: falseonly after approval. - Delete — List checkpoints first to show details, ask for confirmation via AskUserQuestion, then use
checkpoint_deleteMCP tool.
CLI Fallback
If MCP tools are not available, fall back to CLI commands:
chkpt save [-m <message>]chkpt list [--limit N]chkpt restore <id> [--dry-run]chkpt delete <id>
See references/cli-commands.md for argument details and output formats.
Mode 3: Store Inspection
When the user wants to examine checkpoint internals:
- Use
checkpoint_listfirst so you know the real snapshot IDs in the current workspace - Inspect candidate stores under
${CHKPT_HOME:-~/.chkpt}/stores/*/catalog.sqlite - Match the workspace store by querying
snapshotsand comparing IDs or timestamps fromcheckpoint_list - Inspect
snapshot_files,blob_index,packs/, andtrees/as needed
See references/store-layout.md for the current layout and SQLite inspection recipes.