Codex CLI 0.128.0 adds /goal
TL;DR · AI 摘要
OpenAI的Codex CLI 0.128.0版本引入了/goal功能,允许用户设置目标,Codex将持续循环执行直至达成目标或令牌预算耗尽,类似于Ralph loop。
核心要点
- 新版本Codex CLI增加了/goal命令,实现持续任务执行至目标完成。
- 该功能通过自动注入goals/continuation.md和goals/budget_limit.md模板实现。
- 此更新强化了Codex作为编码代理的能力,特别是在有明确目标的任务上。
结构提纲
按章节快速跳转。
介绍Codex CLI最新版本的主要变动
描述/goal命令如何改变Codex的使用方式
比较新功能与Ralph loop的异同
提及实现/goal功能所使用的系统提示文件
列出作者近期其他关于AI和LLM的文章
思维导图
用一张图看清主题之间的关系。
查看大纲文本(无障碍 / 无 JS 友好)
- Codex CLI 0.128.0 更新
- 新增功能
- /goal指令
- 功能特点
- 目标驱动循环
- 资源管理
- 技术实现
- 系统提示文件
- 自动注入机制
金句 / Highlights
值得收藏与分享的关键句。
最新版本的OpenAI Codex CLI 0.128.0加入了/goal指令,使得用户能设定目标并让Codex持续工作直至达成或资源耗尽。
该功能主要通过goals/continuation.md和goals/budget_limit.md两个模板文件在每次交互后自动插入来实现。
这一升级体现了对编码代理能力的增强,特别是针对那些需要长期、目标导向任务处理的场景。
Codex CLI 0.128.0 adds /goal
[Simon Willison’s Weblog](http://simonwillison.net/)
30th April 2026 - Link Blog
[Codex CLI 0.128.0 adds /goal](https://github.com/openai/codex/releases/tag/rust-v0.128.0) ([via](https://twitter.com/fcoury/status/2049917871799636201 "@fcoury")) The latest version of OpenAI's Codex CLI coding agent adds their own version of the Ralph loop: you can now set a /goal and Codex will keep on looping until it evaluates that the goal has been completed... or the configured token budget has been exhausted.
It looks like the feature is mainly implemented though the goals/continuation.md and goals/budget_limit.md prompts, which are automatically injected at the end of a turn.
Posted 30th April 2026 at 11:23 pm
Recent articles
- LLM 0.32a0 is a major backwards-compatible refactor - 29th April 2026
- Tracking the history of the now-deceased OpenAI Microsoft AGI clause - 27th April 2026
- DeepSeek V4 - almost on the frontier, a fraction of the price - 24th April 2026
This is a link post by Simon Willison, posted on 30th April 2026.
ai 1995openai 416prompt-engineering 189generative-ai 1768llms 1734coding-agents 197system-prompts 54codex-cli 34agentic-engineering 46
Monthly briefing
Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments.
Pay me to send you less!