Quick start
- Fetches your GitHub issues
- Picks the highest-priority unblocked issue
- Generates an implementation spec from the issue context
- Runs the full Ralph loop (plan → implement → test → verify → PR)
- Reviews the diff against the spec
- Auto-merges the PR when all checks pass
- Moves to the next issue
Priority and selection
The agent ranks issues by:- Priority labels —
P0>P1>P2(issues without priority labels are ranked lower) - Dependency order — Issues that block others are processed first
- Feature state — Issues with partial work (existing branches) are prioritized for completion
Filtering
Narrow the scope with--labels or --issues:
Feature state assessment
Before processing each issue, the agent determines the current state:
This prevents duplicate work and handles interruptions gracefully.
Review modes
The--review-mode flag controls what happens after each loop completes:
TUI display
In an interactive terminal, agent mode shows a live orchestrator view:- Backlog ranking — Which issues were considered and why
- Issue selection — The chosen issue with reasoning
- Loop progress — Real-time phase tracking for the current Ralph loop
- Completion outcomes — Results for each processed issue
Running in CI
For headless execution in CI pipelines:Safety controls
Memory and learning
The agent stores memory across iterations — what worked, what failed, and patterns it discovered. This memory persists in.ralph/LEARNINGS.md and informs future runs. Over time, the agent gets better at generating specs and implementing features for your specific codebase.
See the full agent command reference for all flags.
