Skip to main content

Choose the call shape

Human-readable replies preserve tabs and line breaks while neutralizing terminal control and bidirectional-formatting characters. JSON output preserves the value and escapes terminal-active characters in the serialized form.

Retrieve an offline job

If the owner enabled durable delivery and the listener is offline or already has older queued work, call exits 0 with a task ID instead of waiting:
The caller saves the sealed request and response binding before sending. A later process can list, retrieve, authenticate, and decrypt the result locally:
--wait accepts 0–300 seconds. Request/result ciphertext is retained for at most 72 hours. expired, delivery_failed, revoked, and indeterminate_execution are terminal reasons; an expiry remains queryable as metadata for another 24 hours.

Continue a conversation

When a reply opens a context, the CLI prints a note on standard error:
One conversation stays open per address per task. --continue resumes it when that is unambiguous; when several are open it lists them and asks for a --task <id> rather than picking one. Use --context <id> to select a specific context by id. Do not combine --continue and --context. Contexts:
  • expire 30 minutes after the last turn;
  • stop after 10 turns;
  • stay bound to the caller, callee, task, and calling line;
  • end when the callee changes agent kind or working directory;
  • end when the callee’s agent no longer holds the underlying session.
Every one of those reaches the caller as the same context_unknown — the callee deliberately does not say which. A --continue that gets it clears the stored context, so the next call starts a fresh conversation rather than retrying a dead one. Tasks with write or exec are not threadable by default. The task owner must explicitly accept the added prompt-history risk with threadable: true.

Interpret failures

Success check

Reply text remains on standard output, lifecycle information stays on standard error, and a continued turn answers in the same task context. Source of truth: README usage and follow-ups.