Skip to content

microagent list

Last updated: 2026-07-30

microagent list [--state-dir <dir>]
microagent ls [--state-dir <dir>]

list walks the state directory and prints one row per saved workspace, with name, backend, and current state. It is an inventory view, so stopped workspaces appear because their disks and state still exist. To show only running workspaces, use ps. For everything about one workspace - readiness, verification, network detail - use status.

ls is an alias for list.

List saved workspaces:

Terminal window
microagent list
microagent ls
microagent --json list

Text output is one row per saved workspace:

NAME STATE BACKEND PROFILE NETWORK RESTART
research running linux-kvm medium user on-failure
template stopped linux-kvm small user never

With --json, the rows are returned under workspaces:

{
"workspaces": [
{
"name": "research",
"state": "running",
"backend": "linux-kvm",
"profile": "medium",
"restart": "on-failure",
"network": "user",
"observed_at": "2026-06-01T12:00:00Z"
}
]
}

--state-dir matters only when your workspaces live outside the default ~/.microagent/.

Flag Description
--state-dir <dir> State directory to scan (default ~/.microagent/)
--json Global flag before list; print structured JSON output

See global flags for --output/--json.

list exits 0 on success, including when no workspaces exist - a missing or empty state directory lists zero rows rather than failing.

  • status - the deep view of a single workspace
  • ps - show only running workspaces