Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
joaquimscosta avatar

Ralph Loop

  • 2 installs
  • 21 repo stars
  • Updated August 5, 2026
  • joaquimscosta/arkhe-claude-plugins

Runs an autonomous build-verify-commit loop that picks one task per iteration in a fresh context window and commits the result.

About

Executes an autonomous development loop where each iteration picks one task, implements it, verifies it, and commits, using a fresh context window and a builder/verifier split. A developer uses it to automate iterative task completion against a tracked task list.

  • Fresh context window per iteration
  • Hat-lite builder (~65%) / verifier (~35%) split

Ralph Loop by the numbers

  • 2 all-time installs (skills.sh)
  • Ranked #1,839 of 2,715 Automation & Workflows skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/joaquimscosta/arkhe-claude-plugins --skill ralph-loop

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs2
repo stars21
Last updatedAugust 5, 2026
Repositoryjoaquimscosta/arkhe-claude-plugins

What it does

Runs an autonomous build-verify-commit loop that picks one task per iteration in a fresh context window and commits the result.

Files

SKILL.mdMarkdownGitHub ↗

Ralph Loop Execution Protocol

Autonomous development with fresh context per iteration and Hat-lite builder/verifier workflow.

Quick Start

# From project directory (after /create-prd)
./ralph.sh 20          # Run up to 20 iterations
./ralph.sh 5           # Quick test with 5 iterations

How It Works

Each iteration runs in a fresh context window:

┌─────────────────────────────────────────────────────┐
│ ITERATION (Fresh Context)                           │
├─────────────────────────────────────────────────────┤
│ 1. ORIENT: Read activity.log + tasks.json + memories│
│ 2. BUILD:  Pick ONE task, implement, verify        │
│ 3. VERIFY: Review, update status, commit           │
│ 4. LEARN:  (Optional) Save insights to memories    │
│ 5. DECIDE: All done? → RALPH_COMPLETE              │
└─────────────────────────────────────────────────────┘

Hat-Lite System

RoleWhenResponsibility
Builder~65% of iterationImplement ONE task
Verifier~35% of iterationReview, update, commit

Key Files

FilePurpose
.ralph/current-taskset/tasks.jsonTask state (source of truth)
.ralph/current-taskset/activity.logIteration history
.ralph/current-taskset/memories.mdPersistent learnings
.ralph/current-tasksetSymlink to active task set
PROMPT.mdInstructions per iteration
ralph.shLoop runner script

Task JSON Format

Tasks are stored in .ralph/current-taskset/tasks.json:

{
  "tasks": [
    {
      "id": "setup-001",
      "description": "Initialize project",
      "verificationTier": "build",
      "passes": false,
      "iteration_completed": null
    }
  ]
}

Valid verificationTier values: "build" (default), "visual", "api", "e2e". See WORKFLOW.md for details.

Completion Signal

When all tasks pass, output:

RALPH_COMPLETE: All tasks verified

Commands

Subcommands: /ralph run [N], /ralph status, /ralph init, /ralph taskset <new|list|switch|delete>, /ralph add-task, /ralph remember, /ralph memories.

Workflow Details

See WORKFLOW.md for the 5-phase iteration lifecycle (Orient, Build, Verify, Learn, Decide) and Hat-Lite role definitions.

Examples

See EXAMPLES.md for web app, API, resumption, and mid-loop status checking scenarios.

Troubleshooting

See TROUBLESHOOTING.md for immediate exit, premature completion, infinite loop, and context issues.

Related skills

Automation & Workflowsagentsautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.