checkpoint command manages file-level checkpoints using shadow git.
All
checkpoint subcommands respect checkpoints.storage_dir from your project config (agents.yaml). This means praisonai checkpoint list, restore, and diff operate on the same store as praisonai code --checkpoints sessions and praisonai run auto-checkpoints.Quick Start
Usage
Save Checkpoint
| Flag | Short | Description | Default |
|---|---|---|---|
--allow-empty | Allow a checkpoint even when no files have changed | false | |
--workspace | -w | Workspace directory to snapshot | current directory |
List Checkpoints
| Flag | Short | Description | Default |
|---|---|---|---|
--limit | -n | Maximum number of checkpoints to show | 20 |
--workspace | -w | Workspace directory | current directory |
Show Diff
| Flag | Short | Description | Default |
|---|---|---|---|
--workspace | -w | Workspace directory | current directory |
from and to arguments accept a full id, short id, unique prefix, or the alias last / latest.
Restore Checkpoint
| Flag | Short | Description | Default |
|---|---|---|---|
--workspace | -w | Workspace directory | current directory |
Delete Checkpoints
| Flag | Short | Description | Default |
|---|---|---|---|
--yes | -y | Skip the interactive confirmation prompt | false |
--workspace | -w | Workspace directory | current directory |
--yes prompts: Delete all checkpoints? [y/N].
Reference Aliases
Every subcommand that accepts a checkpoint reference (restore, diff, run --restore) supports these forms:
| Reference | Resolves to |
|---|---|
last or latest | The newest checkpoint (list is newest-first) |
Full id (e.g. abc12345def67890…) | Exact match |
Short id (e.g. abc12345) | Exact short-id match |
Unique prefix (e.g. abc1) | Matches if exactly one checkpoint starts with that prefix |
Python API
See Also
- Shadow Git Checkpointing Feature
- Run command — Checkpoint & Rewind —
--restoreand--no-checkpointflags

