Codex CLI 0.128.0 adds /goal
Summary
OpenAI's Codex CLI coding agent has been updated to version 0.128.0, introducing a new "/goal" feature. This functionality allows users to define a specific objective, and the Codex agent will iteratively work towards its completion. The system continues processing until it self-evaluates that the goal is met or its pre-configured token budget is exhausted. This new feature, reminiscent of the "Ralph loop," is primarily driven by injected prompts such as "goals/continuation.md" and "goals/budget_limit.md" at the conclusion of each operational turn. The update was released on April 30th, 2026.
Key takeaway
For developers using coding agents for iterative tasks, the new "/goal" feature in Codex CLI 0.128.0 offers enhanced automation. You should experiment with defining explicit goals to leverage the agent's ability to self-evaluate and continue until completion or budget exhaustion, potentially streamlining development workflows for complex coding challenges.
Key insights
Codex CLI 0.128.0 introduces a "/goal" feature for autonomous, iterative task completion.
Principles
- Goal-driven autonomous agents
- Iterative self-correction loops
Method
The system injects "goals/continuation.md" and "goals/budget_limit.md" prompts at turn end to manage goal evaluation and token budget.
In practice
- Define clear, measurable goals
- Monitor token budget consumption
Topics
- Codex CLI
- OpenAI
- Goal-Oriented AI
- Ralph Loop
- Token Budget
Code references
Best for: Machine Learning Engineer, AI Engineer, Software Engineer, Prompt Engineer
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by Simon Willison's Weblog.