Codex CLI 0.128.0 adds /goal
- 新版本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** ([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!
问问这篇内容
回答仅基于本篇材料Skill 包
领域模板,一键产出结构化笔记论文精读包
把一篇论文 / 技术博客精读成结构化笔记:问题、方法、实验、批判、延伸阅读。
- · TL;DR(1 段)
- · 研究问题与动机
- · 方法概览
投融资雷达包
把一条融资 / 创投新闻整理成投资人视角的雷达卡:交易要点、判断、竞争格局、风险、尽调清单。
- · 交易要点(公司 / 轮次 / 金额 / 投资人 / 估值,材料未明示则写 “未披露”)
- · 投资 thesis(这家公司为什么值得关注)
- · 竞争格局与替代方案