agentsctl map, visual and site commands
These commands check the feature map, compare screenshots with baselines, and build or serve this docs site. Every command here takes the flags that every agentsctl command takes, listed on agentsctl instance commands.
Feature map
Section titled “Feature map”map list
Section titled “map list”Lists the features in the map, in sweep order.
Fields are id, name, steps, paths, checks, file. The output shows id, name, steps unless --fields names others.
| Flag | What it does |
|---|---|
--fields <value> |
The fields to show, comma separated. |
map check
Section titled “map check”Checks every feature file, the index and features.json, without running anything.
map export
Section titled “map export”Writes features.json, the map the framework’s gates read, from the feature files’ entries.
map guard
Section titled “map guard”Fails when the map lost or changed an assertion it had at a base commit.
| Flag | What it does |
|---|---|
--base <value> |
The git ref to compare with, such as origin/main. |
map run <feature ...|all>
Section titled “map run <feature ...|all>”Runs feature files as written, giving each step a verdict.
| Flag | What it does |
|---|---|
--visual |
Also take the visual captures. |
--keep-going |
Run every step even after one fails. |
--no-window |
Leave out the steps that open the desktop app’s window, and mark them blocked. |
map drift
Section titled “map drift”Compares the feature maps with the code. It lists what has no entry, what names something that is gone, and what map check finds.
Visual captures
Section titled “Visual captures”visual shot <view>
Section titled “visual shot <view>”Captures the current view in three engines at two widths, checks each capture, and lists them in evidence.json.
| Flag | What it does |
|---|---|
--ready-role <value> |
The role of an element to wait for before each capture. |
--ready-name <value> |
That element’s accessible name. |
--ready-text <value> |
Text inside that element. |
Also takes --engine, --width, --as, --timeout, described on agentsctl browser and desktop commands.
visual compare
Section titled “visual compare”Diffs a run’s captures against the baselines, naming each changed region.
| Flag | What it does |
|---|---|
--from <value> |
A run’s evidence folder. The default is the instance’s. |
--baselines <value> |
A baselines folder. The default is .scratch/verify/baselines. |
visual baseline
Section titled “visual baseline”Makes a run’s captures the baselines, logging why.
| Flag | What it does |
|---|---|
--from <value> |
A run’s evidence folder. The default is the instance’s. |
--baselines <value> |
A baselines folder. The default is .scratch/verify/baselines. |
--reason <value> |
Why the view changed on purpose. |
--view <value> |
Only this view. Repeatable. |
Docs site
Section titled “Docs site”site build
Section titled “site build”Builds the docs site to static HTML in a folder outside the repo, and prints where.
| Flag | What it does |
|---|---|
--out <value> |
The folder to build into, outside the repo. The default is a folder named agents-site in the temporary folder. |
site serve
Section titled “site serve”Builds the docs site into the instance’s scratch folder and serves it on a port of its own, so a browser step can open it. A second run builds it again.
site url
Section titled “site url”Prints the address of the instance’s docs site alone, for use in another command.