Skip to main content

An opinionated orchestrator for Ralph Wiggum loops

Project description

Ralph Wiggum Orchestrator

This is a simple orchestrator for Ralph Wiggum loop invented by Geoffrey Huntley.

Requirements

Python 3.10+

How to run?

  1. Install the package
    pip install oh-my-ralph
    
  2. Place a requirements.md file with your detailed requirements in your working directory (where you want the software to be built)
  3. To run ralph using opencode, run the following command:
    oh-my-ralph --agent "opencode run" --model opencode/glm-4.7-free --start-opencode-web-at-port 8089 --working-dir /path/to/dir/with/requirements
    

What does this do?

  • Runs your specified agent command in a loop.
  • The loop exits when any of the following occur:
    • The command prints <PROMPT>DONE</PROMPT>.
    • The maximum number of iterations is reached, configurable via --max-iterations.
    • Error occurs for 5 consecutive runs of the loop.
    • You manually stop the process by pressing Ctrl+C.

Development

Running Tests

Tests are automatically run during the build process. To run tests manually:

.\run_tests.bat

All tests must pass before building.

Building the Package

To build the package with mandatory tests:

.\build.bat

This will:

  1. Run all tests (build fails if any test fails)
  2. Build the package using Python's build module
  3. Create distribution files in the dist\ directory

The build process ensures code quality by enforcing test success before creating distribution packages.

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

oh_my_ralph-0.3.0.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

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

oh_my_ralph-0.3.0-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file oh_my_ralph-0.3.0.tar.gz.

File metadata

  • Download URL: oh_my_ralph-0.3.0.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for oh_my_ralph-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5b23d8a64054ba49c8ea6dfb0bf960e49a2180c6c13526801af9f5f0e35c2ccc
MD5 7232f902b17854030d7fcbc5b34a0ba3
BLAKE2b-256 b75e93a1d8ff253a1f0207757607877434862838f20501ff95140060c27210e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for oh_my_ralph-0.3.0.tar.gz:

Publisher: publish-to-pypi.yml on vivganes/oh-my-ralph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file oh_my_ralph-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: oh_my_ralph-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for oh_my_ralph-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a84616113018513278bf480bb5e2b14ce85595113b9f2c11699b59a7dbf29b36
MD5 d57e36a3ebb173beccefe8232f950bdb
BLAKE2b-256 40931b3fb71eec145449408fa4e3a6d9b9a193ecfd80aa9dada510a22924efed

See more details on using hashes here.

Provenance

The following attestation bundles were made for oh_my_ralph-0.3.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on vivganes/oh-my-ralph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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