The Information Machine

Codex CLI 0.128.0 adds /goal

Simon Willison · Simon Willison · 2026-04-30

(No summary yet for this item — extraction summaries are still backfilling.)

Open original ↗

Appears in

Extraction

Topics: codex-clicoding-agentsagentic-engineeringgoal-directed-loopstoken-budget

Claims

  • Codex CLI 0.128.0 adds a /goal command that causes the agent to loop autonomously until it self-evaluates the goal as complete.
  • The looping behavior terminates either on goal completion or when a configured token budget is exhausted.
  • The /goal feature is implemented primarily through two markdown prompt files (goals/continuation.md and goals/budget_limit.md) injected at the end of each turn.

Key quotes

you can now set a /goal and Codex will keep on looping until it evaluates that the goal has been completed... or the configured token budget has been exhausted.
It looks like the feature is mainly implemented though the goals/continuation.md and goals/budget_limit.md prompts, which are automatically injected at the end of a turn.