Skip to main content
Glama

ralph_loop

Start an iterative AI development loop that continuously improves work through self-referential feedback, with progress tracking, git integration, and template support.

Instructions

Start a Ralph Wiggum iterative development loop.

Ralph is a development methodology based on continuous AI agent loops. The technique creates a self-referential feedback loop where the same prompt is fed back repeatedly, allowing the AI to iteratively improve its work until completion.

NEW FEATURES:

  • Iteration history tracking with progress metrics

  • Git integration for automatic change tracking

  • External tool integration (tests, linters)

  • Smart stagnation detection and warnings

  • Pre-built templates for common tasks

Use ralph_list_templates to see available templates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptNoThe task prompt to iterate on (can be omitted if using template_id)
template_idNoID of a pre-built template to use (overrides prompt)
max_iterationsNoMaximum iterations before auto-stop (0 = unlimited)
completion_promiseNoPromise phrase that signals completion (e.g., 'DONE', 'COMPLETE'). When detected in output as <promise>PROMISE</promise>, the loop ends.
git_enabledNoEnable git integration (default: true)
auto_commitNoAutomatically commit changes after each iteration (default: false)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cbuntingde/ralph-wiggum-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server