session.checkpoint
Capture a work snapshot—task, progress, decisions, blockers, changed files, and next action—and refresh the agent context file at a stopping point for reliable handoff.
Instructions
Snapshot the current work — task, progress, decisions, blockers, changed files and next_action — and refresh .agent/context/current.md. Every call writes a new checkpoint with a new ID, so call it once at a stopping point (before ending or handing off), not as a retry. Returns the checkpoint JSON. To log an event or decision in the same step, use session.record with checkpoint=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Optional short label, e.g. "before refactor" | |
| next_action | No | What the next agent should do first; shown as the next action in later context |