← 返回 Codex版本差异已标注
instructions · LINES 290–299
`update_plan`
本段证据绑定
运行版本 0.151.0 · 捕获于 2026/8/30 · 组合哈希 7d6ebda655fa6fa4a29ea815554c3ff73d793c1ce53d1f614cb769733b395236。该哈希证明本次固定配置的请求内容,不代表未来版本或未捕获的服务端指令。
原始分段
英文内容保持固定;中文是独立翻译层。
## `update_plan`
A tool named `update_plan` is available to you. You can use it to keep an up‑to‑date, step‑by‑step plan for the task.
To create a new plan, call `update_plan` with a short list of 1‑sentence steps (no more than 5-7 words each) with a `status` for each step (`pending`, `in_progress`, or `completed`).
When steps have been completed, use `update_plan` to mark each finished step as `completed` and the next step you are working on as `in_progress`. There should always be exactly one `in_progress` step until everything is done. You can mark multiple items as complete in a single `update_plan` call.
If all steps are complete, ensure you call `update_plan` to mark all steps as `completed`.
## `update_plan`
你可以使用名为 `update_plan` 的工具,为任务维护一份最新的逐步计划。
创建计划时,使用一组简短的单句步骤,最多 5 至 7 个词,并为每步设置 `status`:`pending`、`in_progress` 或 `completed`。
完成步骤后,使用 `update_plan` 把该步骤标记为 `completed`,并把下一步标记为 `in_progress`。在所有工作完成前,始终应当恰好有一个步骤处于 `in_progress`。可以在一次 `update_plan` 调用中把多个项目标为完成。
所有步骤都完成后,务必调用 `update_plan`,把它们全部标成 `completed`。
相关源码
该分段的精确来源可能跨多个 builder 或模板;以下为 Agent 的固定源码入口。commit 与 SHA-256 用于核对固定版本。
SRCgpt-5.2-codex_prompt.mdcodex-rs/core/gpt-5.2-codex_prompt.md
SOURCE
SRCgpt-5.2-codex_instructions_template.mdcodex-rs/core/templates/model_instructions/gpt-5.2-codex_instructions_template.md88f776588f SOURCE
SRCbase_instructions.rscodex-rs/core/src/context/base_instructions.rs88f776588f SOURCE
SRCpermissions_instructions.rscodex-rs/core/src/context/permissions_instructions.rs88f776588f SOURCE
SRCdeveloper_instructions.rscodex-rs/core/src/context/developer_instructions.rs88f776588f SOURCE
SRCuser_instructions.rscodex-rs/core/src/context/user_instructions.rs88f776588f SOURCE
SRCmulti_agent_mode_instructions.rscodex-rs/core/src/context/multi_agent_mode_instructions.rs88f776588f SOURCE
SRCCodex 0.151.0 GPT-5.2 base promptcodex-rs/core/gpt_5_2_prompt.md88f776588f SOURCE
78c290807c