Skip to main content

Module ralph

Module ralph 

Source
Expand description

Ralph - Autonomous PRD-driven agent loop

Implementation of Geoffrey Huntley’s ralph pattern: while :; do cat PROMPT.md | llm; done

Ralph iterates through PRD user stories, running quality gates after each, and uses RLM to compress progress when context gets too large.

Re-exports§

pub use state_store::RalphRunState;
pub use state_store::RalphRunSummary;
pub use state_store::RalphStateStore;
pub use state_store::StoryResultEntry;

Modules§

state_store
Ralph State Store - trait and types for persistent run state
store_http
HTTP implementation of RalphStateStore
store_memory
In-memory implementation of RalphStateStore

Structs§

Prd
The full PRD structure
ProgressEntry
A progress log entry
QualityChecks
Quality checks configuration
RalphConfig
Ralph configuration
RalphLoop
The main Ralph executor
RalphState
Ralph execution state
UserStory
A user story in the PRD

Enums§

RalphStatus
Ralph execution status
VerificationStep
A concrete verification step that must pass for a story to be marked complete.

Functions§

create_prd_template
Create a sample PRD template