OpenAI publishes documentation on using Goals in Codex on its developer cookbook site
OpenAI published documentation on its developer cookbook site covering the use of Goals in Codex. The material details when Goals are most effective and how they alter Codex behavior to focus on one objective. It also describes methods for writing Goals that specify outcomes, constraints, and verification criteria, plus the feature's architecture-level design.
how to use /goal in codex — keep Codex working on a persistent objective until it's solved:
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 if you’re curious. https://developers.openai.com/cookbook/examples/codex/using_goals_in_codex