AI Briefing
KO

Codex CLI adds /goal feature

·2026.05.04 18:28

Key point

Codex CLI 0.128.0 adds `/goal`, a goal-based automatic iteration execution feature.

Details

Codex CLI 0.128.0 has added the /goal feature, which lets the agent iterate on its own judgment until a set goal is completed.

  • It's a way of applying the Ralph loop concept to Codex CLI.
  • The agent evaluates every turn whether the set goal has been completed, and autonomously repeats the loop if it hasn't.
  • However, if the token budget runs out, it will automatically stop even if the goal remains unfinished.
  • The implementation mainly consists of two prompt templates.
    • goals/continuation.md: determines whether to keep pursuing the goal
    • goals/budget_limit.md: handles the case when the budget limit is reached
  • The desktop version is still under development.
  • If the feature doesn't appear after updating, you need to add the following setting to config.toml.
[features]
goals = true

This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.