by breezewish
Ralph loop for codex — continuously reconciles codebase toward your instructed state
# Add to your Claude Code skills
git clone https://github.com/breezewish/CodexPotter
CodexPotter continuously reconciles code base toward your instructed state (Ralph Wiggum pattern):
No comments yet. Be the first to share your thoughts!
𝒀𝑶𝑼𝑹 𝑷𝑹𝑶𝑴𝑷𝑻:
𝘚𝘪𝘮𝘱𝘭𝘪𝘧𝘺 𝘵𝘩𝘦 𝘲𝘶𝘦𝘳𝘺 𝘦𝘯𝘨𝘪𝘯𝘦 𝘣𝘺 𝘧𝘰𝘭𝘭𝘰𝘸𝘪𝘯𝘨 ...
│
│
codex: Work or review according to MAIN.md │
┌──────────────────────────┐ │
│ │ ▼
┌─────────┴─────────┐ ┌──────────▼────────┐ ┌───────────────────┐
│ CodexPotter │ │ codex │◄─────►│ MAIN.md │
└─────────▲─────────┘ └──────────┬────────┘ └───────────────────┘
│ │
│ Work finished │
└──────────────────────────┘
1. Prerequisites: ensure you have codex CLI locally. CodexPotter drives your local codex to perform tasks.
2. Install CodexPotter via npm or bun:
# Install via npm
npm install -g codex-potter
# Install via bun
bun install -g codex-potter
3. Run: Start CodexPotter in your project directory, just like Codex:
# --yolo is recommended to be fully autonomous
codex-potter --yolo
⚠️ Note: Unlike Codex, every follow up prompt turns into a new task, not sharing previous contexts. Assign tasks to CodexPotter, instead of chat with it.
⚠️ Note: CodexPotter is not a replacement for codex, because CodexPotter is a loop executor — it executes tasks instead of chatting with you. See below for details.
✅ tasks with clear goals or scopes:
✅ persist results to review in later rounds:
❌ interactive tasks with human feedback loops:
CodexPotter is not suitable for such tasks, use codex instead:
Just pass the project file to codex, like:
based on .codexpotter/projects/2026/03/18/1/MAIN.md,
please explain more about the root cause of the issue
Simpliy queue two tasks in CodexPotter, one is plan, one is implement, CodexPotter will execute one by one, for example:
Task prompt 1 (CodexPotter):
Analyze the codebase, research and design a solution for introducing subscription system.
Output plan to docs/subscription_design.md.
Your solution should meet the following requirements: ...
Do not implement the plan, just design a good and simple solution.
↑ Your existing facility to write good plans will be utilized, including skills, plan doc principles in AGENTS.md, etc. Writing plan to a file is CRITICAL so that the plan can be iterated multiple rounds and task 2 can pick it up.
Task prompt 2 (CodexPotter):
Implement according to docs/subscription_design.md
Make sure all user journeys are properly covered by e2e tests and pass.
If you even don't know what you are designing for, just discuss with codex to carry out a basic plan first, then use CodexPotter to continously polish and implement it.
# Formatting
cargo fmt
# Lints
cargo clippy
# Tests
cargo nextest run
# Build
cargo build