Checkpoints in PS Smart Agent
Checkpoints provide a safety net for your coding sessions. They allow you to experiment freely and restore your code if something goes wrong.
How Checkpoints Work
PS Smart Agent automatically creates checkpoints during task execution:
- Before making file changes
- At key decision points
- When you request them
Viewing Checkpoints
- Click the checkpoint icon in the chat
- See a list of all checkpoints
- Each checkpoint shows:
- Timestamp
- Files changed
- Description
Restoring from Checkpoints
Restore Files Only
Reverts files to the checkpoint state:
- Select a checkpoint
- Click “Restore Files”
- Confirm the restore
Restore Files & Task
Reverts files and continues from that point:
- Select a checkpoint
- Click “Restore Files & Task”
- PS Smart Agent continues from the checkpoint
Viewing Diffs
Before restoring, you can see what changed:
- Click on a checkpoint
- Select “View Diff”
- Review all file changes
Manual Checkpoints
Create checkpoints manually:
- Click the checkpoint icon
- Select “Create Checkpoint”
- Add a description
Best Practices
- Create checkpoints before major changes
- Review diffs before restoring
- Use descriptive checkpoint names
- Don’t rely solely on checkpoints - use git too
Checkpoint vs Git
| Feature | Checkpoints | Git |
|---|---|---|
| Automatic | ✓ | ✗ |
| Granular | Per-task | Per-commit |
| Fast restore | ✓ | ✓ |
| Branching | ✗ | ✓ |
| Remote backup | ✗ | ✓ |
Learn more at pyshine.com