todosarrayrequiredEach item { content, status }.
statusstringpending · in_progress · completed. Anything else becomes pending.
The whole list, every time
There is no « add one step » or « mark this done » — the agent sends the list as it now stands, and the todo event carries it. Treat it as a replacement.
When a plan is written at all
Below that the agent is told to just do the work: a two-line list costs a turn and helps no one. So a short task legitimately produces no plan.
One in progress
The agent keeps exactly one item in_progress and marks items completed as it goes — which gives an interface a reliable « current step ».
It outlives the run
The final list is on result.todos and on the done event, and it is kept in a session — so a plan made in plan mode is still there when you switch mode and continue.