@gdb: how to use /goal in codex — keep Codex working on a persistent objective until it's solved:
Summary
A tweet from Greg Brockman highlights a post on using Goals in Codex to keep the AI working on a persistent objective, covering when to use them, verification criteria, and architecture design.
View Cached Full Text
Cached at: 05/19/26, 12:40 AM
how to use /goal in codex — keep Codex working on a persistent objective until it’s solved:
Derrick Choi (@derrickcchoi): My colleagues wrote up a great post on using Goals in Codex.
They go through when to use them, what changes when a Goal is active, and how to write Goals that give Codex a clear outcome, constraints and verification criteria.
Also how we designed Goals at the architecture level
Similar Articles
@reach_vb: /goal in Codex is wild! Give Codex the mission. Tell it what “done” looks like. Let it keep going until it hits the end…
Codex introduces the /goal command, which lets the AI autonomously work toward a defined end state, streamlining long-running tasks like refactors, migrations, and retry loops.
@dkundel: https://x.com/dkundel/status/2062650378089594955
A detailed guide on using Codex's goal mode (/goal) to achieve complex coding tasks over extended periods, with tips on defining clear criteria, providing guidance, and measuring progress.
Codex CLI 0.128.0 adds /goal
OpenAI's Codex CLI v0.128.0 introduces the /goal command, enabling the coding agent to iteratively work towards a defined goal until completion or token exhaustion.
@reach_vb: codex tip: ask codex to do its research first and then use set_goal to set an appropriate goal instead of /goal It resu…
A tip for using Codex: ask it to do research first and then use set_goal to set an appropriate goal, which improves results.
@ryancarson: How to use /goal in Codex to ship huge features
Ryan Carson shares a tip on using the /goal command in Codex to ship large features efficiently.