Discover and explore top open-source AI tools and projects—updated daily.
snarktankAutonomous AI agent loop for iterative task completion
New!
Top 23.6% on SourcePulse
Ralph is an autonomous AI agent loop designed to execute development tasks defined in a Product Requirements Document (PRD) using the Amp framework. It targets developers seeking to automate iterative software development, benefiting from a structured, repeatable process that aims for PRD completion.
How It Works
Ralph operates as a loop, spawning a fresh Amp instance with clean context for each iteration to ensure a predictable starting point. Memory and progress are maintained across these iterations via Git history, a progress.txt file for learnings, and a prd.json file tracking the status of user stories. This approach allows for the autonomous implementation of individual, small tasks derived from the PRD, with learnings explicitly captured to inform subsequent steps.
Quick Start & Requirements
jq (e.g., brew install jq), and a Git repository.ralph.sh and prompt.md into their project's scripts/ralph/ directory or install the prd and ralph skills globally into ~/.config/amp/skills/.amp.experimental.autoHandoff in ~/.config/amp/settings.json is recommended for handling stories exceeding a single context window.prd skill, convert it to prd.json using the ralph skill, and then execute the main loop with ./scripts/ralph/ralph.sh [max_iterations].flowchart/ directory.Highlighted Details
progress.txt, and prd.json for state tracking.AGENTS.md with discovered patterns and gotchas for future iterations.dev-browser skill for frontend story acceptance.Maintenance & Community
No specific details regarding maintainers, community channels (e.g., Discord, Slack), or roadmaps are provided in the README.
Licensing & Compatibility
The README does not specify a software license, which may impact commercial use or integration decisions.
Limitations & Caveats
The system requires Product Requirements Document items to be small enough to fit within a single LLM context window. Success is highly dependent on robust feedback loops, such as passing type checks and unit tests, to prevent error accumulation. The "fresh context" approach necessitates explicit state management to avoid losing implicit project knowledge. The absence of a stated license is a notable caveat for adoption.
3 days ago
Inactive
grapeot