/goal (Codex)

Codex CLI's /goal directive turns the agent into a long-running autonomous loop. You set a verifiable objective, Codex plans its own steps, executes, checks its own output and keeps going across interruptions, session restarts and budget limits until it reaches the target. It is the Ralph loop the community used to hand-roll, now shipped as a native feature. Generally available since May 2026.

Strengths

Limitations

Best for

View on Coeurdar