Skip to main content
Agent mode is wiggum’s fully autonomous workflow. Instead of running commands one at a time, the agent reads your GitHub backlog and processes issues end-to-end: selecting, specifying, implementing, testing, reviewing, and merging — then moving to the next issue.

Quick start

This starts the agent, which:
  1. Fetches your GitHub issues
  2. Picks the highest-priority unblocked issue
  3. Generates an implementation spec from the issue context
  4. Runs the full Ralph loop (plan → implement → test → verify → PR)
  5. Reviews the diff against the spec
  6. Auto-merges the PR when all checks pass
  7. Moves to the next issue

Priority and selection

The agent ranks issues by:
  1. Priority labelsP0 > P1 > P2 (issues without priority labels are ranked lower)
  2. Dependency order — Issues that block others are processed first
  3. 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.