Execute Ralph iterations in batches autonomously - implement up to 5 user stories automatically. Use for faster execution while maintaining context management. Triggers on: ralph auto, batch execute, autonomous ralph, run batch.
Execute Ralph iterations in batches - implement up to 5 user stories automatically in a single chat, then stop.
This is the batched autonomous mode skill. Use this when you want:
For maximum context cleanliness, use jpralph-iterate instead (one story per chat).
prd.json (in project root)progress.txt (check Codebase Patterns section first)branchName. If not, check it out or create from main.passes: falsefeat: [Story ID] - [Story Title]passes: true for completed storyprogress.txtFor EACH story in the batch, APPEND to progress.txt:
## [Date/Time] - [Story ID]
Chat: [Current chat ID] - Batch iteration [N of batch_size]
- What was implemented
- Files changed
- **Learnings for future iterations:**
- Patterns discovered
- Gotchas encountered
- Useful context
---
Same as jpralph-iterate - add reusable patterns to ## Codebase Patterns section at top of progress.txt.
Same as jpralph-iterate - update AGENTS.md files with genuinely reusable knowledge discovered during implementation.
For any story that changes UI, verify in browser using Antigravity's browser tools.
If you've completed the batch limit BUT there are still stories with passes: false:
<promise>BATCH_COMPLETE</promise>
Batch complete! ✅
Completed in this batch:
- US-001: [title]
- US-002: [title]
- US-003: [title]
- US-004: [title]
- US-005: [title]
Remaining stories: [count]
Next story: US-006 - [title]
To continue:
1. Create a NEW CHAT (for fresh context)
2. Load the jpralph-auto skill
3. Execute next batch of 5 stories
If ALL stories have passes: true:
<promise>COMPLETE</promise>
All user stories complete! 🎉
Total stories completed: [count]
Branch: [branchName]
Next steps:
1. Review all changes
2. Run final quality checks
3. Merge branch to main
If a story fails quality checks after 3 attempts:
Example notes:
{
"id": "US-003",
"passes": false,
"notes": "Failed after 3 attempts. Typecheck error: Property 'foo' does not exist on type 'Bar'. Needs manual review."
}
Provide status updates as you work:
Starting batch execution...
Batch size: 5 stories
[1/5] Implementing US-001: Add priority field to database
✅ US-001 complete
[2/5] Implementing US-002: Display priority indicator
✅ US-002 complete
[3/5] Implementing US-003: Add priority selector
✅ US-003 complete
[4/5] Implementing US-004: Filter tasks by priority
✅ US-004 complete
[5/5] Implementing US-005: Sort by priority
✅ US-005 complete
Batch complete! All 5 stories passed.
This keeps context manageable and allows for fresh chats between batches.