返回 2026-05-02
🛠 工具 / 开源

Codex CLI 0.128.0 新增 /goal 指令Codex CLI 0.128.0 adds /goal

simonwillison.net·2026-04-30 节选正文

OpenAI 的 Codex CLI 工具在 v0.128.0 版本中引入了 /goal 功能,实现了类似 Ralph loop 的开发流程:用户可以设定一个目标(/goal),Codex 将持续迭代直至完成该目标或耗尽预设的 token 预算。这一机制旨在提升 AI 编程代理在复杂任务中的自主性和持续性。目前该功能已在 Rust 版本实现,标志着 Codex 向更智能、闭环式开发助手演进的重要一步。

Simon Willison

30th April 2026 - Link Blog

Codex CLI 0.128.0 adds /goal (via) 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 1995 openai 416 prompt-engineering 189 generative-ai 1768 llms 1734 coding-agents 197 system-prompts 54 codex-cli 34 agentic-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!

    需要完整排版与评论请前往来源站点阅读。