OpenAI Codex CLI adds new /goal command in v0.128.0

OpenAI’s Codex CLI 0.128.0 appears to introduce a new /goal command aimed at keeping a task “alive across turns” until it’s done. Early testers say it requires a config toggle and isn’t supported in the app yet, with some reporting setup errors.

codex cover

TL;DR

  • Codex CLI 0.128.0 /goal command: Keeps a goal active across turns until completion
  • Framed as OpenAI’s take on the “Ralph loop”, per Felipe Coury on X
  • Credited to OpenAI mentor Eric Traut (Pyright creator) as the builder
  • Not supported in the app or desktop app; remote-connection use unlikely supported
  • Context handling: Does not clear context; “only compacts on demand IIRC”
  • Enablement + troubleshooting: Set [features] goals = true; errors ask users run /feedback and file issue with session id

OpenAI’s Codex CLI 0.128.0 appears to have picked up a new /goal command, according to a post from Felipe Coury on X. Coury described the feature as OpenAI’s take on the “Ralph loop,” explaining that it is meant to “keep a goal alive across turns” and “not stop until it’s achieved.”

Coury also credited OpenAI mentor Eric Traut, the creator of Pyright, as the builder behind the feature. In follow-up replies, Coury indicated that the app and desktop app do not support the feature yet. A user asked whether /goal could be used through remote connections, but Coury replied that he did not think the app supported that.

The rollout prompted a few practical questions from early users. When asked whether the feature clears context between turns, Coury responded that it “does not,” adding that it “only compacts on demand IIRC.” Another user reported repeated errors — “Failed to set thread goal: thread/goal/set failed in TUI” — and Coury asked affected users to run /feedback and open a new issue with the session id so the team could investigate.

Coury also pointed users to a configuration setting for enabling the feature, writing:
[features]
goals = true
in your config.toml

Source: X

Continue the conversation on Slack

Did this article spark your interest? Join our community of experts and enthusiasts to dive deeper, ask questions, and share your ideas.

Join our community