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.1.tar.gz
(11.9 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.1-py3-none-any.whl
(16.8 kB
view details)
File details
Details for the file wiggum-0.1.1.tar.gz.
File metadata
- Download URL: wiggum-0.1.1.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
502fbbb6d4590e4514f92401b0c82fab329436b57abebd071103fb8aafa3be3f
|
|
| MD5 |
255c39567700a55ae2b01a12e6cade1e
|
|
| BLAKE2b-256 |
174397a6dba1e62c484c13d3a8d4a5a6b06aa6adef907bdd53bfc133b284370f
|
File details
Details for the file wiggum-0.1.1-py3-none-any.whl.
File metadata
- Download URL: wiggum-0.1.1-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c140d6fa43bb0d52790cd25fd115e002ee2695e67e60252bf547c217ba9a6053
|
|
| MD5 |
540a6d443cca1408baa750bd6f85c85d
|
|
| BLAKE2b-256 |
d2b37b01357a40c8d4154fc14a0c902f924336f8fa950f34c979b21452875fe2
|