What /goal actually is: the Ralph loop, productized
The headline feature in Codex CLI 0.128.0 is /goal, and the mechanics are surprisingly humble. According to Simon Willison's teardown, /goal works by automatically injecting two markdown prompt files — goals/continuation.md and goals/budget_limit.md — at the end of every conversational turn. The continuation prompt nudges the model to keep working; the budget prompt tells it when to stop. That's the Ralph loop pattern that hobbyist developers have been hand-rolling for over a year, now wrapped in app-server APIs, persisted state, and TUI controls for create, pause, resume, and clear. Greg Brockman's framing of it as 'Ralph loop++' was unusually candid about the lineage.
What changes for users is the unit of work. Instead of typing a prompt, watching Codex execute, and then prompting again, you give the agent a goal — 'add SSO to this Django app and ship a passing PR' — and walk away. Codex plans, executes, runs tests, refines, and continues until either the goal evaluates as complete or the token budget is exhausted. The TUI lets you pause and resume a long-running goal across days. This is the concrete shape of the 'autonomous senior-engineer' marketing line: not a smarter single response, but a process that doesn't need you in the loop at all.



![[Amazing Update] The new /goal feature in OpenAI Codex v0.128.0 deep dive](https://img.youtube.com/vi/M3i2A0BuvtY/mqdefault.jpg)