session/update notifications and update them as work progresses.
The plan update carries a single checklist. Clients that advertise plan during initialization can also receive identified plans through plan_update and plan_removed.
Creating plans
When the language model creates an execution plan, the Agent SHOULD report it to the Client:An array of plan entries representing the tasks to be
accomplished
Plan operations
Agents MUST NOT sendplan_update or plan_removed unless the Client advertised plan. If the Client omits plan or sends null, the Agent MUST use the plan update for structured checklists.
When the Client advertises plan, the Agent SHOULD send its plans with plan_update instead of plan. The plan object requires a type and a planId unique within the session. Each plan_update replaces the whole plan with that ID, even if its type changes. It does not affect other plans.
Item-based plans
Markdown plans
The absolute path of the file that holds this plan. Omission and
null are
equivalent and mean the plan has no file.path MUST be an absolute path. Clients display content whether or not they can reach the file. They can use path to open it.
Removing plans
plan_removed when a plan is cancelled, for example when the user rejects it or the Agent abandons it. A finished plan doesn’t need to be removed. Clients MUST ignore plan_removed for a planId they don’t know.
Plan entries
Each plan entry represents a specific task or goal within the overall execution strategy:Updating plans
As the Agent progresses through the plan, it SHOULD report updates by sending moresession/update notifications with the same structure.
For both plan and items plans, the Agent MUST send the complete list of entries and their current status in each update. The Client MUST replace the current checklist completely. For plan_update, this applies only to the plan with the given planId. An empty entries array empties the plan. Clients MAY hide an empty items plan.