A user message started a new turn.
A chunk of the answer text.
A chunk of the model's reasoning.
The model asked to run a tool.
OptionaltaskId?: stringThe workflow task. Set only for events from a workflow worker.
A tool call waits for the user. Answer with resolveApproval().
The user answered an approval prompt.
A line of progress from a running tool (stderr of the CLI).
OptionaltaskId?: stringThe workflow task. Set only for events from a workflow worker.
A tool finished. data is the full data for the UI.
Optionaldata?: unknownOptionaltaskId?: stringThe workflow task. Set only for events from a workflow worker.
Token counts of one model call, and its cost when known.
The problem spec (.polyman/agent/notes.md) changed.
The session now works on another problem folder.
Old messages were cut to stay under the context budget.
A line for the user from the session, not from the model, like "this model can only chat". It is never sent to the model.
The turn is over, and why.
The manager made a plan.
The plan waits for the user. Answer with PermissionGate.resolve().
A workflow task started (or started again).
The checkpoint of a task ran.
A workflow task is over.
The whole workflow is over.
One event of the agent core.