Ralph-loop 2.0? The real autonomous coder is coming...
In a Nutshell
OpenAI's new "goal" feature in Codex replaces simple programmatic loops like Ralph Loop with an LLM-based judge that keeps agents working on complex tasks until an explicit definition of done is met. The feature excels at long-running coding work such as migrations, large refactors, and ambiguous goals like reducing Docker image size, provided the goal prompt clearly defines success criteria and validation methods. For multi-week or multi-month objectives, a new "mission" concept is being developed that schedules agent runs across hours, days, or weeks with human-in-the-loop oversight.
These notes were generated by AI and may contain inaccuracies.
OpenAI released the goal feature in Codex, allowing agents to continuously work for hours and hours on bigger and complex projects. Phenomenal results have been observed, including one prompt generating a fully functional game, and an agent building and testing an iOS app by itself for 6 hours. Key developers from the Codex team mentioned that this is probably the most consequential thing they have shipped in Codex this year. Very quickly, the Hermes agent also released the persist ghost feature, which is a similar type of feature allowing users to set a standing goal for the Hermes agent to work across turns until it is achieved.
The goal feature addresses the problem where models can get lazy and declare victory too early on complex projects. Even though models have gotten significantly better at consistently finishing well-scoped tickets, when given more complex projects, agents may work for 10 or 15 minutes and then claim to have fixed all issues, which is often not exhaustive. Users would need to keep prompting the agent with remaining issues.
A popular project earlier this year called Ralph Loop addressed this by running coding agents in a for loop. Every time an agent finished, it would write the output of its work in the file system and programmatically trigger the coding agent again. It was quickly implemented in Cloud Code through a plugin as well. However, Ralph Loop is fundamentally a simple programmatic loop - running the cloud through a specific prompt in a while loop and defining maximum iterations.
Sign in to read the full notes
Get access to AI-generated notes, topic timestamps, and more.