start_ralph_loop
Starts a worker that runs fresh Claude sessions per iteration, reloading state from filesystem to prevent context rot during long-running autonomous coding tasks.
Instructions
Start a worker using the Ralph Loop pattern. Each iteration gets a fresh Claude session with state loaded from filesystem (progress files, git diff). Eliminates context rot for long-running tasks.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectDir": "<projectDir>",
"featureId": "<featureId>"
},
"name": "start_ralph_loop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| featureId | Yes | Feature to work on | |
| projectDir | Yes | Absolute path to the project directory | |
| maxIterations | No | Maximum iterations (default: 50) | |
| maxDurationMinutes | No | Maximum duration in minutes (default: 480) |