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.
- Restart
Context
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