Command that makes the agent run for a long time until a verifiable or LLM-judged goal is reached. Limits such as a time cap can be set. The creator has had agents running for days with it.
Codex command that keeps an agent working on a long-running goal until a verifiable or model-judged condition is met.
Updated EU status checked Last shown
/goal at a glance
- What is /goal?
- /goal is an app from OpenAI. Codex command that keeps an agent working on a long-running goal until a verifiable or model-judged condition is met.
- Who makes /goal?
- /goal is made by OpenAI.
- Does /goal work in the EU?
- Unverified. No explicit evidence found. The provided pages cover the third-party Loop Library and say nothing about regional availability of /goal in Codex. Last verified 14 Nov 2026.
- How much does /goal cost?
- Pricing unknown. Feature of OpenAI Codex; no separate pricing found in the provided material. The Loop Library prompts are free to copy.
- Where was /goal shown?
- In 4 creator videos by Matthew Berman. Most recently by Matthew Berman on 5 Aug 2026, at 11:31 in “Master Codex with these 15 Tips”.
Sources: the vendor's own pages (linked above) and creator videos at the linked timestamps. EU status is information, not legal advice; see how we check.
/goal (also called goals or loops) is a command in OpenAI's Codex that keeps a coding agent iterating toward an overarching objective instead of stopping after a single response. The agent continues until a verifiable condition or an LLM-judged goal is reached. Limits such as a time cap can be set.
According to creator Matthew Berman, goals can keep an agent running for hours or days, for example a benchmark loop that iterates until a score reaches 90%. The linked Forward Future Loop Library is a third-party collection of 85 copyable loop prompts (docs sweeps, test coverage, accessibility repair, dependency triage, source checks and others), each with a stated stopping condition. It also offers a "Loopy" agent skill for finding, writing and running loops.
The page material does not document /goal's official syntax, pricing or availability. It is accessed from within Codex. Long runs depend on well-defined, checkable stopping conditions, and loops without a clear check or limit may run indefinitely.
- Runs the agent repeatedly until a goal is met
- Supports verifiable or LLM-judged completion conditions
- Optional limits such as a time cap
- Can run for hours or days on benchmark-style tasks
- Community Loop Library of 85 reusable loop prompts
As seen on YouTube
Watch the moment: the exact second top creators show it. Videos load only when you press play, via youtube-nocookie.com.
Loops, called goals in Codex, keep the agent working toward an overarching goal for hours or days. The creator runs a benchmark loop that iterates until the score reaches 90%.
A Codex feature that makes the agent keep working until a stated condition is met. Demoed with the sub-50ms page-load loop, which ran nearly 50 minutes. The creator notes Claude Code has a similar /goal feature.
Coding technique where you design a trigger and a verifiable goal and let agents prompt themselves until the goal is met, rather than prompting manually. Caveats: hard to set up for non-deterministic goals and expensive in tokens.
Similar AI tools
Closest neighbours by meaning, not just by category.
Codex Automations
App · OpenAI
Scheduled, recurring task feature in OpenAI Codex that runs agent jobs automatically, such as nightly docs updates and PRs.
Codex
App · OpenAI
OpenAI's coding agent, available in the ChatGPT app, cloud, IDE extension and CLI under one ChatGPT account.
Codex CLI (refreshed)
App · OpenAI
OpenAI's open-source coding agent that runs in the terminal, with voice control and a new code review experience.
OpenAI Codex updates (28-day shipping challenge)
App · OpenAI
OpenAI's Codex coding agent and its 28-day series of daily product updates, including desktop app and caching changes.
Codex Thread Delegation and Search
App · OpenAI
Codex feature letting one thread search, summarize and link other threads and delegate work to them.
GPT-5.3 Codex
Model · OpenAI
OpenAI's agentic coding model powering Codex in the CLI, IDE extension, desktop app and ChatGPT cloud.