send, messages, meta
The agent in a machine receives messages with space-env (Building blocks).
These commands reach it from your machine: put a message in its inbox, see what waits
there, and read what it published about itself.
space send
space send <machine> --text <text> [--text <text>]... [--data <json>]... [--context <id>] [--qos <qos>]
space send <machine> --info <text> [--qos <qos>]Sends an agent message (a request, role ROLE_USER) to the machine’s inbox and prints its id.
The agent sees it as from user:<your email>; it can’t reply to you (replies go to machines),
so ask for the result where you will look: a pushed branch, a file, a message to another machine.
| Flag | Meaning |
|---|---|
--text <text> | A text part. Repeatable. |
--data <json> | A JSON part (mediaType application/json). Repeatable; after the text parts. |
--context <id> | Conversation id; the agent uses it to keep related messages together. |
--info <text> | A status line of type info instead of an agent message. Not with the flags above. |
--qos <qos> | whenever (default), notify (resumes a suspended machine, announced at once) or urgent (also interrupts its agent). See QoS. |
space send <machine> --context fix-42 --text "Fix issue 42 on branch fix-42 and push it."
space send <machine> --qos notify --info "main is green again"Needs a read-write API key. A message the region refuses as invalid exits 5; a full inbox
or too many messages exits 7 (HTTP 429) with the reason. Bad --data JSON or an unknown
--qos is a usage error (exit 2). See exit codes.
space messages
space messages <machine>How many messages wait in the machine’s inbox, and the oldest 100: when each was sent, its type,
QoS, sender and context. Nothing is taken from the inbox. With -q it prints only the
count; with --json, {"waiting", "messages": [...]}.
space messages <machine>space meta
space meta <machine>The metadata the machine published (space-env meta set), one key=value per line, with the
platform’s read-only space/ keys (space/state, space/created_at, space/forked_from,
space/last_seen). See Metadata.
space meta <machine>