Skip to main content

Module checkpoint

Module checkpoint 

Source
Expand description

Progress checkpoint files for agent restart context.

Before restarting a stalled or context-exhausted agent, the daemon writes a checkpoint file to .batty/progress/<role>.md containing the agent’s current task context. This file is included in the restart prompt so the agent can resume with full awareness of what it was doing.

Structs§

Checkpoint
Information captured in a progress checkpoint.
RestartContext

Functions§

checkpoint_path
Returns the checkpoint file path for a given role.
gather_checkpoint
Gather checkpoint information from the worktree and task.
progress_dir
Returns the progress directory path: <project_root>/.batty/progress/.
read_checkpoint
Read a checkpoint file for the given role, if it exists.
read_restart_context
remove_checkpoint
Remove the checkpoint file for the given role. No-op if it doesn’t exist.
remove_restart_context
restart_context_path
write_checkpoint
Write a progress checkpoint file for the given role.
write_restart_context