Planning
Planning mode tells the session to produce a structured plan before it starts calling tools. Use it for multi-step work (refactors, release reviews, audits) where you want the agent to decompose the goal first instead of jumping straight into edits.
Set it through the session planning option: PlanningMode in Rust and Go,
planningMode in Node.js, and planning_mode in Python. The accepted values
are:
"auto" is the default structured pre-analysis path.
Planning state is attached to the run, so a host UI can render a task list from run events and update completion as the agent works. Planning organizes the work; verification commands still provide the completion evidence.
Runnable session examples ship at
sdk/node/examples/orchestration/parallel-pipeline.mjs and
sdk/python/examples/orchestration_workflow.py.