Skip to content

Prove a change with agentsctl

Passing checks show that code runs. A proof shows that a person can use the change. bin/agentsctl starts a private copy of Agents from your checkout on your own Mac, drives it through the web app, the desktop app, the HTTP API and the database, and keeps what it saw. A change is not done until you have proved it once this way. This page is for the person or agent who made the change. The skill .claude/skills/verify-agents/SKILL.md has the full command reference.

Run every command from the repo root with ~/.local/node/bin first on PATH, and the folder that holds docker on it too.

Terminal window
bin/agentsctl up --pipelines
bin/agentsctl doctor

up starts an API, a daemon and the built web app on three free ports from 8020 to 8039, against the test database, with a team of its own. It makes the people ada and ben, a machine, and the agents fixer, writer and improver. With --pipelines it also makes a forge org with the repos shop and pipelines. The instance knows each person by the Tailscale-User-Login header that agentsctl sends. Add --auth native to sign people in with a password and a code, as gomoe.dev does. It uses a scripted stand-in for Claude. Add --claude real for what the stand-in cannot do, such as tool approvals and interrupting a turn, which costs real tokens.

up refuses, and changes nothing, unless the database and Electric are the ones .env.test names. It never uses the live ports. It is ready when it prints ok: up <instance> -> ready. doctor is read-only. It answers whether the instance is worth driving, and a failing check names what to run next.

Find elements the way a person does, by ARIA role and accessible name.

Terminal window
bin/agentsctl browser goto /
bin/agentsctl browser snapshot --aria
bin/agentsctl browser click --role button --name "Start the run"
bin/agentsctl db "select count(*)::int as n from messages where team_id = {team}"

browser snapshot --aria writes the page’s tree to the evidence folder and prints its path, so read it before you guess a name. browser, desktop, api and db cover the web app, the Electron app, the HTTP API and the record. Read the side effect back from the record or the machine, and never rely on the final screen alone. A proof is the person’s action and the state it left.

For a change to the screens, bin/agentsctl preview serves your checkout’s app from source on 127.0.0.1, signed in as the instance’s owner. A saved file under app/src shows in under a second. Ctrl+C stops it, and the instance keeps running.

The feature map lists every feature with how a person reaches it and the exact commands that prove it. It is in .claude/skills/verify-agents/features/, one Markdown file per feature. Each file opens with one json block holding the feature’s id, name, paths and checks.

Terminal window
bin/agentsctl map list
bin/agentsctl map run <feature>
bin/agentsctl map run all --keep-going
bin/agentsctl map check

map run runs a file’s commands as written, in order, and stops a feature at its first failure unless you pass --keep-going. Run each feature file once per instance, since a second run trips over what the first made. map check reads the files without running anything. map drift lists the routes, pages and tools the code has that no entry names.

When you change a feature, change its feature file in the same commit and prove every entry point it lists, not one convenient path. When you add a feature, add its file. Each action a person can take also needs an agent tool, a command in the agents CLI, a feature-map entry and docs. If an action is for people only, say why.

Each step of map run gets one verdict.

  • live-ui-verified means it ran on a healthy instance and the end state held.
  • verifier-failed means it ran on a healthy instance and the app did something else.
  • verifier-blocked means it could not run, for a missing prerequisite or an instance that stopped being healthy.

For a change under app/, take captures in every engine and width.

Terminal window
bin/agentsctl visual shot <view>
bin/agentsctl visual compare

visual shot captures the current view in Chromium, Firefox and WebKit at desktop and phone width, checks each, and lists them in evidence.json. visual compare diffs a run’s captures against the baselines and names each changed region. visual baseline makes a run’s captures the baselines and logs why. A change under app/ also needs a Playwright check that names the three engines and both widths. A check that calls eachView from test/gaps-kit.ts counts.

Terminal window
bin/agentsctl evidence
bin/agentsctl down

Evidence stays in .scratch/verify/evidence/<instance>-<time>/, and down never removes it. It holds actions.jsonl, the API and daemon logs, ARIA snapshots, screenshots, API answers, rows, videos, traces, and evidence.json. down stops what up started and removes the team and the scratch folder. down --keep-data keeps the team for a look at the record.

Start instances one after another, not at once. Never build or tag agents-box:latest. Say in your report which database the proof ran on.