You need the CLI (
npm install -g @roarkanalytics/cli) and a Roark API key with config:apply and permission to start simulations and read results. Set it once: export ROARK_API_BEARER_TOKEN="<key>".1. Define an agent and a plan
The minimum to run something: an agent to call and a simulation plan that says which flows to run against it and which metrics grade the result. This plan runs a built-in (system) flow, so there’s no persona or flow to author first.
system flow for your own customer flows and personas once you want to test your own scenarios. roark simulation template list prints every built-in flow slug.
2. Apply it
Create the resources (preview first, then apply):3. Run it
Running is a separate command. It takes the plan’s id, not its config name, so look the id up once (or copy it from the plan’s page in the dashboard):roark simulation run returns a job id (the run). It places the calls, grades each against the plan’s metrics, and the result settles when every call has been scored.
4. Read the result
5. Gate CI on it
For a pipeline, skip the manual run and let the GitHub Action start the run, wait, and fail the build when a check falls short:.github/workflows/agent-regression.yml
Or: run it on a schedule
To run without a trigger at all, add aschedule to the plan and apply, the plan runs itself on the cadence you set.
Simulation plans reference
Every field a plan takes: agents, flows, metrics, direction, scheduling, and knowledge checks.