Skip to content

Development & Engineering

Ralph Loop

Free

Run a self-correcting loop: the agent keeps working on a task across turns until it is done.

Difficulty advanced

Purpose

Install the original Ralph Loop extension from gemini-cli-extensions and use it in Gemini CLI.

Procedure

--- name: gemini-ralph description: Run a self-correcting loop: the agent keeps working on a task across turns until it is done. ---

Ralph Loop

Purpose

Install the original Ralph Loop extension from gemini-cli-extensions and use it in Gemini CLI.

Procedure

Source: https://github.com/gemini-cli-extensions/ralph Maintainer: Google (gemini-cli-extensions). Skilling lists this extension; the original lives in that repository.

Install

gemini extensions install https://github.com/gemini-cli-extensions/ralph

Run this in your terminal, then restart Gemini CLI. List installed extensions with gemini extensions list.

What it does

  • /ralph:loop with a completion promise
  • Iterates without you
  • /ralph:cancel to stop

How to use it

Run /ralph:loop "your task" --completion-promise "DONE".

Example requests

1. Use Ralph Loop

Request: Run /ralph:loop "your task" --completion-promise "DONE". Expected: /ralph:loop with a completion promise.

Dependencies

Gemini CLI. Extra requirements are listed under Install.

Compatibility

This document follows the Agent Skills layout (a folder named gemini-ralph containing SKILL.md). Claude Code, Cursor, Codex, and Gemini CLI can load that file from the paths in the Skilling installation guide. GitHub Copilot does not load SKILL.md. Use the Copilot instructions copy, and narrow applyTo before you commit it. Last verified 2026-11-15.

Example prompts

Use Ralph Loop

Run /ralph:loop "your task" --completion-promise "DONE".

Expected: /ralph:loop with a completion promise.

Choose the agent

Pick the agent you use.

Related

  • Security

    Google's Security extension: scans code changes for vulnerabilities and checks dependencies.

  • Code Review

    Google's Code Review extension: reviews your code changes for quality issues.

  • Google Workspace

    Use Docs, Sheets, Slides, Gmail, Chat and Calendar from Gemini CLI.

Reviews

No reviews yet.

    Sign in to review.

    Report a problem

    Inaccurate steps, an unsafe instruction, or a licensing concern.

    Sign in to report.