Send a task and collect its result
Deliver a correlated task to a connected peer and read the result by task ID.
Updated 1 min read
MAO gives each delivered task a stable ID and tracks its progress. Connect the sender and recipient before sending the task.
Send and finish a task
- From the sender’s terminal, run
mao ask <agent> <prompt>to send a task and wait for its result. - For manual delivery, run
mao send <peer> <prompt>. - On the recipient, run
mao nextto claim the task. - Return the task ID and result with
mao result <task-id> <content>. - On the sender, run
mao wait <task-id>to read a pending result.
NoteTask states include pending, delivered, completed, and failed.
LimitPrompts and results are limited to 1 MiB. After a crash, unfinished work can be delivered again, so recipients should tolerate duplicate tasks.
Something missing or wrong? Ask in the Discord or write to hello@miguer.com.