OpenAI 的 Codex CLI 编码代理最新版本 0.128.0 新增 /goal 功能,允许设置目标并持续循环执行,直到目标完成或配置的 token 预算耗尽。该功能主要通过 goals/continuation.md 和 goals/budget_limit.md 提示实现,自动在轮次结束时注入。
Codex CLI 0.128.0 adds /goal
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.
Via @fcoury
Tags: ai, openai, prompt-engineering, generative-ai, llms, coding-agents, system-prompts, codex-cli, agentic-engineering