Ralph Loop
Autonomous coding loop plugin for Claude Code, GitHub Copilot CLI, VS Code Copilot, Codex CLI, opencode, pi, OMP and Antigravity.

A cross-harness implementation of Geoffrey Huntley's Ralph Wiggum as a "software engineer" pattern, packaged as a standard plugin with skills and specialized agents.
Ralph Loop = Fresh context + Filesystem memory (PRD.md & PROGRESS.md) + Git versioning
Instead of letting a single long conversation accumulate stale context, the Ralph Loop plans once into PRD.md and PROGRESS.md, then iterates through atomic tasks using fresh subagent contexts. Every task is implemented, checked against the repository's own verification gate, committed with a Conventional Commit, and verified independently by a gate-running reviewer before the loop advances.
Execution Flow
sequenceDiagram
participant U as User
participant P as ralph-planner (/ralph-plan)
participant C as ralph-coordinator (/ralph-loop)
participant E as ralph-executor
participant R as ralph-reviewer
participant FS as Filesystem & Git
U->>P: Requirements
P->>FS: Write PRD.md + PROGRESS.md
P-->>U: Plan ready (run /ralph-loop or invoke ralph-coordinator)
U->>C: Start /ralph-loop (or ralph-coordinator)
loop Until all tasks complete
C->>FS: Read PRD.md + PROGRESS.md
C->>+E: Dispatch task (parallel if file-disjoint, else serial)
E->>FS: Implement task & run local verification gate
E->>FS: Update PROGRESS.md & git commit ("feat(scope): ... [Task-XXX]")
E-->>-C: Completion summary
loop Review (up to 2 rounds)
C->>+R: Spawn reviewer (diff + acceptance criteria)
R->>FS: Run verification gate & inspect diff
opt FAIL (behavioral defect)
R->>FS: Add x-failing test proof
end
R-->>-C: Verdict (PASS / FAIL + concrete notes)
opt FAIL
C->>+E: Fix review findings (fresh context)
E->>FS: Fix, re-run gate, commit & update PROGRESS.md
E-->>-C: Fix summary
end
end
Note over C: If still failing after 2 rounds: split task or escalate
end
C-->>U: <promise>COMPLETE</promise>
Available Plugin
| Plugin | Description |
|---|
ralph | Autonomous Ralph Loop workflow: planning and execution skills plus four specialized agents (ralph-planner, ralph-coordinator, ralph-executor, ralph-reviewer). |
Skills
| Skill | Purpose |
|---|
ralph-plan | Turn requirements into an actionable PRD.md (with file-scoped atomic tasks and acceptance criteria) and initialize PROGRESS.md. |
ralph-loop | Run the autonomous execution loop from PRD.md and PROGRESS.md, coordinating executors and independent reviews until <promise>COMPLETE</promise>. |
Agents
| Agent | Role |
|---|
ralph-planner | Interactive planner that breaks requirements into atomic, verifiable tasks in PRD.md and initializes PROGRESS.md. |
ralph-coordinator | Orchestrator that reads PRD.md and PROGRESS.md, schedules serial or parallel file-disjoint tasks, drives the 2-round review loop, and signals <promise>COMPLETE</promise>. |
ralph-executor | Fresh-context implementer that completes one task, runs the repository's local verification gate, updates PROGRESS.md, and creates a Conventional Commit (feat(scope): ... [Task-XXX]). |
ralph-reviewer | Independent verifier that runs the verification gate, inspects the diff against PRD.md acceptance criteria, writes an x-failing test proof on FAIL, and returns a PASS/FAIL verdict. |
Compatibility
| Capability | Claude Code | Copilot CLI | VS Code Copilot | Codex CLI | opencode | pi | OMP | Antigravity |
|---|
Skills (ralph-plan, ralph-loop) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
Agents (ralph-*) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Native marketplace install | ✅ | ✅ | ✅ | 🟡 plugins (skills); agents via make install | — (make install) | ✅ (pi install) | ✅ | — (make install) |
VS Code Copilot uses the native plugin system: VS Code Copilot now natively supports marketplace plugins via chat.plugins.marketplaces / @agentPlugins and automatically loads plugins installed by GitHub Copilot CLI. Legacy manual .agent.md file copying and chat.agentFilesLocations configuration are no longer needed.