Skip to content

microagent supervise

microagent supervise <name> [--state-dir <dir>] [--max-restarts <n>]

supervise is a foreground host supervisor. It starts a workspace and keeps watching it while the command is running. When the workspace reaches a terminal state, the persisted restart policy decides whether supervise starts it again.

PolicyBehavior
neverDo not start under supervise
on-failureRestart only after a failed state
alwaysRestart after stopped or failed

The policy comes from microagent create --restart ... or restart: in microagent.yaml.

FlagDescription
--state-dir <dir>State directory holding the workspace record
--supervisor <path>Override the installed host backend supervisor path
--arch <arch>Guest architecture
--kernel <path>Kernel path
--interval <seconds>Seconds between state checks
--max-restarts <n>Maximum restarts; 0 means unlimited
Terminal window
microagent create research --restart always
microagent supervise research

Stop the foreground supervise process to stop restart supervision.