OpenAI's Codex CLI 0.128.0 introduces a new /goal command that implements a Ralph loop mechanism, allowing the coding agent to continuously work towards achieving a specified objective until completion or token budget exhaustion. The feature is implemented through automated prompt injections in goals/continuation.md and goals/budget_limit.md files. This represents a significant step forward in autonomous coding agent capabilities with persistent goal-oriented behavior.
Background
Codex CLI is OpenAI's command-line interface tool that uses AI to assist with coding tasks, building on the capabilities of their Codex model which powers GitHub Copilot. The Ralph loop refers to a pattern for autonomous agents to persistently work toward goals.
- Source
- Simon Willison
- Published
- May 1, 2026 at 07:23 AM
- Score
- 6.0 / 10