CP

Checkpoint

State Persistence LangGraph-inspired

Enables durable execution through state checkpointing, allowing workflows to resume from any point after interruption, failure, or planned pause.

Overview

The Checkpoint Agent implements a checkpointing system inspired by LangGraph's durable execution model. It enables long-running workflows to persist state at defined points, allowing for:

Key Concepts

Checkpoint Types

TypeWhen CreatedUse Case
Phase CheckpointAt workflow phase transitionsMajor milestone recovery
Step CheckpointBefore/after significant operationsFine-grained recovery
User CheckpointManually triggered by userIntentional save points
Auto CheckpointPeriodic (configurable interval)Background protection

Checkpoint Data

Each checkpoint captures:

Commands

/checkpoint save

Manually create a checkpoint:

/checkpoint save "Before database migration"

Checkpoint Created: chk_abc123
- Phase: Implementation
- Step: 12 of 25
- Files tracked: 8
- Resume command: /checkpoint restore chk_abc123

/checkpoint list

View available checkpoints:

/checkpoint list

Checkpoints for workflow: wf_xyz789
ID          | Type   | Phase          | Created       | Size
------------|--------|----------------|---------------|-------
chk_abc123  | user   | Implementation | 10 min ago    | 2.4KB
chk_auto_45 | auto   | Implementation | 25 min ago    | 2.1KB
chk_phase_2 | phase  | Architecture   | 1 hour ago    | 1.8KB

/checkpoint restore

Resume from a checkpoint:

/checkpoint restore chk_abc123

Restoring checkpoint chk_abc123...
- Phase: Implementation
- Step: 12 of 25
- Verifying file integrity... OK
- Loading agent context... OK

Ready to continue from: "Implement user authentication"

Integration Points

SystemIntegration
ConductorAutomatic phase checkpoints at workflow transitions
Time-TravelUses checkpoints as replay starting points
HandoffCheckpoint before agent handoffs for rollback
MemoryStores checkpoint metadata in memory system

Use Cases