Codex CLI 0.128.0 adds /goal
AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.
Why it matters
Codex CLI users can now hand the agent an unattended long-running objective that it loops on until done or until a token budget runs out, competing with the Ralph loop pattern.
OpenAI has updated its Codex CLI, a command-line tool where an AI writes and edits code for you, to version 0.128.0. The update adds a /goal command: you tell the tool an objective and it keeps working in a loop until it decides the goal is met or until it runs out of a set budget of tokens. This copies a popular do-it-yourself technique called the 'Ralph loop' that developers had been improvising themselves. It matters mainly to developers who use Codex and want the tool to keep grinding on a task without supervision.
OpenAI's Codex CLI 0.128.0 adds a /goal command that lets the coding agent loop autonomously on an objective until complete, capped by a configured token budget. This formalises the 'Ralph loop' pattern popularised by developer Geoffrey Huntley. Teams using coding agents gain hands-off execution of larger tasks, but should watch token spend, since the budget limit is the only circuit breaker. The article omits any usage pricing or benchmark data.
Codex CLI 0.128.0 implements /goal largely via two prompt templates in codex-rs/core/templates/goals, continuation.md and budget_limit.md, which are automatically injected at the end of a turn. The agent evaluates goal completion each turn and re-loops until satisfied or the token budget is exhausted, mirroring the Ralph loop pattern. The feature is thus prompt-driven rather than a new control-flow mechanism. Simon Willison notes no benchmarks or cost figures accompany the release.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
Speculative Decoding Makes Tool Calls Faster. Agents Need a Cache.
Speed improvements in speculative decoding mean agents can execute tool calls faster, reducing latency for real-time applications.
OpenGame: turn your local coding agent into a full-stack game studio
Developers with a local coding agent can now scaffold full playable 3D games, art, music, testing, publishing, instead of only refactoring code, opening a path from hobby coding to shippable mini-games.
Let Claude Code or any agent tap, type, and read your real phone
Agents can now close the mobile testing gap by driving and reading a real phone themselves, with nothing installed on the device.
n8n's open source personal agent runs on your machine and asks before it acts
Developers uneasy about cloud-based AI agents get a local, approval-gated alternative they can download today, though its research-preview status limits real reliance.