Continuous product verificationfor AI-driven development
With AI agents writing code, changes come faster and in greater numbers. Code and tests that pass do not show that a user can do what they came to do. Probe takes end-to-end testing from a single page or API to the whole customer journey. A YAML workflow, written like GitHub Actions, follows a sign-up in the browser to the mail it sends, the row it writes and a sign-in on the iOS app, and an AI agent playing a first-time user judges whether they reach their goal. The same workflow runs in CI on every change and on an interval after release, so you keep knowing that the experience still works.
An example sign-up scenario
Sign up fills in the form in Chrome. API, Database and Mailbox each check what it left behind, at the same time: the API refuses to sign in an address not yet confirmed, SQLite holds the row as pending, and the confirmation mail is in the mailbox over IMAP. Activate waits for all three and opens the link from the mail in the browser. Then two jobs use the account at once: iOS app signs in on an iPhone simulator, and First visit hands the web app to an AI agent playing Ada, who has never seen it, and judges whether she reaches her goal — what a test written step by step cannot tell you.
1name: Sign-up Flow2 3actions:4 browser: github.com/mozership/probe-browser@5e0ee79cb660e5c855414935f51ad3eeb7c6ad6e # v0.6.15 ios: github.com/mozership/probe-ios@aed5436143e9536754e2123b953831f60cd635eb # v0.2.06 agent: github.com/mozership/probe-agent@4d0d6ccee6165624283b22fa0541b02d17e50ac5 # v0.2.07 db: github.com/mozership/probe-db@47be79a26c62a4790015c9fc2680bce4dba210b6 # v0.1.08 imap: github.com/mozership/probe-imap@c64e6ad9559de7a1405976fdaa11e7091bc732ee # v0.1.09 10secrets:11- ANTHROPIC_API_KEY12 13vars:14 web: https://app.example.com15 api: https://api.example.com16 mail_user: ada@example.com17 mail_pass: "{{MAIL_PASS}}"18 password: "{{PASSWORD}}"19 20jobs:21- name: Sign up22 id: signup23 steps:24 - name: Fill in the form25 uses: browser26 with:27 timeout: 15s28 actions:29 - name: navigate30 url: "{{vars.web}}/signup"31 - name: type32 selector: "#email"33 value: "{{vars.mail_user}}"34 - name: type35 selector: "#password"36 value: "{{vars.password}}"37 - name: click38 selector: button[type=submit]39 - name: wait_text40 id: notice41 selector: "#notice"42 test: res.code == 0 && res.results.notice startsWith "Check your inbox"43 44- name: API45 id: api46 needs: [signup]47 defaults:48 http:49 url: "{{vars.api}}"50 headers:51 content-type: application/json52 steps:53 - name: Sign-in is refused54 uses: http55 with:56 post: /login57 body:58 email: "{{vars.mail_user}}"59 password: "{{vars.password}}"60 test: res.code == 403 && res.body.error == "confirm your address first"61 62- name: Database63 id: db64 needs: [signup]65 defaults:66 db:67 dsn: file:./app.db68 steps:69 - name: Row is pending70 uses: db71 with:72 query: SELECT status FROM users WHERE email = ?73 params: ["{{vars.mail_user}}"]74 test: res.code == 0 && res.rows[0].status == "pending"75 76- name: Mailbox77 id: mailbox78 needs: [signup]79 defaults:80 imap:81 host: imap.example.com82 username: "{{vars.mail_user}}"83 password: "{{vars.mail_pass}}"84 steps:85 - name: Confirmation arrived86 id: mail87 uses: imap88 with:89 commands:90 - name: select91 mailbox: INBOX92 - name: fetch93 sequence: "1"94 dataitem: ENVELOPE BODY[TEXT]95 test: |96 res.code == 0 &&97 res.data.fetch.messages[0].subject == "Confirm your address" &&98 res.data.fetch.messages[0].to == vars.mail_user99 outputs:100 link: last(split(trim(res.data.fetch.messages[0].body), "\r\n"))101 102- name: Activate103 id: activate104 needs: [api, db, mailbox]105 steps:106 - name: Follow the link107 uses: browser108 with:109 timeout: 15s110 actions:111 - name: navigate112 url: "{{outputs.mail.link}}"113 - name: text114 id: heading115 selector: h1116 test: res.code == 0 && res.results.heading == "Your account is active"117 118- name: iOS app119 id: ios120 needs: [activate]121 steps:122 - name: Sign in on iPhone123 uses: ios124 timeout: 10m125 with:126 app: com.example.acme127 actions:128 - name: launch129 args: ["-api", "{{vars.api}}"]130 - name: type131 selector: email132 value: "{{vars.mail_user}}"133 - name: type134 selector: type=securetextfield identifier=password135 value: "{{vars.password}}"136 - name: tap137 selector: signin138 - name: text139 id: greeting140 selector: greeting141 test: res.code == 0 && res.results.greeting == "Welcome, ada@example.com"142 143- name: First visit144 id: visit145 needs: [activate]146 steps:147 - name: Ada names herself148 uses: agent149 with:150 url: "{{vars.web}}/signin"151 persona: |152 Ada, who has just confirmed her address and has153 never used the app. She signs in with {secret:EMAIL}154 and the password {secret:PASSWORD}.155 goal: |156 Sign in, and set the display name of the account157 to "Ada Lovelace".158 secrets:159 EMAIL: "{{vars.mail_user}}"160 PASSWORD: "{{vars.password}}"161 evidence_dir: out162 test: res.verdict == "pass"Sign-up Flow ⏺ Sign up (Completed in 3.25s) ⎿ 0. ✓ Fill in the form ⏺ API (Completed in 0.03s) ⎿ 0. ✓ Sign-in is refused ⏺ Database (Completed in 0.04s) ⎿ 0. ✓ Row is pending ⏺ Mailbox (Completed in 0.05s) ⎿ 0. ✓ Confirmation arrived ⏺ Activate (Completed in 1.02s) ⎿ 0. ✓ Follow the link ⏺ iOS app (Completed in 53.90s) ⎿ 0. ✓ Sign in on iPhone ⏺ First visit (Completed in 29.86s) ⎿ 0. ✓ Ada names herself ✅ pass: Signing in led to /home, so the persona got into the app. On the Account page she typed "Ada Lovelace" and saved, and the page showed "Saved." at /account?saved=1. The tester then opened /account again as a new page load. The page's form data shows the Display name field holding value="Ada Lovelace", and the screenshot shows the same name, so the change was kept. No server errors or slow requests turned up. The only failed request was the site icon (favicon.ico, 404), which the persona would not notice. evidence: "Home · Account Your projects You have no projects yet." evidence: "Saved." evidence: "textbox \"Display name\" value=\"Ada Lovelace\" [ref_7]" 0 findings 21 steps, stopped: done, 28s report: out/probe-agent-1662083251/report.md Total workflow time: 58.23s ✓ All jobs succeeded
Structure
What a workflow is made of
A workflow is a set of jobs, and a job is a sequence of steps. Steps run one after another, in the order you wrote them. Jobs run in parallel by default; only the ones with needs wait for what they depend on. Add repeat to a job and the same file runs on an interval and reports a success rate.
Architecture
Supported actions
A step names an action in uses, and Probe starts that action as its own process and talks to it over gRPC. The built-in actions go through exactly the same handshake an action you write does, so none of them is a special case. What Probe cannot reach yet, you can add.
Reuse
Shared steps, in a file of their own
A scenario usually starts by logging in, and every scenario after the first repeats it. Put those steps in a job file and any workflow runs it with uses: embedded, handing it vars and reading its outputs back. The job's steps appear nested under the step that called it, so a failure still says which one broke.
1name: Orders2 3vars:4 password: "{{PASSWORD}}"5 6jobs:7- name: Order history8 defaults:9 http:10 url: https://api.example.com11 12 steps:13 - name: Log in14 id: auth15 uses: embedded16 with:17 path: ./login-job.yml18 vars:19 username: ada20 password: "{{vars.password}}"21 test: res.code == 022 outputs:23 token: res.outputs.token24 25 - name: List orders26 uses: http27 with:28 get: /orders29 headers:30 authorization: "Bearer {{outputs.auth.token}}"31 test: res.code == 2001name: Log in2 3defaults:4 http:5 url: https://api.example.com6 headers:7 content-type: application/json8 9steps:10- name: Post credentials11 id: login12 uses: http13 with:14 post: /login15 body:16 username: "{{vars.username}}"17 password: "{{vars.password}}"18 test: res.code == 20019 outputs:20 token: res.body.access_tokenSyntax
What a step can say
Whatever action a step names, these fields are available to it.
test
A step passes when the expression is true. Everything about the response is in scope.
1test: res.code == 200 && res.body.status == "ok"outputs
Name a value once, then read it from any later step or job.
1outputs:2 token: res.body.access_tokeniteration
Run one step once per set of variables, without copying it.
1iteration:2- {name: Alice, role: admin}3- {name: Bob, role: user}retry
Give a flaky step another go, after a pause.
1retry:2 max_attempts: 33 interval: 5sskipif
Leave the step out when the condition holds.
1skipif: vars.env == "local"wait
Pause before the step runs, for whatever has to settle first.
1wait: 5sQuality
What deterministic tests leave out
The steps above check what can be stated exactly, and they are what should gate a merge. Whether a first-time user gets through, or whether the application still holds up once data and settings pile up on staging, cannot be written as an expression. The agent action takes it in natural language, as a persona and a goal: a model plays the persona in a real Chrome, and another call of the model reviews the run, keeping only what the pages and the requests bear out. Run it with repeat against staging, and it keeps using the application as people do.
Works with
- Claude
- OpenAI
- Gemini
- xAI
- Sakura AI Engine
1name: First note2 3actions:4 agent: github.com/mozership/probe-agent@4d0d6ccee6165624283b22fa0541b02d17e50ac5 # v0.2.05 6vars:7 password: "{{PASSWORD}}"8 9jobs:10- name: A first-time visitor11 steps:12 - name: Writes a first note13 uses: agent14 with:15 url: https://staging.example.com/16 persona: |17 Carol, who has never used a notes app and is18 not technical. She signs up with {secret:EMAIL}19 and the password {secret:PASSWORD}.20 goal: |21 Create an account, and write a first note22 that says "Buy milk".23 secrets:24 EMAIL: "carol+{{random_str(8)}}@example.com"25 PASSWORD: "{{vars.password}}"26 evidence_dir: out27 test: res.verdict != "blocked"First note ⏺ A first-time visitor (Completed in 48.49s) ⎿ 0. ✓ Writes a first note ❌ fail: The account was created: the welcome page greeted Carol and said the account was ready. No note was ever written, though. The only way to write one is the "Write your first note" link to /notes/new, and that page returned a 500 "Internal Server Error" all three times it was loaded. Nothing in the record shows a "Buy milk" note being saved. evidence: "Welcome to Acme Notes, Carol!" evidence: "Your account {secret:EMAIL} is ready." evidence: "link \"Write your first note\" href=\"/notes/new\"" evidence: "Internal Server Error" 2 findings 🔴 high: The new-note page (/notes/new) fails with a server error (500) 🟠 medium: After sign-up, nothing shows Carol is signed in and there is no other way to reach notes 24 steps, stopped: done, 47s report: out/probe-agent-3220800333/report.md Total workflow time: 48.49s ✓ All jobs succeeded
The first finding is a server error, which an http step would have caught had someone written one. The second is in no test: after signing up, nothing tells Carol she is signed in, nor how to get to her notes. The test of the step asks only that the review ran; the verdict and the findings are the result to read.
Read the agent action referenceCoding agents
Built for coding agents
When an agent writes the code and the tests, something has to check both. Probe teaches the agent how to use the version it runs, finds mistakes in a workflow before it runs, judges responses by your spec rather than by the agent's own test, and refuses writes, and connections to hosts you did not allow, before they are sent.
1name: Profile2 3jobs:4- name: Profile5 defaults:6 http:7 url: https://api.example.com8 steps:9 - name: Log in10 id: login11 uses: http12 with:13 post: /login14 bdoy:15 username: ada16 test: res.code == 20017 outputs:18 token: res.body.token19 20 - name: Read profile21 uses: http22 with:23 get: /me24 headers:25 authorization: "Bearer {{outputs.login.tokn}}"26 tset: res.code == 200agent-workflow.yml:14: error: job 0 "Profile", step 0 "Log in": with: unknown key "bdoy" for the http action; did you mean "body"?agent-workflow.yml:20: warning: job 0 "Profile", step 1 "Read profile": nothing checks this step: it has no testagent-workflow.yml:25: error: job 0 "Profile", step 1 "Read profile": with: outputs.login.tokn is not published: step "login" publishes tokenagent-workflow.yml:26: error: job 0 "Profile", step 1 "Read profile": unknown key "tset"; did you mean "test"? 3 errors, 1 warning
probe check reads a workflow without running it. A run ignores a key it does not know, in a step or in with, so the step can pass for the wrong reason, and finds a wrong output name only when the step reaches it. Here each one is an error with its line before anything is sent, and a step that nothing checks is a warning.
skill
Install a skill that teaches the agent to write, run and debug workflows. It reads probe guide, the reference built into the binary, so what it writes fits the version it runs.
1probe skill install2probe guide httpopenapi
Check each request and response against your OpenAPI document. The spec decides what is right, not the test the agent wrote, so a wrong test cannot agree with a wrong response.
1uses: http2with:3 get: /users/14 openapi:5 spec: ./openapi.ymlproto
The same for gRPC, from your .proto files, with the rules of buf.validate and google.api.field_behavior.
1uses: grpc2with:3 method: GetUser4 proto:5 files: [./proto/user/v1/user.proto]coverage
Tell which operations, responses and methods the run checked, and which ones no step reached yet.
1probe --report json workflow.yml2probe coverage openapi.yml \3 probe-report.json--read-only
Run what the agent wrote without letting it write: anything but reads, and any host not listed, is refused before it is sent.
1probe --read-only \2 --allow-host api.staging.example.com \3 workflow.ymlexit code
The exit code says what to look at: a failed test or broken contract, the workflow itself, or a target that did not answer.
1probe workflow.yml2echo $? # 1 test, 2 workflow, 3 actionGet started
Install
Probe is a single binary with no runtime dependencies. Homebrew installs it with one command.
$ brew install mozership/tap/probeOr install with Go
go install github.com/mozership/probe/cmd/probe@latest
FAQ
Questions you may have
Do I need an AI coding agent to use Probe?
No. A workflow is plain YAML, and Probe runs it the same whoever wrote it. What Probe does for an agent, such as finding the mistakes in a workflow before it runs, it does for a person writing one by hand too.
Read the quickstart →How is it different from runn, Hurl or k6?
Probe drives a browser, an iOS app, HTTP, databases and mail from one YAML file, runs its jobs in parallel where needs allows, and is a single binary. It does not put load on a system, which is what k6 is for, and for HTTP alone Hurl is the lighter tool.
Compare it with similar tools →Can it run in CI?
Yes. On GitHub Actions, mozership/probe-action downloads Probe, verifies its checksum, caches it and runs your workflows. The exit code says what to look at: 1 for a failed test, 2 for the workflow itself, 3 for a target that did not answer. The iOS action needs a macOS runner, where Probe is installed with go install.
Set it up in GitHub Actions →Can a workflow an agent wrote change a system it should not?
Not when you run it under the guard. --read-only refuses what writes, and --allow-host refuses connecting to a host you did not name, before anything is sent; nothing in a workflow can loosen either. An action that cannot tell what it will do, such as the browser or the agent action, is refused under the guard unless --allow-action names it.
Read about the guard →What is the agent action for, when its result is not deterministic?
For what a deterministic step cannot state. A status, a row or a mail can be checked exactly, and those steps should gate a merge. Whether a first-time user gets through a page, or whether the application still holds up on staging once data and settings pile up, cannot be written as an expected value. The agent action leaves that to a model using the application through a real Chrome, and adds to the deterministic steps rather than replacing them.
See what deterministic tests leave out →The agent action asks a model. Does its result change from run to run?
It can. The judge quotes what the pages showed and marks whether each quote was found there, and blocked, a test that could not be judged, is kept apart from fail. A scenario test can keep the steps of a run that passed and replay them without the model; only the judge is asked again.
Read the agent action →What does testing an iOS or Android app need?
The iOS action runs on macOS with Xcode, against a booted simulator with the app installed. The Android action runs on Linux and macOS through adb, with an emulator or a device, and nothing but the app is installed on it. Neither boots the device or installs the app: do that in a shell step before.
Read the iOS action →What if the protocol I need is not supported?
Write an action. Probe talks to an action over gRPC, so it can be written in any language, and the built-in actions go through the same handshake. A workflow pins an external action to a full commit SHA, and Probe runs only the executable whose SHA-256 the action.yml at that commit names.
Read about actions →Is it free?
Yes. Probe is open source under the MIT License. The agent action calls the model provider you choose with your own API key, and the provider bills that use.
See it on GitHub →