Skip to main content

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

  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

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


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.0.tar.gz (11.9 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.0-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for wiggum-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1987c298c65210c0fff4b8f499847b4ef57c5b30efdda4655668f0a84585feba
MD5 4ce4f5038cc1b68cd0645b2ecb8f88b7
BLAKE2b-256 d085cdd47c22a6885a58405dd55c63605c2e766308cdcfd91a1617f26a68af59

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wiggum-0.1.0-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

Hashes for wiggum-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 370a849972f5de6292a0b54849893fe13ddc9d169f80ceac8bceba0e98dc7a05
MD5 c410af3063052e39ea813f6bd0777a54
BLAKE2b-256 25bcdba676bbe4eae591ee19c6386567944c6b3e4a7c9687a50ed4e1c0d8b20c

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