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 TODO.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
Development
# Install dependencies
make sync
# Run tests
make test
# Clean stale build artifacts (dist/, dist.*, build/, *.egg-info)
make clean-build
# Build package
make build
# Publish to PyPI (expects PYPI_TOKEN in env, e.g. from ~/.zshrc.local)
make publish
How It Works
initcreatesLOOP-PROMPT.md(workflow) andTODO.md(task list)runexecutes Claude with the prompt, checks TODO.md after each iteration- Loop stops when all tasks are checked off (
- [x])
Commands
init
Initialize a new loop with LOOP-PROMPT.md, TODO.md, and .wiggum.toml.
wiggum init # Interactive setup with Claude
wiggum init --force # Overwrite existing files
run
Execute the agent loop until all tasks are complete.
wiggum run # Run with defaults
wiggum run -n 5 # Max 5 iterations
wiggum run --continue # Keep context between iterations
wiggum run --keep-running # Continue when tasks complete (agent can add new)
wiggum run --timeout 900 # Kill hung agent calls after 15 minutes
wiggum run --identify-tasks # Analyze codebase, populate TODO.md, then exit
wiggum run --no-yolo # Ask for permissions
wiggum run -v # Show git status after each iteration
add
Add tasks directly from the command line.
wiggum add "Fix the login bug"
wiggum add "Refactor auth module" -f my-tasks.md
list
Show all tasks grouped by status.
wiggum list
suggest
Use Claude to discover and suggest tasks interactively.
wiggum suggest # Interactive prompts
wiggum suggest -y # Accept all suggestions
spec
Create detailed spec files for complex features.
wiggum spec user-auth # Creates specs/user-auth.md
Tasks can reference specs: - [ ] Implement auth (see specs/user-auth.md)
upgrade
Upgrade wiggum-managed files to the latest template versions.
wiggum upgrade # Upgrade all files
wiggum upgrade prompt # Only LOOP-PROMPT.md
wiggum upgrade config # Only .wiggum.toml
wiggum upgrade --dry-run # Preview changes
clean
Remove wiggum-managed files.
wiggum clean # Interactive removal
wiggum clean --keep-tasks # Remove config, keep TODO.md
wiggum clean --all # Remove everything
Configuration
Settings are stored in .wiggum.toml:
[security]
yolo = true # Skip permission prompts (default: true)
allow_paths = "" # Comma-separated paths to allow writing
[loop]
max_iterations = 10 # Default iteration limit
timeout = 1800 # Per-iteration agent timeout in seconds
[git]
enabled = false # Enable git workflow
branch_prefix = "wiggum" # Prefix for auto-generated branches
CLI flags override config file settings.
Git Workflow
Create branches and PRs automatically:
wiggum run --pr # Create branch, run loop, open PR when done
wiggum run --pr --no-branch # Use current branch, still create PR
The --pr flag:
- Fetches and merges from main
- Creates a new branch (e.g.,
wiggum/fix-auth-bug) - Runs the loop
- Opens a PR when complete
Multi-Agent Support
wiggum supports multiple coding agents:
wiggum run --agent claude # Claude Code (default)
wiggum run --agent codex # OpenAI Codex CLI
wiggum run --agent gemini # Google Gemini CLI
Learning Diary
wiggum automatically captures learnings during each session in .wiggum/session-diary.md. After the loop completes, it consolidates these into your CLAUDE.md for future sessions.
wiggum run --no-diary # Disable diary for this run
wiggum run --no-consolidate # Skip consolidation after run
License
MIT
Metadata
Release files for wiggum 0.11.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wiggum-0.11.1.tar.gz | 36.8 kB | Without provenance | Details for wiggum-0.11.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wiggum-0.11.1-py3-none-any.whl | Python 3 | none | any | Details for wiggum-0.11.1-py3-none-any.whl |
Total release size: 82.1 kB
Release files / wiggum-0.11.1.tar.gz
| Download URL | wiggum-0.11.1.tar.gz |
|---|---|
| Size | 36.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de6397a6f31a2b78dd8a735e5ab2bf4d414a69cab1040d83d9b9bad8a5023f05
|
|
BLAKE2b-256 checksum How to use checksums |
f9d56fa65bf53928a56b614c4c1b588d0da7c72fa2a8bc3b50e89c93eb094019
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / wiggum-0.11.1-py3-none-any.whl
| Download URL | wiggum-0.11.1-py3-none-any.whl |
|---|---|
| Size | 45.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4fd57c294e0556de3246b84ef0c33af09940e0ea292af27bc31b0b47528bffef
|
|
BLAKE2b-256 checksum How to use checksums |
94fac1f2bc3dbfbb2f7cd157413305e43be03a5adfa1815fd9644cb08cef913e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for wiggum 0.11.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.