Codex CLI 0.128.0 adds /goal

Simon Willison's Blog / 5/1/2026

📰 News

Key Points

  • Codex CLI 0.128.0 introduces a new /goal feature that lets users set an explicit objective for the coding agent to pursue.
Sponsored by: Sonar — Now with SAST + SCA for secure, dependency-aware Agentic Engineering. SonarQube Advanced Security

30th April 2026 - Link Blog

Codex CLI 0.128.0 adds /goal (via) The latest version of OpenAI's Codex CLI coding agent adds their own version of the Ralph loop: 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.

Posted 30th April 2026 at 11:23 pm

This is a link post by Simon Willison, posted on 30th April 2026.

ai 1995 openai 416 prompt-engineering 189 generative-ai 1768 llms 1734 coding-agents 197 system-prompts 54 codex-cli 34 agentic-engineering 46

Monthly briefing

Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments.

Pay me to send you less!

Sponsor & subscribe