Agent Prompt Atlas提示词源代码图谱
证据模式
← 返回 Codex
instructions · LINES 290–299

`update_plan`

译文已校订0.151.0
本段证据绑定

运行版本 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`。
SEGMENT HASH 712
CAPTURE 7d6ebda655fa6fa4…

相关源码

该分段的精确来源可能跨多个 builder 或模板;以下为 Agent 的固定源码入口。commit 与 SHA-256 用于核对固定版本。