ralph
Ralph autonomous coding loop with MiniMax subagent delegation. Managed loop (not recursive) with progress tracking, completion detection, and circuit breakers.
Profile →npx skills add majiayu000/claude-skill-registry --skill ralph-opensourcesam-v2-heras-garden-2 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Ralph - Autonomous Coding with MiniMax Subagent Delegation ## Core Loop Algorithm ``` WHILE NOT complete AND iterations < max_iterations: 1. Decompose remaining task into independent chunks 2. For each chunk: a. Spawn MiniMax subagent via Task tool b. Collect result c. Validate (tests pass, lint passes) 3. Detect completion via MiniMax semantic analysis 4. Update progress file 5. Check circuit breakers (max iterations, failures) 6. If HITL mode and iteration % hitl_interval == 0: Request human review 7. iterations++ END WHILE ``` ## Input Parsing Parse `$ARGUMENTS` to extract: - **task_description**: The main task (required) - **--mode**: `hitl` or `autonomous` (default: `hitl`) - **--max**: Maximum iterations (default: 10) - **--hitl-interval**: Review every N iterations (default: 3) ## P0 Implementation (MVP) ### Step 1: Initialize Progress File ```javascript Create temp/ralph-[timestamp].json: { "session_id": "ralph-20260124-HHMMSS", "started_at": ISO timestamp, "task_description": "...", "mode": "hitl|autonomous", "max_iterations": N, "current_iteration": 0, "tasks": [], "circuit_breakers": { "calls_this_hour": 0, "consecutive_failures": 0 } } ``` ### Step 2: Main Execution L
- Core Loop Algorithm
- Input Parsing
- P0 Implementation (MVP)
- Step 1: Initialize Progress File
- Step 2: Main Execution Loop
- Step 3: HITL Checkpoint (if hitl mode)
- MiniMax Integration (P0)
- Circuit Breakers (P0 - Basic)
- Quick Reference
What does the ralph skill do?
Ralph autonomous coding loop with MiniMax subagent delegation. Managed loop (not recursive) with progress tracking, completion detection, and circuit breakers.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill ralph-opensourcesam-v2-heras-garden-2 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.