Skip to main content
These tools create threads and runs and keep Quaero current. With Claude Code or Codex hooks installed you rarely call them yourself; elsewhere the model calls them every turn. Which call is valid when is covered in Lifecycle. Every call returns a runtime snapshot.

thread_begin

Call once at the start of a chat. Returns ok, the server-minted thread_uuid, thread_resolution_source and runtime.

run_begin

Call when you start a task. task is what Quaero shows as the agent’s activity, so make it specific (“Fix flaky login test”, not “Working”).

run_step

Call at real milestones: a file done, tests passing, waiting on input. It updates Quaero and closes any telemetry gap.

run_end

thread_close

Marks the whole chat finished; only valid between runs. Params: reason, request_id. Not needed after every task.

runtime snapshot