A minimal, opinionated tool for running agent loops.
while true; do cat PROMPT.md | claude --print; doneThis is the "Ralph Wiggum loop" - the simplest possible agent loop. wiggum adds just enough guardrails to make it practical.
- 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)
# Run directly (no install needed)
uvx wiggum init
# Or install globally
uv tool install wiggum
# Upgrade to latest version
uv tool upgrade wiggum# Set up (Claude helps plan your tasks)
wiggum init
# Run the loop
wiggum runinitcreatesLOOP-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])
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.)MIT