Skip to main content

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, implement after

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

  1. init creates LOOP-PROMPT.md (workflow) and TASKS.md (task list)
  2. run executes Claude with the prompt, checks TASKS.md after each iteration
  3. 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


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.3.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wiggum-0.1.3-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file wiggum-0.1.3.tar.gz.

File metadata

  • Download URL: wiggum-0.1.3.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.12

File hashes

Hashes for wiggum-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f309ea944e13bbe5e9cf018ffe8d6464a6f3d975887d644b623a3a408ea8c43b
MD5 aab584ae3f3d85c9bf9f06a510f0df40
BLAKE2b-256 009800187bebb9956d89209cb741ec7d72195df853fb6e1b635d1e463e5aae1b

See more details on using hashes here.

File details

Details for the file wiggum-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: wiggum-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.12

File hashes

Hashes for wiggum-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ce5388a4235a487073afa9c13d7c326256790dbb4e223b8184f6ec260b029628
MD5 a4aee919b7866d2f66fe358abf086e2b
BLAKE2b-256 57e07f0485de4e118fd8e3c62b7705b6c0e9e2960561703c552062a5700607f6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page