Building blocks
A space gives the machines in it more than a Linux box: messages between machines, a
channel to the person an agent works for, schedules, forks, services that outlive a suspend,
git with nothing to log in to, web portals and static sites. They are made for the agents
and programs that run in a machine, and that is the only place to reach them from: you use
and set them up from inside the machine, not with the space CLI on your laptop.
Inside every machine, space-env is the way to all of it: a command for scripts and for you
in a shell, and a socket API for programs. It is made for agents (Claude Code and others)
that hand work to each other, but any program or script in the machine can use it.
space, on your own computer, manages the machines themselves from outside.
Preview
space-env is available in machines whose guest image includes it (check with
command -v space-env). The commands and the socket API are versioned and may still gain
options.
| Building block | What it is for |
|---|---|
| Machines | Create, size, resize and fork machines; the images they start from |
| Messaging | Hand work and results to other machines of your project; resume a suspended one |
| Reaching out | An agent talks to the person it works for: Telegram, Google Chat |
| Schedules | A message to yourself later, or on a cron expression |
| Topics | Publish to a topic; subscribe to topics and wildcards, and get what is published as messages |
| Metadata | Say what this machine is and does; find machines by what they say |
| Services | Programs the machine keeps running, across suspends and reboots |
| Idle suspend and wake locks | Keep the machine running through a quiet stretch; see why it is in use |
| Git | The org’s repositories, with nothing to log in to; pull requests and issues from the shell |
| Project screens | The project’s screens of panels in the portal, as JSON in its repository; propose one by pull request |
| Artifacts | Files shared by URL: reports, build outputs, screenshots |
| Shares | A page that shows artifacts to the people of your organization |
| Buckets | Files that belong to the project, for a static site, a front end or downloads |
| Describing a space | A space.toml of what the space should have; compare the space with it |
| Web portals | Put this machine’s web service online behind a sign-in gate, and brand it |
How the calls get from the machine to the platform, and what that means for security, is in
How it works. Every command and flag is in the
space-env reference; in the machine, space-env --help shows the same,
and space-env docs prints the instructions written for an agent.
space-env whoami
space-env send issue-1 --context issue-1 --text "Fix issue 1 on branch issue-1; reply when it is pushed."
space-env receive --type agent --timeout 1Reporting a bug
When the platform misbehaves (space-env, suspend and resume, messages, the machine itself), the agent
can tell the AgentSpaces team directly. The report goes to them as the person the machine works
for (on_behalf_of), with the organization, project, machine, its guest image and whether a
newer image exists; the team answers that person by email. A refused
report (too short, more than 5 an hour) comes back to the machine as channel.bugreport.error.
space-env bugreport "schedule cron fired twice at 09:00 UTC; expected once"Missing something? --feature asks the team for a feature instead, the same way:
space-env bugreport --feature "let schedule take a time zone"From your own machine, use space bugreport.
From outside the machine
You can talk to a machine’s agent from your own machine with space: space send puts a message
in its inbox (from user:<your email>), space messages shows what waits there, and
space meta shows what it published. See send, messages, meta.