Skip to main content

Automated task implementation with Claude Code and Codex

Project description

ralph-code

Automated task implementation with Claude Code and Codex for "Ralph Coding". What is Ralph Coding? It's a method of coding where context rot is avoided by controlling the retention of information. This method involves re-invoking claude or codex for each task, and passing information about the requirements, acceptance testing, and any progress that's made (or roadblocks/challenges faced) through files, rather than retaining all prompts + thinking + response tokens. It tends to result in more requests, some duplicated token work, but fairly consistent performance, and best of all it can largely be done unattended. Recommend Claude Max account or codex equivalent, but be aware that GPT-5 - GPT5.2's slow reasoning and response makes this ponderous, it's fine overnight.

Because LLMs are carrying out the work, we can specify a job of "Find all the python files in the project that directly or indirectly access sqlalchemy objects, and upgrade the code to work with sqlalchemy 2.* This will result in probably a single-task project, but that one task might add 50 other tasks (on per file) to the backlog, which are then processed sequentially."

Installation

pipx install ralph-code

Or with pip:

pip install ralph-code

Usage

ralph [OPTIONS] [DIRECTORY]

Options

  • --debug: Enable debug logging, logs are saved into the .ralph subdirectory of the project
  • DIRECTORY: Target project directory (defaults to current directory)

Usage

First create a task, give a short name for the task (used for the branch commits will be added to), and then give a description. Then you run the ralph-coder, it will produce a .md file of the specifications, which will be broken into small tasks put into a tasks.json file. Each task will be worked on independently.

Requirements

  • Python 3.10+
  • Claude Code or Codex CLI installed and configured

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

ralph_code-0.6.1.tar.gz (83.7 kB view details)

Uploaded Source

Built Distribution

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

ralph_code-0.6.1-py3-none-any.whl (63.1 kB view details)

Uploaded Python 3

File details

Details for the file ralph_code-0.6.1.tar.gz.

File metadata

  • Download URL: ralph_code-0.6.1.tar.gz
  • Upload date:
  • Size: 83.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for ralph_code-0.6.1.tar.gz
Algorithm Hash digest
SHA256 cb4c3f15c8b847c8f831bb9e5fa2e1cf87fae09168671586d7fef7e3eb7c31df
MD5 101d549236a0f5ab4c1f1ec5568fec43
BLAKE2b-256 119d029dda20498e4b4256619e72085817e268bce4f6d3326853b74a85efc81b

See more details on using hashes here.

File details

Details for the file ralph_code-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: ralph_code-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 63.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for ralph_code-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f51d7631e85978ac6927515d549a29bff4cf63bc2ffeb71a532213ceb9c41c99
MD5 d766d3ba8939ab6b73edf5cb0bc03e06
BLAKE2b-256 591527e551d84aa0dbdd3d8de941ae93477139a96e352b236c0ad5cbafd33274

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