Skip to content

agents

The agents of the project (the one in use). Each agent runs in a machine of its own; these commands list them and download a copy of what one sees.

space agents list

space agents list
space agents list

The project’s agents: name, kind (root, a person’s agent, or sub, a subagent), role, owner, state and the machine that runs it. With -q it prints only the names; with --json, the API’s agent objects (details).

space agents export

space agents export <agent> [--output <file>] [--sessions]

Downloads the agent’s layering exactly as its harness reads it, as a zstd-compressed tar. It is for debugging an agent without opening its terminal, comparing two agents, or running the same setup somewhere else.

FlagMeaning
--output <file>Where to write the archive. Default <agent>.tar.zst in the current directory; - writes it to stdout.
--sessionsInclude the agent’s sessions. They can be large, and they hold the conversation.

-o is the global --org, so the file is always --output. The command prints where the archive went and how big it is on stderr.

space agents export <agent>
space agents export <agent> --output <agent>-full.tar.zst --sessions
space agents export <agent> --output - > copy.tar.zst

What is in it (see space-env export for the layout):

  • the agent’s instructions, skills, memory and settings, as its harness reads them (AGENTS.md or CLAUDE.md, the skills directories, settings.json and the like, with links resolved to their content);
  • manifest.json: the versions (guest image, platform layer, kernel, harness, ACP adapter), the commit of each repository, the layering order, and which layer every path comes from;
  • its sessions, only with --sessions.

Never in it: the agent’s sign-ins and other credentials. The manifest only says whether they are there.

The export runs space-env export in the agent’s machine, so a suspended machine is resumed first; that can take a minute. Only the agent’s owner or an admin of the organization may export it (exit 3 otherwise), and every export is recorded in the organization’s audit log. A read-only API key may export. An archive over 3 MiB is refused with the reason (usually: leave out --sessions, or run space-env export in the machine, which has no such limit); see exit codes.

Last updated on