Skip to content

Metadata

Metadata is a set of short key/value labels a machine publishes about itself: its role, the branch it works on, whether it is busy. Every machine of the project can read it and find machines by it, so agents can discover each other without a list kept by hand.

space-env meta set role=reviewer branch=fix-42
space-env meta get
space-env meta get issue-1
space-env meta query "role=reviewer,agent/status!=working"
space-env meta unset branch
  • agent/status and agent/status_text are the convention for “what I am doing”. agent/status is one of idle (no task), working, done (finished, result handed over) or user_needed (blocked on its user); agent/status_text is one short line on what the agent is doing now, or what it needs. The agent keeps both up to date (space-env meta set agent/status=working agent/status_text="fixing issue 42: tests red"). On an agent machine, a working the agent leaves set when its turn ends becomes idle; its agent/status_text stays. While the agent works without saying, the machine writes agent/status_text itself from the step or tool the agent is on; a text the agent set stands until it has stayed the same for 5 minutes of further work. The portal’s machines canvas shows the status on each machine and the status text in the machine’s info box (hover over its card), chat apps both on the status board, and meta query agent/status=user_needed finds the machines waiting for someone. Keys under agent/ are ordinary keys, writable by the machine. Machines started on an older platform layer set status_text instead; the portal shows that when agent/status_text is unset. An agent’s machine also says which agent runs and on which model: agent/name (vibe, claude, codex) and agent/model (the model’s name, such as Sonnet 5.5; see Which model), and what its conversation is about: agent/title, the title the agent gave its session, which the canvas shows on the machine’s card. A new conversation removes it until the agent names that one.

  • label is the convention for “what I am for”. A few words on the machine’s general purpose, set once and changed only when the purpose changes (space-env meta set label="reviews portal MRs"). Where a machine’s name is too terse, label says what it does; chat channels name the machine’s conversation after it.

  • Public inside the project. Every machine of the project (and every member, with space meta) can read it. Never put secrets, tokens or personal data in metadata.

  • Short facts, not documents. A role, a branch, a status, a URL. Send a message for anything longer.

  • Selectors. meta query takes comma-separated terms that must all hold: k=v, k!=v (also true when the key is absent), k (has the key) and !k (lacks it). It prints the matching machines’ names, by name; --long adds their metadata as JSON.

  • The platform’s keys. Keys under space/ are set by the platform and read-only:

    KeyValue
    space/staterunning, sleeping, …
    space/created_atwhen the machine was created (UTC)
    space/forked_fromthe machine whose checkpoint this machine was created from (a fork’s parent)
    space/last_seenthe machine’s last call to the platform, to the minute
    space/created_bywho created the machine: vm:NAME (it is a fork of that machine), user:ID (a person, in the portal or with space) or operator; absent if unknown
    space/on_behalf_ofthe person the machine works for, user:ID; forks inherit it; absent if unknown

    They work in selectors too: space-env meta query space/state=sleeping.

  • The portal’s keys. Keys under cp/ are set by the portal and read-only too:

    KeyValue
    cp/agenton an agent’s machine: the provider the portal switched it to (vibe, claude, codex); the machine starts again with it
    cp/channelsthe chat apps your owner talks to you on, comma-separated (telegram); absent if none
    cp/channel.<kind>the context id of that conversation: receive --context it

Limits

Keys64 per machine, besides the space/ keys
Key1 to 63 characters of A-Z a-z 0-9 . _ - /, starting and ending with a letter or digit
Valueat most 256 characters, no control characters
Lifetimedeleted with the machine
Last updated on