Named workspaces
A workspace is a named, persistent VM record. Unlike microagent run, the
disk and state stick around between starts, so you can stop and resume an
agent’s environment.
Create
Section titled “Create”microagent create \ --name research \ --image docker.io/library/ubuntu:24.04 \ --size-mib 2048 \ --memory 1024 \ --cpus 2 \ --setup "mkdir -p /workspace" \ --setup "echo ready > /workspace/status"The name can also be positional:
microagent create research --image docker.io/library/ubuntu:24.04Microagent builds the rootfs once and records workspace metadata in the state
directory. If the default kernel is missing, create installs it first.
microagent start researchConnect (Apple VF)
Section titled “Connect (Apple VF)”microagent connect researchFor scripts, send one line and capture new console output:
microagent connect research --send "cat /workspace/status"connect is supported on Apple VF only. For Firecracker workspaces, use
logs for serial output.
Inspect
Section titled “Inspect”microagent ps # list all workspacesmicroagent status --name research # full state for onemicroagent logs research # boot/serial outputStop and delete
Section titled “Stop and delete”microagent stop researchmicroagent delete researchFor Firecracker, delete refuses to remove state while the recorded VM
process is still running. Use stop or kill first.
Attach disks
Section titled “Attach disks”Attach an existing ext4 disk:
microagent create \ --name research \ --image docker.io/library/ubuntu:24.04 \ --disk workspace=/tmp/workspace.ext4:/workspace:rwBuild a disk from a tar bundle and mount it read-only:
microagent create \ --name research \ --image docker.io/library/ubuntu:24.04 \ --bundle config=/tmp/config.tar:/config:ro