Codex CLI 0.128.0 adds /goal

· Source: Simon Willison's Weblog · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering, Robotics & Autonomous Systems · Depth: Intermediate, quick

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

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

Topics

Code references

Best for: Machine Learning Engineer, AI Engineer, Software Engineer, Prompt Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Simon Willison's Weblog.