Skip to main content
Blocks until an agent reaches the target phase, a terminal phase (completed/failed/canceled), or comes to rest awaiting input (task-complete/idle/sleeping with nothing queued). Returns a one-line outcome plus the agent’s full status — check its phase. Equivalent to murmur wait in the CLI. A resting agent cannot move again without input: a sleeping agent never completes on its own. When wait reports the agent at rest, use queue_add to give it work (it wakes automatically) or kill to end it — re-issuing the same wait just returns the same resting status.

Parameters

Response

Returns a one-line outcome (wait ended: …) followed by the agent’s full status as a JSON object. The status format is identical to status.

Examples

Wait until the agent is done or at rest

Response:

Waiting on an agent that went to sleep

A child spawned with the default on_idle: sleep parks its VM after the idle timeout and never self-terminates. Wait returns the resting status instead of blocking forever:
Response:

Wait for a specific phase, bounded

If the agent is still mid-turn after 10 minutes, the tool returns wait ended: timeout after 600s — agent has not reached its stop condition yet plus the latest status, rather than an error.

Wait on an agent in another workspace

Errors

  • murmur wait — equivalent CLI command
  • status — check agent state without blocking
  • spawn — create an agent
  • ls — list running agents
  • queue_add — send follow-up after wait completes