How it works
Read backlog
Fetches open GitHub issues and ranks them by priority labels (
P0 > P1 > P2) and dependency order.Assess feature state
For each issue, determines the right action: start fresh, generate a plan, resume an existing implementation, skip if already shipped, or comment on an existing PR.
Generate spec
Creates an implementation-ready spec from the issue context (title, body, labels) — same quality as
wiggum new.Run Ralph loop
Executes the full 5-phase Ralph loop: planning → implementation → E2E testing → verification → PR review.
Flags
Comma-separated GitHub labels to filter issues. Only issues with at least one matching label are processed.
Comma-separated issue numbers to process. Restricts agent to specific issues instead of the full backlog.
Stop after completing this many issues.
Stop after this many orchestrator steps (tool calls). Safety limit to prevent runaway execution.
Controls what happens after loop completion:
manual— Creates PR, stops for human reviewauto— Auto-reviews the diff, creates PRmerge— Auto-reviews, creates PR, and auto-merges when checks pass
Override the AI model for the orchestrator.
Simulate the full workflow without executing loops or creating PRs. Useful for testing issue selection and spec generation.
Force headless streaming output. Skips the TUI even in interactive terminals.
Run GitHub connectivity checks to debug authentication or permission issues.
Routing behavior
| Condition | Output |
|---|---|
| Interactive TTY (not CI) | TUI with live orchestrator display |
--stream flag | Headless streaming output |
| Non-TTY or CI | Headless streaming output |
Examples
Feature state assessment
Before processing each issue, the agent assesses the current state and decides the right action:| State | Action |
|---|---|
| No branch, no spec | Start fresh — generate spec, run full loop |
| Spec exists, no branch | Generate implementation plan, run loop |
| Branch exists, partial work | Resume implementation from last checkpoint |
| PR already open | Comment on existing PR, skip to next issue |
| PR already merged | Check remaining tasks, close issue if done |

