Ralph Wiggum loop for agents
Project description
ralph-loop
A minimal, opinionated tool for running agent loops.
while true; do cat PROMPT.md | claude --print; done
This is the "Ralph Wiggum loop" - the simplest possible agent loop. ralph-loop adds just enough guardrails to make it practical.
Philosophy
- Simple - prefer simplicity whenever possible
- Minimal - does one thing well: run a prompt in a loop until tasks are done
- Opinionated - sensible defaults, few options
- Unobtrusive - infer what you can, don't ask obvious questions
- Task-driven - stops when TASKS.md has no unchecked items
- Test-driven - write tests first, implement after
Quick Start
uv add ralph-loop
# Set up (Claude helps plan your tasks)
ralph-loop init
# Run the loop
ralph-loop run
How It Works
initcreatesLOOP-PROMPT.md(workflow) andTASKS.md(task list)runexecutes Claude with the prompt, checks TASKS.md after each iteration- Loop stops when all tasks are checked off (
- [x])
Options
ralph-loop run # Run (skips permission prompts by default)
ralph-loop run --no-yolo # Ask for permissions
ralph-loop run -n 5 # Max 5 iterations
ralph-loop run --continue # Keep context between iterations
ralph-loop run --keep-running # Continue even when tasks complete (agent can add new tasks)
ralph-loop run --identify-tasks # Analyze codebase and add refactoring tasks to TASKS.md
ralph-loop run --agent codex # Use a different agent (codex, gemini, etc.)
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wiggum-0.1.2.tar.gz
(13.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
wiggum-0.1.2-py3-none-any.whl
(19.1 kB
view details)
File details
Details for the file wiggum-0.1.2.tar.gz.
File metadata
- Download URL: wiggum-0.1.2.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20fabc827c0a068166ece7a34c5c22469c19cb768e20e997bfec2ca4055dea35
|
|
| MD5 |
3b66221072e74dd5412a907b0f09e5ec
|
|
| BLAKE2b-256 |
3bd2b55060c0da3a685d4969c61cdd97b421ba850ac78d472a2f64813a828901
|
File details
Details for the file wiggum-0.1.2-py3-none-any.whl.
File metadata
- Download URL: wiggum-0.1.2-py3-none-any.whl
- Upload date:
- Size: 19.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79c9a67c6b3d72977012e350693aa67715f5d4fe093bf704b17b7bdce4b9d1af
|
|
| MD5 |
10d39a8814e60b692fe044f11551dac0
|
|
| BLAKE2b-256 |
3c41d2e69e62307b624ad0b2fc762b542d1503bdec85635d43404b354f1f4652
|