Ralph Wiggum loop for agents
Project description
wiggum
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. wiggum 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 for new behavior; skip tests for trivial changes (renames, constants, config)
Installation
# Run directly (no install needed)
uvx wiggum init
# Or install globally
uv tool install wiggum
# Upgrade to latest version
uv tool upgrade wiggum
Quick Start
# Set up (Claude helps plan your tasks)
wiggum init
# Run the loop
wiggum 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
wiggum run # Run (skips permission prompts by default)
wiggum run --no-yolo # Ask for permissions
wiggum run -n 5 # Max 5 iterations
wiggum run --continue # Keep context between iterations
wiggum run --keep-running # Continue even when tasks complete (agent can add new tasks)
wiggum run --identify-tasks # Analyze codebase and add refactoring tasks to TASKS.md
wiggum 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.2.0.tar.gz
(13.6 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.2.0-py3-none-any.whl
(19.5 kB
view details)
File details
Details for the file wiggum-0.2.0.tar.gz.
File metadata
- Download URL: wiggum-0.2.0.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0ef02c3494e05c85d3c40af4ea8337b51ec2dc49921deb9852b25502b5c92e2
|
|
| MD5 |
a6b665a6ff3da638c4190804735cb7b6
|
|
| BLAKE2b-256 |
81ca12d5069ec2a7ece948edac46c1f42500aa33c123aad58653d08cc01d6969
|
File details
Details for the file wiggum-0.2.0-py3-none-any.whl.
File metadata
- Download URL: wiggum-0.2.0-py3-none-any.whl
- Upload date:
- Size: 19.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f304ad7aa8e1e28f928084ec305291b212bc323cbfa2b2c1b4e22a99045d68e4
|
|
| MD5 |
7aba1e38c434738b9801030262d51781
|
|
| BLAKE2b-256 |
2c505870123c0d0fdafd336a88be0c0e6ff7511c82cbba2a853d3dc2c6eed866
|