clarify is the only planning knob. By default (clarify: false) the agent infers
reasonable defaults and executes without asking. Set clarify: true when a human is present
and a missing answer would materially change the work.
clarify: true the task initializes in plan mode and can stop before execution. Stream
the turn (or poll status) to see the question, answer it with
POST /task/{task_id}/continue, then let it execute.
Review, then continue
A common pattern: run the first part, let a human review the rows, then continue the same task with corrections.Python
task_id is durable, you can interleave agent turns and human review as many
times as you need. See Follow-up tasks.
Guidance
- For background automation, keep
clarify: false. - Use
clarify: trueonly when the user is present to answer. - When continuing after review, restate the current goal as a clear instruction rather than passing the user’s raw words.
POST /task/{task_id}/stopreturns a running task toplanif a reviewer needs to intervene mid-run.