agents array in scenario.json tells the runner which agents execute the scenario. Like hosts, how you define an agent depends on the execution mode.
Host Mode (--mode host)
In host mode, you reference an existing agent already registered in your 2501 deployment. The runner flushes the agent’s memory before execution to ensure a clean slate, then leaves the record untouched after the run.
host_name must match a host_name defined in the hosts array (or use host_id directly if preferred).
VM Mode (--mode incus / --mode lima)
In VM mode, hosts are ephemeral VMs created fresh for each run, so agents are also defined inline and created from scratch. The runner injects SSH credentials automatically — you don’t need to provide them.
- Creates a new agent record in the DB with the provided fields
- Injects SSH credentials for the provisioned VM automatically
- Flushes memory at run start
- Removes the agent record from the DB after the run
host_name must match a host_name defined in the hosts array.

