This project is inspired by and adapted from the original "Ralph" workflow in
ralph-claude-code. Full credit and thanks to the original work:
https://github.com/frankbria/ralph-claude-code
Shell tools to run the "Cralph" autonomous Codex loop (which is Ralph for codex), plus helpers to set up new projects, import PRDs, and monitor progress.
- Codex CLI (
codex) in your PATH jqgittmux(optional, for--monitormode)
./install.shIf ~/.local/bin is not in your PATH, add it to your shell profile:
export PATH="$HOME/.local/bin:$PATH"Create a new Cralph project:
cralph-setup my-project
cd my-projectEdit PROMPT.md and @fix_plan.md, then run the loop:
cralph --monitorIf you prefer without tmux:
cralphYou can combine these flags based on how you want to run the loop:
--monitorStart a tmux session with the live dashboard--show-outputStream Codex output to the terminal in real time--verboseLog detailed progress updates while Codex runs--timeout MINSet Codex execution timeout (1-120 minutes)--calls NUMSet max Codex calls per hour--cmd CMDOverride the Codex command
Example with output streaming:
cralph --show-outputExample with monitoring and output streaming:
cralph --monitor --show-outputTo reset the loop constraint
cralph --reset-circuitConvert an existing spec into a Cralph project:
cralph-import path/to/requirements.md my-projectThis generates:
PROMPT.md@fix_plan.mdspecs/requirements.md
If you are not using --monitor, you can run:
cralph-monitor./install.sh uninstall