Expand description
On-disk state for the Ralph loop. Persistent Ralph loop state.
The Ralph loop stores a small amount of JSON state on disk so users can:
- inspect iteration history (duration, whether completion was detected)
- add or clear additional context that is appended to future prompts
State is stored under .ito/.state/ralph/<change-id>/.
Structs§
- Ralph
History Entry - One historical record for a Ralph iteration.
- Ralph
State - Saved state for a Ralph loop scoped to a specific change.
Functions§
- append_
context - Append
textto the saved context forchange_id. - clear_
context - Clear the saved context for
change_id. - load_
context - Load the saved context markdown for
change_id. - load_
state - Load saved state for
change_id. - ralph_
context_ path - Return the path to
context.mdforchange_id. - ralph_
state_ dir - Return the on-disk directory for Ralph state for
change_id. - ralph_
state_ json_ path - Return the path to
state.jsonforchange_id. - save_
state - Persist
stateforchange_id.